Skip to content

KVM: PPC: Book3S HV: Nested guest migration fixes

Shivaprasad G Bhat kvm linux-doc linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6KVM: PPC: Book3S HV: Fix the set_one_reg for MMCR3arch/powerpc/kvm/book3s_hv.c+1 -10 replies
2/6KVM: PPC: Book3S HV: Fix the get_one_reg of SDARarch/powerpc/kvm/book3s_hv.c+1 -10 replies
3/6KVM: PPC: Book3S HV nestedv2: Keep nested guest DEXCR in syncarch/powerpc/include/asm/kvm_host.h arch/powerpc/kvm/book3s_hv.h arch/powerpc/kvm/book3s_hv_nestedv2.c+8 -01 reply
4/6KVM: PPC: Book3S HV: Add one-reg interface for DEXCR registerDocumentation/virt/kvm/api.rst arch/powerpc/include/uapi/asm/kvm.h arch/powerpc/kvm/book3s_hv.c +1 more+9 -03 replies
5/6KVM: PPC: Book3S HV nestedv2: Keep nested guest HASHKEYR in syncarch/powerpc/include/asm/kvm_host.h arch/powerpc/kvm/book3s_hv.h arch/powerpc/kvm/book3s_hv_nestedv2.c+8 -01 reply
6/6KVM: PPC: Book3S HV: Add one-reg interface for HASHKEYR registerDocumentation/virt/kvm/api.rst arch/powerpc/include/uapi/asm/kvm.h arch/powerpc/kvm/book3s_hv.c +1 more+9 -03 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchNicholas Piggin
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v1 thread

Cover letter [PATCH 0/6] KVM: PPC: Book3S HV: Nested guest migration fixes

The series fixes the issues exposed by the kvm-unit-tests[1] sprs-migration test.

The SDAR, MMCR3 were seen to have some typo/refactoring bugs. The first two patches fix them.

Though the nestedv2 APIs defined the guest state elements for Power ISA 3.1B SPRs to save-restore with PHYP during entry-exit, the DEXCR and HASHKEYR were ignored in code. The KVM_PPC_REG too for them are missing without which the Qemu is not setting them to their 'previous' value during guest migration at destination. The remaining patches take care of this.

References:
[1]: https://github.com/kvm-unit-tests/kvm-unit-tests

---

Shivaprasad G Bhat (6):
KVM: PPC: Book3S HV: Fix the set_one_reg for MMCR3
KVM: PPC: Book3S HV: Fix the get_one_reg of SDAR
KVM: PPC: Book3S HV nestedv2: Keep nested guest DEXCR in sync
KVM: PPC: Book3S HV: Add one-reg interface for DEXCR register
KVM: PPC: Book3S HV nestedv2: Keep nested guest HASHKEYR in sync
KVM: PPC: Book3S HV: Add one-reg interface for HASHKEYR register

 Documentation/virt/kvm/api.rst            |  2 ++
 arch/powerpc/include/asm/kvm_host.h       |  2 ++
 arch/powerpc/include/uapi/asm/kvm.h       |  2 ++
 arch/powerpc/kvm/book3s_hv.c              | 16 ++++++++++++++--
 arch/powerpc/kvm/book3s_hv.h              |  2 ++
 arch/powerpc/kvm/book3s_hv_nestedv2.c     | 12 ++++++++++++
 tools/arch/powerpc/include/uapi/asm/kvm.h |  2 ++
 7 files changed, 36 insertions(+), 2 deletions(-)

--
Signature