From c92c944356ae88d0064988f1a00a3469463cb9f5 Mon Sep 17 00:00:00 2001 From: Liav A Date: Fri, 9 Jul 2021 22:53:13 +0300 Subject: [PATCH] Meta: Tweak qemu run script to use pcie-root-ports With this change, we use 6 PCIe root ports in the Q35 machine, and plug the bochs-display device into one of those PCIe ports. We plug the bochs-display as function 0 of that device, because otherwise SeaBIOS and also the kernel will not detect its presence. --- Meta/run.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Meta/run.sh b/Meta/run.sh index 38e73244c3..d17254b657 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -146,11 +146,16 @@ $SERENITY_EXTRA_QEMU_ARGS -machine q35 -d guest_errors -smp 2 +-device pcie-root-port,port=0x10,chassis=1,id=pcie.1,bus=pcie.0,multifunction=on,addr=0x2 +-device pcie-root-port,port=0x11,chassis=2,id=pcie.2,bus=pcie.0,addr=0x2.0x1 +-device pcie-root-port,port=0x12,chassis=3,id=pcie.3,bus=pcie.0,addr=0x2.0x2 +-device pcie-root-port,port=0x13,chassis=4,id=pcie.4,bus=pcie.0,addr=0x2.0x3 +-device pcie-root-port,port=0x14,chassis=5,id=pcie.5,bus=pcie.0,addr=0x2.0x4 +-device pcie-root-port,port=0x15,chassis=6,id=pcie.6,bus=pcie.0,addr=0x2.0x5 -display $SERENITY_QEMU_DISPLAY_BACKEND -device $SERENITY_QEMU_DISPLAY_DEVICE -device secondary-vga --device bochs-display --device VGA,vgamem_mb=64 +-device bochs-display,bus=pcie.6,addr=0x10.0x0 -device piix3-ide -drive file=${SERENITY_DISK_IMAGE},id=disk,if=none -device ahci,id=ahci