]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Shorten SCSI hostdev alias to avoid QEMU failure
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Fri, 12 Jul 2013 15:13:56 +0000 (17:13 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 22 Jul 2013 11:16:29 +0000 (13:16 +0200)
commit1a82e01c97e3280731552279bf853eb195e0cd52
tree61684fa521e2eec47675251d0d6101e9086a0627
parent0dfb8a1b9e7fd3c4bb85e0487a83726f08167654
qemu: Shorten SCSI hostdev alias to avoid QEMU failure

The alias for hostdevs of type SCSI can be too long for QEMU if
larger LUNs are encountered. Here's a real life example:

    <hostdev mode='subsystem' type='scsi' managed='no'>
      <source>
        <adapter name='scsi_host0'/>
        <address bus='0' target='19' unit='1088634913'/>
      </source>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </hostdev>

this results in a too long drive id, resulting in QEMU yelling

Property 'scsi-generic.drive' can't find value 'drive-hostdev-scsi_host0-0-19-1088634913'

This commit changes the alias back to the default hostdev$(index)
scheme.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-boot.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-lsi.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-readonly.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-scsi-virtio-scsi.args