KVM: x86: fix LAPIC pending count calculation
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 10 Feb 2009 22:41:41 +0000 (20:41 -0200)
committerAvi Kivity <avi@redhat.com>
Sun, 15 Feb 2009 00:47:38 +0000 (02:47 +0200)
commitb682b814e3cc340f905c14dff87ce8bdba7c5eba
tree315edc1c2990a57b6af99fda00e0445a2b175390
parentd7cff1c37664971aae32bb0de82231ed34933d8e
KVM: x86: fix LAPIC pending count calculation

Simplify LAPIC TMCCT calculation by using hrtimer provided
function to query remaining time until expiration.

Fixes host hang with nested ESX.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/irq.c
arch/x86/kvm/irq.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c