diff options
author | Liav A <liavalb@gmail.com> | 2021-07-09 22:53:13 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-13 23:24:16 +0200 |
commit | c92c944356ae88d0064988f1a00a3469463cb9f5 (patch) | |
tree | 3672eeace540b11e3048b6d1d0a816e437d090aa /Meta/run.sh | |
parent | 62c5a5351c6828732ebe123f8aec285466245049 (diff) | |
download | serenity-c92c944356ae88d0064988f1a00a3469463cb9f5.zip |
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.
Diffstat (limited to 'Meta/run.sh')
-rwxr-xr-x | Meta/run.sh | 9 |
1 files 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 |