hw/arm/virt: add vhe option for nested virtualization
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | hw/arm/virt: add vhe option for nested virtualizationdocs/ hw/ include/ +6 more | +97 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] hw/arm/virt: add vhe option for nested virtualization
Hi,
The virt board currently enables VHE whenever virtualization=on. There is no way to expose EL2 in nVHE mode to a type-1 guest hypervisor.
This series adds a vhe machine property, enabled by default for compatibility. Setting vhe=off propagates the requested mode to the guest CPU, limits TCG's advertised VHE feature, and requests the KVM HAS_EL2_E2H0 vCPU initialization feature. Unsupported accelerators and KVM hosts fail clearly instead of silently ignoring the option.
Validation was performed on an AmpereOne A192-32X (Ampere-1a) machine:
- KVM with L0 kernels 6.18.29 and 7.2.11:
- Linux 6.12.67 initializes KVM in nVHE mode with vhe=off and VHE mode with vhe=on.
- QNX Hypervisor 8.0.5 detects the requested EL1/nVHE or EL2/VHE mode.
- Xen dom0 boots with vhe=off.
- Xen does not boot with vhe=on.
- TCG:
- QNX Hypervisor 8.0.5 boots to login with vhe=on and vhe=off.
- Xen dom0 boots to login with vhe=off.
- Both AArch64 KVM functional self-tests pass.
- TCG-only, KVM-only, and aarch64-linux-user builds succeed.
Thanks,
Haseeb
Haseeb Ashraf (1):
hw/arm/virt: add vhe option for nested virtualization