KVM: x86: set TMR when the interrupt is accepted
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 Jul 2015 13:03:06 +0000 (15:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Oct 2015 13:06:22 +0000 (15:06 +0200)
commitbdaffe1d93e7eddbcc71d074a5d49eba7fe1c765
tree65a17f3827ebfdf66caa55a70386368cd13a002e
parent58219c1ab32be51e23f672ec52d2c6a86b0489d8
KVM: x86: set TMR when the interrupt is accepted

Do not compute TMR in advance.  Instead, set the TMR just before the interrupt
is accepted into the IRR.  This limits the coupling between IOAPIC and LAPIC.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/ioapic.c
arch/x86/kvm/ioapic.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c