kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] Fix guest shared interrupt with in-kernel irqchip
@ 2008-10-02  8:19 Yang, Sheng
  2008-10-02 13:27 ` Avi Kivity
  0 siblings, 1 reply; 13+ messages in thread
From: Yang, Sheng @ 2008-10-02  8:19 UTC (permalink / raw)
  To: 'avi@redhat.com'; +Cc: 'kvm@vger.kernel.org'

To deal with guest shared interrupt bug in in-kernel irqchip, we should:

1. Identify each level trig interrupt source.
2. Implement logical OR on the same IRQ line for each interrupt source.

Here I chose a simple method: the caller of kvm_set_irq() has responsiblity
to identify interrupt sources, and IOAPIC/PIC ensure logical OR on IRQ line.

The alternative method of identify can be: a process to
request/allocate/free device identity, then kvm_set_irq() has responsibility
to identify interrupt sources. But I think it's too complicate and
unnecessary, for the caller of set_irq() should aware of the IRQ state.

The patch treats all userspace devices as one source. This have been ensured
by QEmu, which would ensure logical OR on IRQ line if IRQ line is sharing in
userspace.

Comments are welcome! And patches are untested, due to our boxes are down
during the holiday(and my Linux Desktop in the company also down, have
to post patch with outlook)...

Thanks!
--
regards
Yang, Sheng

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

end of thread, other threads:[~2008-10-10 12:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02  8:19 [RFC][PATCH 0/2] Fix guest shared interrupt with in-kernel irqchip Yang, Sheng
2008-10-02 13:27 ` Avi Kivity
2008-10-02 14:06   ` Sheng Yang
2008-10-02 16:45   ` Sheng Yang
2008-10-03  7:36     ` Amit Shah
2008-10-03 10:37       ` Sheng Yang
2008-10-03 10:47         ` Amit Shah
2008-10-04  8:45         ` Avi Kivity
2008-10-04  8:47         ` Avi Kivity
2008-10-06  6:23           ` Sheng Yang
2008-10-06  6:37             ` Sheng Yang
2008-10-10 12:12         ` Amit Shah
2008-10-08  8:29       ` Sheng Yang

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).