qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 12/13] s390x: CPU topology: CPU topology migration


From: Thomas Huth
Subject: Re: [PATCH v7 12/13] s390x: CPU topology: CPU topology migration
Date: Tue, 24 May 2022 13:32:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

On 20/04/2022 13.57, Pierre Morel wrote:
To migrate the Multiple Topology Change report, MTCR, we
get it from KVM and save its state in the topology VM State
Description during the presave and restore it to KVM on the
destination during the postload.

The migration state is needed whenever the CPU topology
feature is activated.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
---
...
@@ -2592,22 +2594,57 @@ static void kvm_s390_set_mtr(uint64_t attr)
          .group = KVM_S390_VM_CPU_TOPOLOGY,
          .attr  = attr,
      };
+    int ret;
- int ret = kvm_vm_ioctl(kvm_state, KVM_SET_DEVICE_ATTR, &attribute);
-
+    ret = kvm_vm_ioctl(kvm_state, KVM_SET_DEVICE_ATTR, &attribute);

Nit: Unnecessary code churn.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]