@@ -332,12 +332,6 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
332332
333333 cmd. args ( [ "-device" , "virtio-rng-pci" ] ) ;
334334
335- if arch == UefiArch :: IA32 || arch == UefiArch :: X86_64 {
336- cmd. args ( [ "-debugcon" , "file:./integration-test-debugcon.log" ] ) ;
337- cmd. args ( [ "-chardev" , "file,id=fw,path=./ovmf-firmware-debugcon.log" ] ) ;
338- cmd. args ( [ "-device" , "isa-debugcon,chardev=fw,iobase=0x402" ] ) ;
339- }
340-
341335 // Set the boot menu timeout to zero. On aarch64 in particular this speeds
342336 // up the boot a lot. Note that we have to enable the menu here even though
343337 // we are skipping right past it, otherwise `splash-time` is ignored in
@@ -394,14 +388,14 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
394388 // Map the QEMU exit signal to port f4.
395389 cmd. args ( [ "-device" , "isa-debug-exit,iobase=0xf4,iosize=0x04" ] ) ;
396390
397- // OVMF debug builds can output information to a serial `debugcon`.
398- // Only enable when debugging UEFI boot .
399- // cmd.args([
400- // "-debugcon",
401- // "file:debug.log",
402- // "-global",
403- // "isa- debugcon.iobase=0x402",
404- // ]);
391+ // We also add a debugcon logger next to the serial one, as
392+ // it sumplifies debugging in some rare cases .
393+ cmd. args ( [ "-debugcon" , "file:./integration-test-debugcon.log" ] ) ;
394+
395+ // Debugging messages from the OVMF firmware.
396+ // More info: https://github.com/tianocore/edk2/blob/62390a89c5eb477594b74b5e1911d65998a8abe2/OvmfPkg/README#L90
397+ cmd . args ( [ "-chardev" , "file,id=fw,path=./ovmf-firmware- debugcon.log" ] ) ;
398+ cmd . args ( [ "-device" , "isa-debugcon,chardev=fw,iobase=0x402" ] ) ;
405399 }
406400 }
407401
0 commit comments