KVM: x86: Fix and refactor NMI watchdog emulation
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 20 Oct 2008 08:20:02 +0000 (10:20 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:46 +0000 (16:51 +0200)
commit8fdb2351d51b040146f10a624387bbd102d851c0
treec28ff5ec61f51cb1a04b7e29923e4ce3f2aba421
parent291fd39bfc2089c2dae79cf2d7cfca81b14ca769
KVM: x86: Fix and refactor NMI watchdog emulation

This patch refactors the NMI watchdog delivery patch, consolidating
tests and providing a proper API for delivering watchdog events.

An included micro-optimization is to check only for apic_hw_enabled in
kvm_apic_local_deliver (the test for LVT mask is covering the
soft-disabled case already).

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Sheng Yang <sheng@linux.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