mbox series

[0/2] ppc: spapr: Nested kvm guest migration fixes

Message ID 171741555734.11675.17428208097186191736.stgit@c0c876608f2d (mailing list archive)
Headers show
Series ppc: spapr: Nested kvm guest migration fixes | expand

Message

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

The sprs DEXCR and HASKKEYR are not registered with one-reg IDs
without which the Qemu is not setting them to their 'previous'
value during guest migreation at destination.

The two patches in the series take care of this. Also, the PPC
kvm header changes are selectively picked for the required
definitions posted here at [2].

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

---

Shivaprasad G Bhat (2):
      target/ppc/cpu_init: Synchronize DEXCR with KVM for migration
      target/ppc/cpu_init: Synchronize HASHKEYR with KVM for migration


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

--
Signature

Comments

Cornelia Huck June 3, 2024, 12:29 p.m. UTC | #1
On Mon, Jun 03 2024, Shivaprasad G Bhat <sbhat@linux.ibm.com> wrote:

> The series fixes the issues exposed by the kvm-unit-tests[1]
> sprs-migration test.
>
> The sprs DEXCR and HASKKEYR are not registered with one-reg IDs
> without which the Qemu is not setting them to their 'previous'
> value during guest migreation at destination.
>
> The two patches in the series take care of this. Also, the PPC
> kvm header changes are selectively picked for the required
> definitions posted here at [2].
>
> References:
> [1]: https://github.com/kvm-unit-tests/kvm-unit-tests
> [2]: https://lore.kernel.org/kvm/171741323521.6631.11242552089199677395.stgit@linux.ibm.com
>
> ---
>
> Shivaprasad G Bhat (2):
>       target/ppc/cpu_init: Synchronize DEXCR with KVM for migration
>       target/ppc/cpu_init: Synchronize HASHKEYR with KVM for migration
>
>
>  linux-headers/asm-powerpc/kvm.h | 2 ++

Please split out any changes under linux-headers/ into a separate patch;
those files need to be changed via a full header update against a
released kernel version. If the changes are not yet upstream in the
Linux kernel, please put in a clearly marked placeholder patch in the
meanwhile.


>  target/ppc/cpu_init.c           | 8 ++++----
>  2 files changed, 6 insertions(+), 4 deletions(-)
>
> --
> Signature