qemu: Allow hotplug of vhost-scsi device
qemu: Allow hotplug of vhost-scsi device

Adjust the device string that is built for vhost-scsi devices so that it
can be invoked from hotplug.

From the QEMU command line, the file descriptors are expect to be numeric only.
However, for hotplug, the file descriptors are expected to begin with at least
one alphabetic character else this error occurs:

  # virsh attach-device guest_0001 ~/vhost.xml
  error: Failed to attach device from /root/vhost.xml
  error: internal error: unable to execute QEMU command 'getfd':
  Parameter 'fdname' expects a name not starting with a digit

We also close the file descriptor in this case, so that shutting down the
guest cleans up the host cgroup entries and allows future guests to use
vhost-scsi devices.  (Otherwise the guest will silently end.)

Signed-off-by: Eric Farman <45cff695b8fa5cc07d58f6876a8fd504d010e3e3@linux.vnet.ibm.com>

jardasgit/libvirt,taget/libvirt,zippy2/libvirt,eskultety/libvirt,jfehlig/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,datto/libvirt,eskultety/libvirt,jfehlig/libvirt,olafhering/libvirt,jfehlig/libvirt,crobinso/libvirt,datto/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,olafhering/libvirt,nertpinx/libvirt,datto/libvirt,zippy2/libvirt,nertpinx/libvirt,jfehlig/libvirt,nertpinx/libvirt,andreabolognani/libvirt,jardasgit/libvirt,datto/libvirt,andreabolognani/libvirt,taget/libvirt,eskultety/libvirt,olafhering/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,taget/libvirt,zippy2/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,crobinso/libvirt,olafhering/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,libvirt/libvirt,libvirt/libvirt,eskultety/libvirt,jardasgit/libvirt,eskultety/libvirt,nertpinx/libvirt,nertpinx/libvirt,datto/libvirt,VenkatDatta/libvirt,zippy2/libvirt,taget/libvirt,libvirt/libvirt,andreabolognani/libvirt,crobinso/libvirt,jardasgit/libvirt,taget/libvirt,fabianfreyer/libvirt,libvirt/libvirt