]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Add cmd_per_lun, max_sectors to virtio-scsi
authorMike Perez <thingee@gmail.com>
Thu, 22 May 2014 18:22:52 +0000 (11:22 -0700)
committerJán Tomko <jtomko@redhat.com>
Wed, 2 Jul 2014 07:43:17 +0000 (09:43 +0200)
commitd950494129513558a303387e26a2bab057012c5e
treea9f2f3bd814f83245e0d8dc6396a6391f297c1b9
parentfba6bc47cbcabbe08d42279691efb0dff3b9c997
qemu: Add cmd_per_lun, max_sectors to virtio-scsi

This introduces two new attributes "cmd_per_lun" and "max_sectors" same
with the names QEMU uses for virtio-scsi. An example of the XML:

<controller type='scsi' index='0' model='virtio-scsi' cmd_per_lun='50'
max_sectors='512'/>

The corresponding QEMU command line:

-device virtio-scsi-pci,id=scsi0,cmd_per_lun=50,max_sectors=512,
bus=pci.0,addr=0x3

Signed-off-by: Mike Perez <thingee@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio-scsi-cmd_per_lun.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio-scsi-cmd_per_lun.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio-scsi-max_sectors.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio-scsi-max_sectors.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c