From: Jan Kiszka Date: Wed, 2 Mar 2011 07:56:11 +0000 (+0100) Subject: Synchronize VCPU states before reset X-Git-Tag: v0.15.0-rc0~684^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7ada1510cb380b86c4811aa40fc45c8a7fc0daf;p=thirdparty%2Fqemu.git Synchronize VCPU states before reset This is required to support keeping VCPU states across a system reset. If we do not read the current state before the reset, cpu_synchronize_all_post_reset may write back incorrect state information. The first user of this will be MCE MSR synchronization which currently works around the missing cpu_synchronize_all_states. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- diff --git a/vl.c b/vl.c index 5e007a764cf..f4c24d30dcd 100644 --- a/vl.c +++ b/vl.c @@ -1450,6 +1450,7 @@ static void main_loop(void) } if (qemu_reset_requested()) { pause_all_vcpus(); + cpu_synchronize_all_states(); qemu_system_reset(); resume_all_vcpus(); }