Re: [kvm-devel] [PATCH 1/3] virtio interface

2007-09-25 Thread Rusty Russell
On Tue, 2007-09-25 at 08:36 +0200, Arnd Bergmann wrote: > On Tuesday 25 September 2007, Rusty Russell wrote: > > I don't mind: we could expose it. > > What I mean with setting the parent appropriately is not to have a global > device that is used by the hv-specific probing code, but to make sure >

Re: [kvm-devel] [PATCH 1/3] virtio interface

2007-09-25 Thread Cornelia Huck
On Tue, 25 Sep 2007 09:37:38 +1000, Rusty Russell <[EMAIL PROTECTED]> wrote: > On Tue, 2007-09-25 at 00:18 +0200, Arnd Bergmann wrote: > > On Monday 24 September 2007, Rusty Russell wrote: > > > + > > > +struct virtio_bus { > > > + struct bus_type bus; > > > + struct device dev; > > > +}; > > > +

Re: [kvm-devel] [PATCH 1/3] virtio interface

2007-09-24 Thread Arnd Bergmann
On Tuesday 25 September 2007, Rusty Russell wrote: > On Tue, 2007-09-25 at 00:18 +0200, Arnd Bergmann wrote: > > This is a pattern I've seen a few times before, but could never understand > > what it's good for. What is your reason for defining a new data structure > > that is used only once, inste

Re: [kvm-devel] [PATCH 1/3] virtio interface

2007-09-24 Thread Rusty Russell
On Tue, 2007-09-25 at 00:18 +0200, Arnd Bergmann wrote: > On Monday 24 September 2007, Rusty Russell wrote: > > This attempts to implement a "virtual I/O" layer which should allow > > common drivers to be efficiently used across most virtual I/O > > mechanisms. It will no-doubt need further enhanc

Re: [kvm-devel] [PATCH 1/3] virtio interface

2007-09-24 Thread Arnd Bergmann
On Monday 24 September 2007, Rusty Russell wrote: > This attempts to implement a "virtual I/O" layer which should allow > common drivers to be efficiently used across most virtual I/O > mechanisms. It will no-doubt need further enhancement. Hi Rusty, Thanks for your update, as you can imagine, I

[kvm-devel] [PATCH 1/3] virtio interface

2007-09-24 Thread Rusty Russell
This attempts to implement a "virtual I/O" layer which should allow common drivers to be efficiently used across most virtual I/O mechanisms. It will no-doubt need further enhancement. The virtio drivers add buffers to virtio queues; as the buffers are consumed the driver "interrupt" callbacks ar