[Top][All Lists]

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

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

From: Pierre Morel
Subject: Re: [PATCH v7 12/13] s390x: CPU topology: CPU topology migration
Date: Wed, 25 May 2022 10:23:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

On 5/24/22 13:32, Thomas Huth wrote:
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.

yes thanks,


Pierre Morel
IBM Lab Boeblingen

reply via email to

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