Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@

# Integration test output by QEMU.
integration-test-debugcon.log
ovmf-firmware-debugcon.log
22 changes: 8 additions & 14 deletions xtask/src/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,6 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {

cmd.args(["-device", "virtio-rng-pci"]);

if arch == UefiArch::IA32 || arch == UefiArch::X86_64 {
cmd.args(["-debugcon", "file:./integration-test-debugcon.log"]);
cmd.args(["-chardev", "file,id=fw,path=./ovmf-firmware-debugcon.log"]);
cmd.args(["-device", "isa-debugcon,chardev=fw,iobase=0x402"]);
}

// Set the boot menu timeout to zero. On aarch64 in particular this speeds
// up the boot a lot. Note that we have to enable the menu here even though
// we are skipping right past it, otherwise `splash-time` is ignored in
Expand Down Expand Up @@ -394,14 +388,14 @@ pub fn run_qemu(arch: UefiArch, opt: &QemuOpt) -> Result<()> {
// Map the QEMU exit signal to port f4.
cmd.args(["-device", "isa-debug-exit,iobase=0xf4,iosize=0x04"]);

// OVMF debug builds can output information to a serial `debugcon`.
// Only enable when debugging UEFI boot.
// cmd.args([
// "-debugcon",
// "file:debug.log",
// "-global",
// "isa-debugcon.iobase=0x402",
// ]);
// We also add a debugcon logger next to the serial one, as
// it simplifies debugging in some cases.
cmd.args(["-debugcon", "file:./integration-test-debugcon.log"]);

// Debugging messages from the OVMF firmware.
// More info: https://github.com/tianocore/edk2/blob/62390a89c5eb477594b74b5e1911d65998a8abe2/OvmfPkg/README#L90
cmd.args(["-chardev", "file,id=fw,path=./ovmf-firmware-debugcon.log"]);
cmd.args(["-device", "isa-debugcon,chardev=fw,iobase=0x402"]);
}
}

Expand Down