| Submitter | Jan Kiszka |
|---|---|
| Date | Feb. 15, 2011, 8:23 a.m. |
| Message ID | <ad8fc94985ab2a5dea0b43d45f2159be739c9ac3.1297758211.git.jan.kiszka@siemens.com> |
| Download | mbox | patch |
| Permalink | /patch/83209/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/vl.c b/vl.c index b436952..7751843 100644 --- a/vl.c +++ b/vl.c @@ -1452,6 +1452,7 @@ static void main_loop(void) } if (qemu_reset_requested()) { pause_all_vcpus(); + cpu_synchronize_all_states(); qemu_system_reset(); resume_all_vcpus(); }
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 <jan.kiszka@siemens.com> --- vl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)