Skip to content

Commit

Permalink
Log guest errors in Qemu
Browse files Browse the repository at this point in the history
This does not seem to actually log a simple int3 from the restricted
kernel wrapper, but it may be that the issue is on the guest; I think
this is worth enabling in Qemu regardless.

Bug: 355609624
Change-Id: I4a05e5a58345223dfbf6aad16bec2b6b166c3a4b
  • Loading branch information
tiziano88 committed Jul 26, 2024
1 parent 2173054 commit d73ee8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oak_launcher_utils/src/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ impl Instance {

// Construct the command-line arguments for `qemu`.
cmd.arg("-enable-kvm");
// Log guest errors and other interesting events to stderr.
cmd.args(["-d", "int,unimp,guest_errors"]);
// Needed to expose advanced CPU features. Specifically RDRAND which is required
// for remote attestation.
cmd.args(["-cpu", "IvyBridge-IBRS,enforce"]);
Expand Down

0 comments on commit d73ee8c

Please sign in to comment.