KVM: Protect update_cr8_intercept() when running without an apic
authorAvi Kivity <avi@redhat.com>
Mon, 17 Aug 2009 19:49:40 +0000 (22:49 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:54 +0000 (10:46 +0300)
commit88c808fd42b53a7e01a2ac3253ef31fef74cb5af
tree570998f7bc61caa35c493bca3b1ca50a3f74af0c
parent95eb84a7588d7d7afd3096807efc052adc7479e1
KVM: Protect update_cr8_intercept() when running without an apic

update_cr8_intercept() can be triggered from userspace while there
is no apic present.

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