On Tue, Dec 12, 2017 at 04:06 PM +0100, John Ferlan <jferlan@xxxxxxxxxx> wrote: > Modify the SCSI controller switch during command line building > to account for all virDomainControllerModelSCSI types rather > than using the default label. > > Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx> > --- > src/qemu/qemu_command.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c > index 7aa5f5dd1..d3a993fb1 100644 > --- a/src/qemu/qemu_command.c > +++ b/src/qemu/qemu_command.c > @@ -2667,7 +2667,7 @@ qemuBuildControllerDevStr(const virDomainDef *domainDef, > if ((qemuDomainSetSCSIControllerModel(domainDef, qemuCaps, &model)) < 0) > return -1; > > - switch (model) { > + switch ((virDomainControllerModelSCSI) model) { > case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VIRTIO_SCSI: > if (def->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW) { > virBufferAddLit(&buf, "virtio-scsi-ccw"); > @@ -2707,7 +2707,10 @@ qemuBuildControllerDevStr(const virDomainDef *domainDef, > case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LSISAS1078: > virBufferAddLit(&buf, "megasas"); > break; > - default: > + case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_AUTO: > + case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_BUSLOGIC: > + case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_VMPVSCSI: > + case VIR_DOMAIN_CONTROLLER_MODEL_SCSI_LAST: > virReportError(VIR_ERR_CONFIG_UNSUPPORTED, > _("Unsupported controller model: %s"), > virDomainControllerModelSCSITypeToString(def->model)); > -- > 2.13.6 > > -- > libvir-list mailing list > libvir-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/libvir-list > Reviewed-by: Marc Hartmayer <mhartmay@xxxxxxxxxxxxxxxxxx> (haven’t tested it) -- Beste Grüße / Kind regards Marc Hartmayer IBM Deutschland Research & Development GmbH Vorsitzende des Aufsichtsrats: Martina Koederitz Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list