Assign VIR_DOMAIN_CONTROLLER_MODEL_USB_DEFAULT rather than -1.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_domain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index eef4f8f937..d96acd8916 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -5667,7 +5667,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))
@@ -5677,7 +5677,7 @@ qemuDomainControllerDefPostParse(virDomainControllerDef *cont,
} else if (ARCH_IS_X86(def->os.arch)) {
if (qemuDomainIsMicrovm(def)) {
/* do not select any automatic model for 'microvm' machines
*/
- cont->model = -1;
+ cont->model = VIR_DOMAIN_CONTROLLER_MODEL_USB_DEFAULT;
}
}
}
--
2.43.0