Skip to content

Commit b8b1d62

Browse files
ouptonMarc Zyngier
authored andcommitted
KVM: arm64: nv: Expose up to FEAT_Debugv8p8 to NV-enabled VMs
The changes to the debug architecture up to v8.8 are concerned with external debug, which of course has no direct impact on VMs. Raise the feature limit and document what's preventing us from raising it further. Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 6f2224e commit b8b1d62

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

arch/arm64/kvm/nested.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,8 +1581,11 @@ u64 limit_nv_id_reg(struct kvm *kvm, u32 reg, u64 val)
15811581
ID_AA64DFR0_EL1_PMSS |
15821582
ID_AA64DFR0_EL1_TraceVer);
15831583

1584-
/* Cap Debug to ARMv8.1 */
1585-
val = ID_REG_LIMIT_FIELD_ENUM(val, ID_AA64DFR0_EL1, DebugVer, VHE);
1584+
/*
1585+
* FEAT_Debugv8p9 requires support for extended breakpoints /
1586+
* watchpoints.
1587+
*/
1588+
val = ID_REG_LIMIT_FIELD_ENUM(val, ID_AA64DFR0_EL1, DebugVer, V8P8);
15861589
break;
15871590
}
15881591

0 commit comments

Comments
 (0)