]> xenbits.xensource.com Git - libvirt.git/commit
conf: Check for hostdev conflicts when assign default disk address
authorJohn Ferlan <jferlan@redhat.com>
Mon, 22 Jun 2015 19:13:39 +0000 (15:13 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 12 Aug 2015 20:09:05 +0000 (16:09 -0400)
commit1b08cc170a84077afd4d15f4639a9a2cf398e9a2
tree10804554043ba37e2f1a679ef4c1fd3dcc1a7bda
parentd6ea4adbfcb3f66a1cf3e4d54d2ec7e79d7247e3
conf: Check for hostdev conflicts when assign default disk address

https://bugzilla.redhat.com/show_bug.cgi?id=1210587  (completed)

When generating the default drive address for a SCSI <disk> device,
check the generated address to ensure it doesn't conflict with a SCSI
<hostdev> address. The <disk> address generation algorithm uses the
<target> "dev" name in order to determine which controller and unit
in order to place the device. Since a SCSI <hostdev> device doesn't
require a target device name, its placement on the guest SCSI address
"could" conflict.  For instance, if a SCSI <hostdev> exists at
controller=0 unit=0 and an attempt to hotplug 'sda' into the guest
made, there would be a conflict if the <hostdev> is already using
/dev/sda.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/vmx/vmx.c
src/vmx/vmx.h