Skip to content

ppc/spapr: Add support for nested kvm-hv

Suraj Jitindar Singh qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- The enable cap ioctl no longer takes an enable field to indicate disable/enable, but just enables the cap. So update to match this kernel change. (The cap starts out disable by default)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3target/ppc: Update linux-headers for v4.19-rc7linux-headers/asm-powerpc/kvm.h linux-headers/linux/kvm.h+2 -00 replies
2/3target/ppc: Add one reg id for ptcrtarget/ppc/translate_init.inc.c+5 -50 replies
3/3ppc/spapr_caps: Add SPAPR_CAP_NESTED_KVM_HVhw/ppc/spapr.c hw/ppc/spapr_caps.c include/hw/ppc/spapr.h +2 more+62 -10 replies

Reviews trailers per patch

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

PatchDavid Gibson
1/3
2/3R-b
3/3

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

Read the v3 thread

Cover letter [Qemu-devel] [QEMU-PPC] [PATCH V3 0/3] ppc/spapr: Add support for nested kvm-hv

This patch series adds the qemu support for running nested kvm-hv on a POWER9 platform with appropriate hypervisor support and migration of these guests.
That is, the ability to run kvm-hv guests as guests of an operating system which is itself a kvm-hv guest.

The host (L0 hypervisor) and level 1 guest (L1 guest hypervisor) require the following patch series:
KVM: PPC: Book3S HV: Nested HV virtualization

And this patch series in the qemu instance running on the L0 hypervisor.

Patch series based on: ppc-for-3.1

The cap number is now in Paolo's tree so hopefully we can rely on it not changing.

V2 -> V3:
- The enable cap ioctl no longer takes an enable field to indicate disable/enable, but just enables the cap. So update to match this kernel change. (The cap starts out disable by default)

Suraj Jitindar Singh (3):
target/ppc: Update linux-headers for v4.19-rc7
target/ppc: Add one reg id for ptcr
ppc/spapr_caps: Add SPAPR_CAP_NESTED_KVM_HV

 hw/ppc/spapr.c                  |  2 ++
 hw/ppc/spapr_caps.c             | 32 ++++++++++++++++++++++++++++++++
 include/hw/ppc/spapr.h          |  5 ++++-
 linux-headers/asm-powerpc/kvm.h |  1 +
 linux-headers/linux/kvm.h       |  1 +
 target/ppc/kvm.c                | 12 ++++++++++++
 target/ppc/kvm_ppc.h            | 12 ++++++++++++
 target/ppc/translate_init.inc.c | 10 +++++-----
 8 files changed, 69 insertions(+), 6 deletions(-)
Signature · 1 line
2.13.6