]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Use disk wwn in qemu command line
authorOsier Yang <jyang@redhat.com>
Tue, 11 Sep 2012 08:57:04 +0000 (16:57 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 18 Sep 2012 07:00:01 +0000 (15:00 +0800)
commit6e73850b01ee7d5816a803d684e9d669dad036f3
tree7a30fb84c2a4ce9b1cf33dac300cad39c98f85d3
parent331934b29674a95716800de6ac8a6f8075e70b8b
qemu: Use disk wwn in qemu command line

All of ide-drive, ide-hd, ide-cd, scsi-disk, scsi-hd, and scsi-cd
supports wwn property. (NB, scsi-block doesn't support to set wwn).

* src/qemu/qemu_command.c: Error out if underlying QEMU doesn't
support wwn property for the device; Set wwn for the device otherwise.

* tests/qemuxml2argvdata/qemuxml2argv-disk-ide-wwn.args: New test
* tests/qemuxml2argvdata/qemuxml2argv-disk-ide-wwn.xml: Likewise
* tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-disk-wwn.args: Likewise
* tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-disk-wwn.xml: Likewise
* tests/qemuxml2argvtest.c: Add the new tests.
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-disk-ide-wwn.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-ide-wwn.xml [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-disk-wwn.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-disk-scsi-disk-wwn.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c