qemu-devel
[Top][All Lists]
Advanced

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

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


From: Dov Murik
Subject: [RFC PATCH 09/26] softmmu: Don't sync aux vcpus in pre_loadvm
Date: Tue, 2 Mar 2021 15:48:05 -0500

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




reply via email to

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