Skip to content

Commit f75cf20

Browse files
committed
Document build.py QEMU settings
1 parent 4390142 commit f75cf20

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

uefi-test-runner/build.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,30 @@ def run_qemu():
6666

6767
qemu_flags = [
6868
# Disable default devices.
69+
# QEMU by defaults enables a ton of devices which slow down boot.
6970
'-nodefaults',
71+
7072
# Use a standard VGA for graphics.
7173
'-vga', 'std',
74+
7275
# Use a modern machine, with acceleration if possible.
7376
'-machine', 'q35,accel=kvm:tcg',
77+
7478
# Allocate some memory.
7579
'-m', '128M',
80+
7681
# Set up OVMF.
7782
'-drive', f'if=pflash,format=raw,file={ovmf_code},readonly=on',
7883
'-drive', f'if=pflash,format=raw,file={ovmf_vars},readonly=on',
84+
7985
# Create AHCI controller.
8086
'-device', 'ahci,id=ahci,multifunction=on',
87+
8188
# Mount a local directory as a FAT partition.
8289
'-drive', f'if=none,format=raw,file=fat:rw:{ESP_DIR},id=esp',
8390
'-device', 'ide-drive,bus=ahci.0,drive=esp',
91+
92+
# OVMF debug builds can output information to a serial `debugcon`.
8493
# Only enable when debugging UEFI boot:
8594
#'-debugcon', 'file:debug.log', '-global', 'isa-debugcon.iobase=0x402',
8695
]

0 commit comments

Comments
 (0)