]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Add virtio-scsi to fallback models of scsi controller
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 15 Jul 2013 07:19:06 +0000 (09:19 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 18 Jul 2013 12:36:57 +0000 (14:36 +0200)
commitb7f1c0c38729e5eba44ba134b93b1b95a4dae8d8
tree76c9fb1cdd7669c93eb92fd1c83e19542825756f
parentdbeb04a65cb986db951af0382495b41692d1ad9d
Add virtio-scsi to fallback models of scsi controller

When user does not specify any model for scsi controller, or worse, no
controller at all, but libvirt automatically adds scsi controller with
no model, we are not searching for virtio-scsi and thus this can fail
for example on qemu which doesn't support lsi logic adapter.

This means that when qemu on x86 doesn't support lsi53c895a and the
user adds the following to an XML without any scsi controller:

<disk ...>
  ...
  <target dev='sda'>
</disk>

libvirt fails like this:
 # virsh define asdf.xml
 error: Failed to define domain from asdf.xml
 error: internal error Unable to determine model for scsi controller

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=974943
src/qemu/qemu_command.c