KVM: x86: Enable NMI Watchdog via in-kernel PIT source
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 26 Sep 2008 07:30:52 +0000 (09:30 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:41 +0000 (16:51 +0200)
commit23930f9521c9c4d4aa96cdb9d1e1703f3782bb94
treef5bf96bdc4515cc976e1dcf1fb950454276aabf8
parent66a5a347c2690db4c0756524a8eb5a05e0437aa8
KVM: x86: Enable NMI Watchdog via in-kernel PIT source

LINT0 of the LAPIC can be used to route PIT events as NMI watchdog ticks
into the guest. This patch aligns the in-kernel irqchip emulation with
the user space irqchip with already supports this feature. The trick is
to route PIT interrupts to all LAPIC's LVT0 lines.

Rebased and slightly polished patch originally posted by Sheng Yang.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/irq.h
arch/x86/kvm/lapic.c