KVM: correctly detect APIC SW state in kvm_apic_post_state_restore()
authorGleb Natapov <gleb@redhat.com>
Wed, 8 Aug 2012 12:24:36 +0000 (15:24 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 9 Aug 2012 09:44:46 +0000 (12:44 +0300)
For apic_set_spiv() to track APIC SW state correctly it needs to see
previous and next values of the spurious vector register, but currently
memset() overwrite the old value before apic_set_spiv() get a chance to
do tracking. Fix it by calling apic_set_spiv() before overwriting old
value.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found