KVM: Update cr8 intercept when APIC TPR is changed by userspace
authorGleb Natapov <gleb@redhat.com>
Sun, 9 Aug 2009 12:17:40 +0000 (15:17 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:39 +0000 (10:46 +0300)
commitcb142eb743d02d48165c9d941b601d731cc4a003
treebcd4e946ffe7d8a19586928ae792ea6553ce70a9
parent4b6e4dca7011613c8508640c10a091b3ed2cd215
KVM: Update cr8 intercept when APIC TPR is changed by userspace

Since on vcpu entry we do it only if apic is enabled we should do
it when TPR is changed while apic is disabled. This happens when windows
resets HW without setting TPR to zero.

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