kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Reset PIT reinjection logic on irq unmask
@ 2009-01-04 16:14 Avi Kivity
  2009-01-04 16:14 ` [PATCH 1/3] KVM: Add CONFIG_HAVE_KVM_IRQCHIP Avi Kivity
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Avi Kivity @ 2009-01-04 16:14 UTC (permalink / raw)
  To: Sheng Yang, Marcelo Tosatti; +Cc: kvm

Currently, when a guest has the pit running but masked, it will accumulate
pending irq injection requests but will never ack them (as the interrupts
are masked).  When the interrupt is finally unmasked, the reinject logic
ignores pending interrupts since it sees unacked pending irqs.

Add a notifier on irq unmasking, and use that in the PIT to clear the
reinject logic.

Currently only ioapic mask notifications are implemented.

This could be used to disable the hrtimer if the guest masks the PIT and
uses some other timer.

Please review.

Avi Kivity (3):
  KVM: Add CONFIG_HAVE_KVM_IRQCHIP
  KVM: Interrupt mask notifiers for ioapic
  KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked

 arch/ia64/kvm/Kconfig    |    4 ++++
 arch/powerpc/kvm/Kconfig |    3 +++
 arch/s390/kvm/Kconfig    |    3 +++
 arch/x86/kvm/Kconfig     |    4 ++++
 arch/x86/kvm/i8254.c     |   15 +++++++++++++++
 arch/x86/kvm/i8254.h     |    1 +
 include/linux/kvm_host.h |   17 +++++++++++++++++
 virt/kvm/ioapic.c        |    7 ++++++-
 virt/kvm/irq_comm.c      |   24 ++++++++++++++++++++++++
 virt/kvm/kvm_main.c      |    3 +++
 10 files changed, 80 insertions(+), 1 deletions(-)


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-01-06  9:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 16:14 [PATCH 0/3] Reset PIT reinjection logic on irq unmask Avi Kivity
2009-01-04 16:14 ` [PATCH 1/3] KVM: Add CONFIG_HAVE_KVM_IRQCHIP Avi Kivity
2009-01-04 16:14 ` [PATCH 2/3] KVM: Interrupt mask notifiers for ioapic Avi Kivity
2009-01-05  7:06   ` Sheng Yang
2009-01-05 13:24     ` Avi Kivity
2009-01-05 18:29   ` Marcelo Tosatti
2009-01-05 20:57     ` Avi Kivity
2009-01-04 16:14 ` [PATCH 3/3] KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked Avi Kivity
2009-01-05 18:31   ` Marcelo Tosatti
2009-01-05 20:59     ` Avi Kivity
2009-01-05 21:58       ` Marcelo Tosatti
2009-01-06  8:25         ` Avi Kivity
2009-01-06  9:35           ` Dor Laor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).