It may be better to check virtio-scsi controller first since it is supported better in qemu level. Signed-off-by: Liang Yan<lyan@xxxxxxxx> --- src/qemu/qemu_domain_address. 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_domain_ index b5b863fe4..9bec0790f 100644 --- a/src/qemu/qemu_domain_ +++ b/src/qemu/qemu_domain_ @@ -90,10 +90,10 @@ qemuDomainSetSCSIControllerMod } else { if (qemuDomainIsPSeries(def)) { *model = VIR_DOMAIN_CONTROLLER_MODEL_ - } else if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_LSI)) { - *model = VIR_DOMAIN_CONTROLLER_MODEL_ } else if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_VIRTIO_SCSI)) { *model = VIR_DOMAIN_CONTROLLER_MODEL_ + } else if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_SCSI_LSI)) { + *model = VIR_DOMAIN_CONTROLLER_MODEL_ } else { virReportError(VIR_ERR_ _("Unable to determine model for scsi controller")); -- 2.13.2
|
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list