From b9f2a3e6b26d1ec8cb6a6cc91bafecc69ffc030c Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 9 Feb 2018 16:56:13 +0100 Subject: [PATCH] qemu: Error out on invalid pci-root controller model name This is a hard error, and should be handled as such. Introduced in 24614760228b. Signed-off-by: Andrea Bolognani Reviewed-by: John Ferlan --- src/qemu/qemu_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 16833474a1..178ec24ae7 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -4446,7 +4446,7 @@ qemuDomainDeviceDefValidateControllerPCI(const virDomainControllerDef *controlle _("PCI controller model name '%s' is not valid " "for a pci-root"), modelName); - return 0; + return -1; } if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE)) { -- 2.47.2