mbox series

[v2,0/4] ppc: spapr: Nested kvm guest migration fixes

Message ID 171760304518.1127.12881297254648658843.stgit@ad1b393f0e09
Headers show
Series ppc: spapr: Nested kvm guest migration fixes | expand

Message

Shivaprasad G Bhat June 5, 2024, 3:57 p.m. UTC
The series fixes the issues exposed by the kvm-unit-tests[1]
sprs-migration test.

The sprs DEXCR, HASKKEYR and HASHPKEYR are not registered with
one-reg IDs without which the Qemu is not setting them to their
'previous' value before vcpu run or migration at destination.

The first patch updates the linux header with the IDs[2] for
current use till a complete update post kernel release. The
remaining three patches in the series take care registering
them with KVM.

References:
[1]: https://github.com/kvm-unit-tests/kvm-unit-tests
[2]: https://lore.kernel.org/kvm/171759276071.1480.9356137231993600304.stgit@linux.ibm.com

---
Changelog:

v1: https://lore.kernel.org/qemu-devel/171741555734.11675.17428208097186191736.stgit@c0c876608f2d/
- Moved the linux header changes to a separate patch adding
  definitions for all the required one-reg ids together.
- Added one-reg ID for HASHPKEYR as suggested

Shivaprasad G Bhat (4):
      linux-header: PPC: KVM: Update one-reg ids for DEXCR, HASHKEYR and HASHPKEYR
      target/ppc/cpu_init: Synchronize DEXCR with KVM for migration
      target/ppc/cpu_init: Synchronize HASHKEYR with KVM for migration
      target/ppc/cpu_init: Synchronize HASHPKEYR with KVM for migration


 linux-headers/asm-powerpc/kvm.h |  3 +++
 target/ppc/cpu_init.c           | 12 ++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)

--
Signature