Only x86_64 and i686 seem to have support for multiple PCI-busses. When
a guest of these architectures is started, set the
QEMUD_CMD_FLAG_PCI_MULTIBUS flag.
Signed-off-by: Niels de Vos <devos(a)fedoraproject.org>
---
src/qemu/qemu_command.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 457c8b0..0899710 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -2640,6 +2640,12 @@ qemuBuildCommandLine(virConnectPtr conn,
break;
}
+ /* Currently only x86_64 and i686 support PCI-multibus. */
+ if (STREQLEN(def->os.arch, "x86_64", 6) ||
+ STREQLEN(def->os.arch, "i686", 4)) {
+ qemuCmdFlags |= QEMUD_CMD_FLAG_PCI_MULTIBUS;
+ }
+
cmd = virCommandNewArgList(emulator, "-S", NULL);
virCommandAddEnvPassCommon(cmd);
--
1.7.3.5