KVM: deliver PIC interrupt only to vcpu0
authorQing He <qing.he@intel.com>
Mon, 17 Sep 2007 06:47:13 +0000 (14:47 +0800)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:26 +0000 (10:18 +0200)
commit40487c680d5855459dfdce340df13d40071bb774
treeabc0ec56ecb1b6d1533b918621c060a1d38fccef
parent5cd4f6fd8506f59cb8a232f364c54f6bd8e5150a
KVM: deliver PIC interrupt only to vcpu0

This patch changes the PIC interrupts delivery. Now it is only delivered
to vcpu0 when either condition is met (on vcpu0):
  1. local APIC is hardware disabled
  2. LVT0 is unmasked and configured to delivery mode ExtInt

It fixes the 2x faster wall clock on x86_64 and SMP i386 Linux guests

Signed-off-by: Eddie (Yaozu) Dong <eddie.dong@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/irq.c
drivers/kvm/irq.h
drivers/kvm/lapic.c
This page took 0.037894 seconds and 5 git commands to generate.