]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: x86: paravirt skip pit-through-ioapic boot check
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 12 Feb 2009 00:45:42 +0000 (22:45 -0200)
committerAvi Kivity <avi@redhat.com>
Thu, 26 Feb 2009 09:58:25 +0000 (11:58 +0200)
Skip the test which checks if the PIT is properly routed when
using the IOAPIC, aimed at buggy hardware.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kernel/kvm.c

index 478bca986eca0d5213f3fe992cdb409db3670ce7..eecfc92ecc91db2aa390d6d5c5821f1a62d6d174 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/mm.h>
 #include <linux/highmem.h>
 #include <linux/hardirq.h>
+#include <asm/timer.h>
 
 #define MMU_QUEUE_SIZE 1024
 
@@ -237,6 +238,9 @@ static void paravirt_ops_setup(void)
                pv_mmu_ops.lazy_mode.enter = kvm_enter_lazy_mmu;
                pv_mmu_ops.lazy_mode.leave = kvm_leave_lazy_mmu;
        }
+#ifdef CONFIG_X86_IO_APIC
+       no_timer_check = 1;
+#endif
 }
 
 void __init kvm_guest_init(void)