multiple: surface early boot logs in debug mode#2289
Merged
Conversation
Add debug and lib parameters to the OVMF-SNP package. When debug = true, the build uses the DEBUG configuration and enables serial port output via -D DEBUG_ON_SERIAL_PORT=TRUE. This is useful for capturing OVMF firmware logs during development and testing. Signed-off-by: Spyros Seimenis <sse@edgeless.systems>
Override OVMF-SNP and OVMF-TDX with debug=true in the debug set. This builds OVMF with DEBUG_ON_SERIAL_PORT=TRUE, producing firmware debug output on the serial port. Combined with use_legacy_serial=true, OVMF output will be captured by kata's console watcher and logged to the journal. Signed-off-by: Spyros Seimenis <sse@edgeless.systems>
Enable legacy serial (ttyS0) when debug mode is active so that kata's console watcher can also capture early OVMF firmware logs. kata's use_legacy_serial option configures qemu to use legacy serial (ttyS0) instead of virtio (hvc0/hvc1) but also configures the guest kernel to use the ttyS0 through the kernel cmdline. Since the kernel command line changes, the SNP launch measurement also changes and so the cmdline in runtime/package.nix needs to also be updated accordingly. Signed-off-by: Spyros Seimenis <sse@edgeless.systems>
1c0690e to
4902644
Compare
burgerdev
approved these changes
Apr 1, 2026
katexochen
reviewed
Apr 20, 2026
Comment on lines
+17
to
+18
| inherit (contrastPkgsFinal) OVMF-SNP; | ||
| inherit (contrastPkgsFinal) OVMF-TDX; |
Member
There was a problem hiding this comment.
is this actually needed? shouldn't it propagate automatically via the fixpoint?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To achieve this:
OVMF-SNPsimilar to the one that already exists inOVMF-TDX.That way when the debug set is used, information from the early boot will be included in the journal.