[RFC PATCH 09/26] softmmu: Don't sync aux vcpus in pre_loadvm

Dov Murik posted 26 patches 4 years, 11 months ago
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Eric Blake <eblake@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Cornelia Huck <cohuck@redhat.com>, Markus Armbruster <armbru@redhat.com>, Juan Quintela <quintela@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
[RFC PATCH 09/26] softmmu: Don't sync aux vcpus in pre_loadvm
Posted by Dov Murik 4 years, 11 months ago
When preparing to load state into a migration target VM, don't sync the
auxiliary vcpus to allow the migration helper to keep running there (it
is used during the migration).

Signed-off-by: Dov Murik <dovmurik@linux.vnet.ibm.com>
---
 softmmu/cpus.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/softmmu/cpus.c b/softmmu/cpus.c
index a7ee431187..878cf2a421 100644
--- a/softmmu/cpus.c
+++ b/softmmu/cpus.c
@@ -162,7 +162,9 @@ void cpu_synchronize_all_pre_loadvm(void)
     CPUState *cpu;
 
     CPU_FOREACH(cpu) {
-        cpu_synchronize_pre_loadvm(cpu);
+        if (!cpu->aux) {
+            cpu_synchronize_pre_loadvm(cpu);
+        }
     }
 }
 
-- 
2.20.1