[libvirt] [PATCH 0/2] Fixes on shareable SCSI host device

Osier Yang jyang at redhat.com
Thu Jan 2 14:45:38 UTC 2014


It's easy to reproduce with two domains using the same SCSI
generic device, both with <shareable> specified. It's expected
to work. But the fact is:

% virsh start f20-1
error: Failed to start domain b
error: Requested operation is not valid: SCSI device 1:0:0:0 is in use by domain f20-0

Osier Yang (2):
  util: Add "shareable" field for virSCSIDevice struct
  qemu: Don't fail if the SCSI host device is shareable between domains

 src/libvirt_private.syms         |  1 +
 src/qemu/qemu_cgroup.c           |  3 ++-
 src/qemu/qemu_hostdev.c          | 42 +++++++++++++++++++++++-----------------
 src/security/security_apparmor.c |  3 ++-
 src/security/security_dac.c      |  6 ++++--
 src/security/security_selinux.c  |  6 ++++--
 src/util/virscsi.c               | 11 ++++++++++-
 src/util/virscsi.h               |  4 +++-
 8 files changed, 50 insertions(+), 26 deletions(-)

-- 
1.8.1.4




More information about the libvir-list mailing list