Synchronize VCPU states before reset
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 2 Mar 2011 07:56:11 +0000 (08:56 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 15 Mar 2011 04:19:05 +0000 (01:19 -0300)
commit8e496c9b95b9eb52e1cc2790e9f46d2c428109d5
treee7b5aa27d4b6e4f4bf246d1becb99aeb62fd8642
parent6ec54171a9f048165ca7edd2434660289d8998ab
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 <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
vl.c