Skip to content

RFC QEMU v7.2.0 aarch64 Nested Virtualization Support

Miguel Luis qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5linux-headers: [kvm, arm64] add the necessary definitions to match host kernellinux-headers/asm-arm64/kvm.h linux-headers/linux/kvm.h+3 -02 replies
2/5hw/intc/gicv3: add support for setting KVM vGIC maintenance IRQhw/arm/virt.c hw/intc/arm_gicv3_common.c hw/intc/arm_gicv3_kvm.c +1 more+32 -04 replies
3/5target/arm/kvm: add helper to detect EL2 when using KVMtarget/arm/kvm64.c target/arm/kvm_arm.h+17 -01 reply
4/5target/arm: enable feature ARM_FEATURE_EL2 if EL2 is supportedtarget/arm/cpu.h target/arm/kvm64.c+17 -14 replies
5/5arm/virt: provide virtualization extensions to the guesthw/arm/virt.c+2 -12 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchRichard Henderson
1/5
2/5
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/5] QEMU v7.2.0 aarch64 Nested Virtualization Support

This series adds ARMv8.3/8.4 nested virtualization support in KVM mode.

To enable nested virtualization for a guest, the host must expose EL2 support via QEMU command line switches:

-machine virt,accel=kvm,virtualization=on

Inspired on Haibo Xu's previous work [0][1], Marc Zyngier's kvmtool branch [2] and kernel patches [3] on nested virtualization for aarch64, this has been tested on an Ampere implementation.

This series adapts previous work on top of v7.2.0, it considers comments given at the time and preserves authorship of the original patches.

[0]: https://lore.kernel.org/qemu-devel/[email protected]/
[1]: https://lore.kernel.org/qemu-devel/[email protected]/
[2]: https://git.kernel.org/pub/scm/linux/kernel/git/maz/kvmtool.git/log/?h=arm64/nv-5.16
[3]: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Miguel Luis (5):
linux-headers: [kvm,arm64] add the necessary definitions to match host
kernel
hw/intc/gicv3: add support for setting KVM vGIC maintenance IRQ target/arm/kvm: add helper to detect EL2 when using KVM target/arm: enable feature ARM_FEATURE_EL2 if EL2 is supported arm/virt: provide virtualization extensions to the guest

 hw/arm/virt.c                      |  8 +++++++-
 hw/intc/arm_gicv3_common.c         |  1 +
 hw/intc/arm_gicv3_kvm.c            | 25 +++++++++++++++++++++++++
 include/hw/intc/arm_gicv3_common.h |  1 +
 linux-headers/asm-arm64/kvm.h      |  2 ++
 linux-headers/linux/kvm.h          |  1 +
 target/arm/cpu.h                   |  2 +-
 target/arm/kvm64.c                 | 21 +++++++++++++++++++++
 target/arm/kvm_arm.h               | 12 ++++++++++++
 9 files changed, 71 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2