Re: [libvirt] [PATCH v2 3/5] qemu: Add vhost-scsi string for -device parameter

2016-09-16 Thread Eric Farman
On 09/13/2016 04:55 PM, John Ferlan wrote: [...] diff --git a/src/util/virscsi.c b/src/util/virscsi.c index 4843367..290b692 100644 --- a/src/util/virscsi.c +++ b/src/util/virscsi.c @@ -105,6 +105,32 @@ virSCSIDeviceGetAdapterId(const char *adapter, return -1; } +int +virSCSIOpen

Re: [libvirt] [PATCH v2 3/5] qemu: Add vhost-scsi string for -device parameter

2016-09-13 Thread John Ferlan
[...] >>> diff --git a/src/util/virscsi.c b/src/util/virscsi.c >>> index 4843367..290b692 100644 >>> --- a/src/util/virscsi.c >>> +++ b/src/util/virscsi.c >>> @@ -105,6 +105,32 @@ virSCSIDeviceGetAdapterId(const char *adapter, >>> return -1; >>> } >>> +int >>> +virSCSIOpenVhost(int *vhos

Re: [libvirt] [PATCH v2 3/5] qemu: Add vhost-scsi string for -device parameter

2016-09-13 Thread Eric Farman
On 09/12/2016 06:10 PM, John Ferlan wrote: On 09/06/2016 08:58 AM, Eric Farman wrote: Open /dev/vhost-scsi, and record the resulting file descriptor, so that the guest has access to the host device outside of the libvirt daemon. Pass this information, along with data parsed from the XML file,

Re: [libvirt] [PATCH v2 3/5] qemu: Add vhost-scsi string for -device parameter

2016-09-12 Thread John Ferlan
On 09/06/2016 08:58 AM, Eric Farman wrote: > Open /dev/vhost-scsi, and record the resulting file descriptor, so that > the guest has access to the host device outside of the libvirt daemon. > Pass this information, along with data parsed from the XML file, to build > a device string for the qemu

[libvirt] [PATCH v2 3/5] qemu: Add vhost-scsi string for -device parameter

2016-09-06 Thread Eric Farman
Open /dev/vhost-scsi, and record the resulting file descriptor, so that the guest has access to the host device outside of the libvirt daemon. Pass this information, along with data parsed from the XML file, to build a device string for the qemu command line. That device string will be for either

[libvirt] [PATCH v2 3/5] qemu: Add vhost-scsi string for -device parameter

2016-08-20 Thread Eric Farman
Open /dev/vhost-scsi, and record the resulting file descriptor, so that the guest has access to the host device outside of the libvirt daemon. Pass this information, along with data parsed from the XML file, to build a device string for the qemu command line. That device string will be for either