[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 05/47] contrib: add libvhost-user
From: |
Michael S. Tsirkin |
Subject: |
Re: [Qemu-devel] [PULL 05/47] contrib: add libvhost-user |
Date: |
Thu, 10 Nov 2016 19:20:53 +0200 |
On Thu, Nov 10, 2016 at 05:05:03PM +0000, Daniel P. Berrange wrote:
> On Thu, Nov 10, 2016 at 06:12:03PM +0200, Michael S. Tsirkin wrote:
> > From: Marc-André Lureau <address@hidden>
> >
> > Add a library to help implementing vhost-user backend (or slave).
> >
> > Dealing with vhost-user as an application developer isn't so easy: you
> > have all the trouble with any protocol: validation, unix ancillary data,
> > shared memory, eventfd, logging, and on top of that you need to deal
> > with virtio queues, if possible efficiently.
> >
> > qemu test has a nice vhost-user testing application vhost-user-bridge,
> > which implements most of vhost-user, and virtio.c which implements
> > virtqueues manipulation. Based on these two, I tried to make a simple
> > library, reusable for tests or development of new vhost-user scenarios.
>
> By "new vhost-user scenarios" does this mean facilitating creation of
> vhost user clients by out of tree 3rd parties ?
Just more tests at this point.
> Unless I'm missing something, the change doesn't actually build any
> .so of this code, so only thing that can use it right now is other
> QEMU code.
>
> If we want 3rd parties to use this, then it seems to me that LGPLv2+ or
> even a BSD like license would be more applicable than GPLv2+. Also we
> would need to state what API/ABI stability guarantees we're going to
> provide and create a versioned ELF .so.
We can discuss this when someone tries to do this.
> In general this patch looks like it is something to propose in 2.9,
> rather than pushing feature work in post-freeze.
>
> Regards,
> Daniel
>From my perspective, anything that helps find failures
at user systems during build and not when
running guests is a plus.
> --
> |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org -o- http://virt-manager.org :|
> |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
- [Qemu-devel] [PULL 00/47] virtio, vhost, pc, pci: tests, documentation, fixes and cleanups, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 05/47] contrib: add libvhost-user, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 01/47] tests/vhost-user-bridge: remove false comment, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 02/47] tests/vhost-user-bridge: remove unnecessary dispatcher_remove, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 04/47] tests/vhost-user-bridge: do not accept more than one connection, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 03/47] tests/vhost-user-bridge: indicate peer disconnected, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 06/47] tests/vhost-user-bridge: use contrib/libvhost-user, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 07/47] intel_iommu: fixing source id during IOTLB hash key calculation, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 09/47] virtio: make virtqueue_alloc_element static, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 08/47] virtio: rename virtqueue_discard to virtqueue_unpop, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 10/47] pcie_aer: Convert pcie_aer_init to Error, Michael S. Tsirkin, 2016/11/10
- [Qemu-devel] [PULL 12/47] intel_iommu: fix several incorrect endianess and bit fields, Michael S. Tsirkin, 2016/11/10