diff mbox series

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

Message ID 20210302204822.81901-10-dovmurik@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show
Series Confidential guest live migration | expand

Commit Message

Dov Murik March 2, 2021, 8:48 p.m. UTC
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 mbox series

Patch

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);
+        }
     }
 }