@@ -332,12 +332,6 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
332
332
333
333
cmd. args ( [ "-device" , "virtio-rng-pci" ] ) ;
334
334
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
-
341
335
// Set the boot menu timeout to zero. On aarch64 in particular this speeds
342
336
// up the boot a lot. Note that we have to enable the menu here even though
343
337
// 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<()> {
394
388
// Map the QEMU exit signal to port f4.
395
389
cmd. args ( [ "-device" , "isa-debug-exit,iobase=0xf4,iosize=0x04" ] ) ;
396
390
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" ] ) ;
405
399
}
406
400
}
407
401
0 commit comments