public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] IRQ Routing
@ 2009-01-13 20:02 Avi Kivity
  2009-01-13 20:02 ` [PATCH 1/1] KVM: Userspace controlled irq routing Avi Kivity
  2009-01-14  8:39 ` [PATCH 0/1] IRQ Routing Sheng Yang
  0 siblings, 2 replies; 4+ messages in thread
From: Avi Kivity @ 2009-01-13 20:02 UTC (permalink / raw)
  To: Sheng Yang, Xiantao Zhang; +Cc: Marcelo Tosatti, kvm

Following is my alternative to irq routing.  The differences compared to
Sheng's version are:

- A single ioctl to replace the entire routing table, instead of add/remove
  ioctls for individual routing entries.  Routing changes are rare, and
  we need to track the entire table in userspace anyway (for save/restore,
  and for user irqchip).  As a side effect changes are atomic.
- Interrupt numbers are allocated by userspace, instead of the kernel
- I implemented irqchip routings rather then MSIs, it should be easy to
  add MSIs later on.

Please review and comment.

Avi Kivity (1):
  KVM: Userspace controlled irq routing

 arch/ia64/kvm/kvm-ia64.c |    5 ++
 arch/x86/kvm/x86.c       |    6 ++
 include/linux/kvm.h      |   33 +++++++++
 include/linux/kvm_host.h |   31 +++++++++
 virt/kvm/irq_comm.c      |  168 ++++++++++++++++++++++++++++++++++++++++++++-
 virt/kvm/kvm_main.c      |   25 +++++++
 6 files changed, 264 insertions(+), 4 deletions(-)


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

end of thread, other threads:[~2009-01-14 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 20:02 [PATCH 0/1] IRQ Routing Avi Kivity
2009-01-13 20:02 ` [PATCH 1/1] KVM: Userspace controlled irq routing Avi Kivity
2009-01-14  8:39 ` [PATCH 0/1] IRQ Routing Sheng Yang
2009-01-14 14:31   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox