All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] hw/arm/virt: add vhe option for nested virtualization
@ 2026-11-21  9:56 Haseeb Ashraf
  2026-11-21  9:56 ` [PATCH 1/1] " Haseeb Ashraf
  2026-11-21 13:52 ` [PATCH 0/1] " Marc Zyngier
  0 siblings, 2 replies; 5+ messages in thread
From: Haseeb Ashraf @ 2026-11-21  9:56 UTC (permalink / raw)
  To: Peter Maydell, qemu-arm
  Cc: Pierrick Bouvier, Paolo Bonzini, Volodymyr Babchuk, Haseeb Ashraf,
	qemu-devel, kvm

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-21 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21  9:56 [PATCH 0/1] hw/arm/virt: add vhe option for nested virtualization Haseeb Ashraf
2026-11-21  9:56 ` [PATCH 1/1] " Haseeb Ashraf
2026-11-21 14:02   ` Mohamed Mediouni
2026-11-21 13:52 ` [PATCH 0/1] " Marc Zyngier
2026-11-21 14:01   ` Mohamed Mediouni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.