]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add vhost-scsi string for -device parameter
authorEric Farman <farman@linux.vnet.ibm.com>
Tue, 22 Nov 2016 03:58:18 +0000 (22:58 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 24 Nov 2016 17:16:19 +0000 (12:16 -0500)
commit9cc26dc62271d909f2c7019828c1120570cd0a70
tree531a4877aa13495ad62f74bf06d0efe3469d131c
parent629544be0feb87a5503466f55d4b9d5803a53b26
qemu: Add vhost-scsi string for -device parameter

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 a vhost-scsi-ccw device in the case of an s390 machine, or
vhost-scsi-pci for any others.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_domain_address.c
src/qemu/qemu_hostdev.c
src/qemu/qemu_hostdev.h