commit | 64eb0620296f924d5fded755c5ed95fb73649e06 | [log] [tgz] |
---|---|---|
author | Gleb Natapov <gleb@redhat.com> | Wed Aug 08 15:24:36 2012 +0300 |
committer | Avi Kivity <avi@redhat.com> | Thu Aug 09 12:44:46 2012 +0300 |
tree | 92ee69a8fa3e55b93f093901b25f2757f5c9c471 | |
parent | c48f14966cc41957d88c66dfe49a439e708ab7b8 [diff] |
KVM: correctly detect APIC SW state in kvm_apic_post_state_restore() 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>