Re: [RFC PATCH v2 00/19] virtual-bus

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Saturday, April 11, 2009 - 9:45 am

Gregory Haskins wrote:


One idea is similar to signalfd() or eventfd().  Provide a kvm ioctl 
that takes a gsi and returns an fd.  Writes to the fd change the state 
of the line, possible triggering an interrupt.  Another ioctl takes a 
hypercall number or pio port as well as an existing fd.  Invocations of 
the hypercall or writes to the port write to the fd (using the same 
protocol as eventfd), so the other end can respond.

The nice thing is that this can be used by both kernel and userspace 
components, and for kernel components, hypercalls can be either buffered 
or unbuffered.


No need for a string ID.  Reserve a range of hypercall numbers for 
dynamic IDs.  Userspace allocates one and gives it to the device using 
its configuration space (as applies to whatever bus it is using).


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Thu Apr 9, 9:30 am)
[RFC PATCH v2 01/19] shm-signal: shared-memory signals, Gregory Haskins, (Thu Apr 9, 9:30 am)
[RFC PATCH v2 02/19] vbus: add virtual-bus definitions, Gregory Haskins, (Thu Apr 9, 9:30 am)
[RFC PATCH v2 04/19] vbus: add bus-registration notifiers, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 07/19] ioq: add vbus helpers, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 09/19] net: Add vbus_enet driver, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 11/19] venet: add scatter-gather support, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 12/19] venettap: add scatter-gather support, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 14/19] kvm: add a reset capability, Gregory Haskins, (Thu Apr 9, 9:31 am)
[RFC PATCH v2 15/19] kvm: add dynamic IRQ support, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 16/19] kvm: Add VBUS support to the host, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 17/19] kvm: Add guest-side support for VBUS, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 18/19] vbus: add a userspace connector, Gregory Haskins, (Thu Apr 9, 9:32 am)
[RFC PATCH v2 19/19] virtio: add a vbus transport, Gregory Haskins, (Thu Apr 9, 9:32 am)
Re: [RFC PATCH v2 09/19] net: Add vbus_enet driver, Stephen Hemminger, (Thu Apr 9, 9:37 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Thu Apr 9, 9:48 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Avi Kivity, (Sat Apr 11, 9:45 am)
Re: [RFC PATCH v2 14/19] kvm: add a reset capability, Avi Kivity, (Sat Apr 11, 9:56 am)
Re: [RFC PATCH v2 15/19] kvm: add dynamic IRQ support, Avi Kivity, (Sat Apr 11, 10:01 am)
Re: [RFC PATCH v2 15/19] kvm: add dynamic IRQ support, Gregory Haskins, (Mon Apr 13, 10:44 am)
Re: [RFC PATCH v2 03/19] vbus: add connection-client helpe ..., Michael S. Tsirkin, (Thu Jun 4, 11:06 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Thu Jun 4, 11:49 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Rusty Russell, (Thu Jun 4, 9:55 pm)
Re: [RFC PATCH v2 00/19] virtual-bus, Paul E. McKenney, (Thu Jun 4, 10:30 pm)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Fri Jun 5, 4:56 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Avi Kivity, (Fri Jun 5, 5:53 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Rusty Russell, (Fri Jun 5, 7:35 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Gregory Haskins, (Fri Jun 5, 7:44 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Rusty Russell, (Fri Jun 5, 7:55 am)
Re: [RFC PATCH v2 00/19] virtual-bus, Paul E. McKenney, (Fri Jun 5, 9:25 am)
Re: [RFC PATCH v2 19/19] virtio: add a vbus transport, Anthony Liguori, (Sun Aug 9, 9:40 am)
Re: [RFC PATCH v2 19/19] virtio: add a vbus transport, Gregory Haskins, (Mon Aug 10, 8:40 am)