]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add two qemu caps for lsi and virtio-scsi SCSI controllers
authorGuannan Ren <gren@redhat.com>
Wed, 8 Aug 2012 07:06:33 +0000 (15:06 +0800)
committerGuannan Ren <gren@redhat.com>
Wed, 8 Aug 2012 07:06:33 +0000 (15:06 +0800)
commit015c603bcd854b0c8d7ebf613e8f2ebe14c254be
tree7afb803130b2766337bfbbbbb0c94be8c477eee4
parent8694c716ae64a62f3452ed732ef3f74b929aabe8
qemu: add two qemu caps for lsi and virtio-scsi SCSI controllers

Rename qemuDefaultScsiControllerModel to qemuCheckScsiControllerModel.
When scsi model is given explicitly in XML(model > 0) checking if the
underlying QEMU supports it or not first, raise an error on checking
failure.
When the model is not given(mode <= 0), return LSI by default, if
the QEMU doesn't support it, raise an error.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_process.c
tests/qemuxml2argvtest.c