mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-10 07:20:02 +00:00
qemuDomainControllerDefPostParse: Use proper enum value for default USB controller model
Assign VIR_DOMAIN_CONTROLLER_MODEL_USB_DEFAULT rather than -1. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
1dd0744b29
commit
d885d39f10
@ -5658,7 +5658,7 @@ qemuDomainControllerDefPostParse(virDomainControllerDef *cont,
|
||||
cont->model = VIR_DOMAIN_CONTROLLER_MODEL_USB_PCI_OHCI;
|
||||
} else {
|
||||
/* Explicitly fallback to legacy USB controller for PPC64. */
|
||||
cont->model = -1;
|
||||
cont->model = VIR_DOMAIN_CONTROLLER_MODEL_USB_DEFAULT;
|
||||
}
|
||||
} else if (def->os.arch == VIR_ARCH_AARCH64) {
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_QEMU_XHCI))
|
||||
|
Loading…
Reference in New Issue
Block a user