Re: Balloon driver?

Rusty Russell
2007-06-07T01:30:32Z

On Wed, 2007-06-06 at 19:17 +0300, Avi Kivity wrote:
> Carsten Otte wrote:
> > The best approach into this direction I have seen so far is not our
> > own vdev thing but Rusty's virtio infrastructure. That's what I think
> > I would start with.
> >
> >
>
> I agree. We need a Lego set containing the following bricks:
>
> - bus interfaces: pci bus, hypercall-based bus, xenbus
> - functionality: net driver, block driver
> - virtio data path: xen rings + grant tables + event channels, kvm rings
> + kmap_atomic + interrupts
>
> So you can write a 4-line driver that glues the pci bus interface to the
> net functionality driver to kvm virtio backend, and take the rest of the
> day off.

Speaking of which, I have been beavering away with various failed
attempts, and finally ate humble pie and am implementing the simple
callback scheme first suggested by Avi. Everything else made the
drivers nasty and an efficient implementation nastier.

Expect draft II patches within 24 hours...
Rusty.