Skip to content

Commit 29d1697

Browse files
author
Marc Zyngier
committed
KVM: arm64: Document NV caps and vcpu flags
Describe the two new vcpu flags that control NV, together with the capabilities that advertise them. Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Reviewed-by: Joey Gouly <joey.gouly@arm.com> Link: https://lore.kernel.org/r/20250514103501.2225951-18-maz@kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent a7484c8 commit 29d1697

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Documentation/virt/kvm/api.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,8 @@ The initial values are defined as:
34603460
- FPSIMD/NEON registers: set to 0
34613461
- SVE registers: set to 0
34623462
- System registers: Reset to their architecturally defined
3463-
values as for a warm reset to EL1 (resp. SVC)
3463+
values as for a warm reset to EL1 (resp. SVC) or EL2 (in the
3464+
case of EL2 being enabled).
34643465

34653466
Note that because some registers reflect machine topology, all vcpus
34663467
should be created before this ioctl is invoked.
@@ -3527,6 +3528,17 @@ Possible features:
35273528
- the KVM_REG_ARM64_SVE_VLS pseudo-register is immutable, and can
35283529
no longer be written using KVM_SET_ONE_REG.
35293530

3531+
- KVM_ARM_VCPU_HAS_EL2: Enable Nested Virtualisation support,
3532+
booting the guest from EL2 instead of EL1.
3533+
Depends on KVM_CAP_ARM_EL2.
3534+
The VM is running with HCR_EL2.E2H being RES1 (VHE) unless
3535+
KVM_ARM_VCPU_HAS_EL2_E2H0 is also set.
3536+
3537+
- KVM_ARM_VCPU_HAS_EL2_E2H0: Restrict Nested Virtualisation
3538+
support to HCR_EL2.E2H being RES0 (non-VHE).
3539+
Depends on KVM_CAP_ARM_EL2_E2H0.
3540+
KVM_ARM_VCPU_HAS_EL2 must also be set.
3541+
35303542
4.83 KVM_ARM_PREFERRED_TARGET
35313543
-----------------------------
35323544

0 commit comments

Comments
 (0)