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 <abologna@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
Andrea Bolognani 2018-02-09 16:56:13 +01:00
parent 3c9c46c6a2
commit b9f2a3e6b2

View File

@ -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)) {