KVM: only sync when attention bits set
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 24 Jun 2012 16:24:54 +0000 (19:24 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 25 Jun 2012 09:40:40 +0000 (12:40 +0300)
commit5cfb1d5a65dd96d2d3a0751a1e4e81dc84c1f08f
treeab6a7b70254a1813a64e97eaf58bc91e7a8a0a46
parentc1af87dc96cd0f8f17694d0cd9be01b80b2c7a6a
KVM: only sync when attention bits set

Commit eb0dc6d0368072236dcd086d7fdc17fd3c4574d4 introduced apic
attention bitmask but kvm still syncs lapic unconditionally.
As that commit suggested and in anticipation of adding more attention
bits, only sync lapic if(apic_attention).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c