KVM: Introduce bitmask for apic attention reasons
authorGleb Natapov <gleb@redhat.com>
Thu, 19 Apr 2012 11:06:29 +0000 (14:06 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Apr 2012 13:36:18 +0000 (16:36 +0300)
commit413837714232b3a4c0705e915d8af75ad521d083
tree8caabcc3565c5482e6d8da921ed2b166c0c1a230
parent07975ad3b30579ca27d880491ad992326b930c63
KVM: Introduce bitmask for apic attention reasons

The patch introduces a bitmap that will hold reasons apic should be
checked during vmexit. This is in a preparation for vp eoi patch
that will add one more check on vmexit. With the bitmap we can do
if(apic_attention) to check everything simultaneously which will
add zero overhead on the fast path.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c