aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2008-10-20 04:20:03 -0400
committerAvi Kivity <avi@redhat.com>2008-12-31 09:51:47 -0500
commitcc6e462cd54e64858ea25816df87d033229efe56 (patch)
tree3f34b8be2ec3eb63e06c223b1d75d7068a717318 /arch/x86/include/asm/kvm_host.h
parent8fdb2351d51b040146f10a624387bbd102d851c0 (diff)
KVM: x86: Optimize NMI watchdog delivery
As suggested by Avi, this patch introduces a counter of VCPUs that have LVT0 set to NMI mode. Only if the counter > 0, we push the PIT ticks via all LAPIC LVT0 lines to enable NMI watchdog support. 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>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 59c3ae10de6c..09e6c56572cb 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -361,6 +361,7 @@ struct kvm_arch{
361 struct kvm_ioapic *vioapic; 361 struct kvm_ioapic *vioapic;
362 struct kvm_pit *vpit; 362 struct kvm_pit *vpit;
363 struct hlist_head irq_ack_notifier_list; 363 struct hlist_head irq_ack_notifier_list;
364 int vapics_in_nmi_mode;
364 365
365 int round_robin_prev_vcpu; 366 int round_robin_prev_vcpu;
366 unsigned int tss_addr; 367 unsigned int tss_addr;