Skip to content

Commit 869c37d

Browse files
committed
cleanup of IPConfig2/Http Protocol PR
1 parent 9b9e621 commit 869c37d

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66

77
# Integration test output by QEMU.
88
integration-test-debugcon.log
9+
ovmf-firmware-debugcon.log

xtask/src/qemu.rs

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)