qemu: Allow pcie-expander-bus for aarch64/virt guests

Starting with QEMU 6.0, this controller is enabled by default
on aarch64.

https://bugzilla.redhat.com/show_bug.cgi?id=1967187

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2021-07-22 15:37:25 +02:00
parent e9e0876a96
commit f225ef2a04
2 changed files with 4 additions and 4 deletions

View File

@ -5222,10 +5222,10 @@ qemuDomainControllerDefPostParse(virDomainControllerDef *cont,
return -1;
}
if (cont->model == VIR_DOMAIN_CONTROLLER_MODEL_PCIE_EXPANDER_BUS &&
!qemuDomainIsQ35(def)) {
!(qemuDomainIsQ35(def) || qemuDomainIsARMVirt(def))) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("pcie-expander-bus controllers are only supported "
"on q35-based machinetypes"));
_("pcie-expander-bus controllers are not supported "
"with this machine type"));
return -1;
}

View File

@ -1 +1 @@
unsupported configuration: pcie-expander-bus controllers are only supported on q35-based machinetypes
unsupported configuration: pcie-expander-bus controllers are not supported with this machine type