Skip to content

petri: Plumb EfiDiagnosticsLogLevel and add INFO level test#3481

Merged
maheeraeron merged 5 commits into
microsoft:mainfrom
maheeraeron:user/maheeraeron/efi-diagnostics-test
May 19, 2026
Merged

petri: Plumb EfiDiagnosticsLogLevel and add INFO level test#3481
maheeraeron merged 5 commits into
microsoft:mainfrom
maheeraeron:user/maheeraeron/efi-diagnostics-test

Conversation

@maheeraeron
Copy link
Copy Markdown
Contributor

Small PR to plumb the EfiDiagnosticsLogLevel configuration to Petri, then add a test that searches for a specific INFO level log

Copilot AI review requested due to automatic review settings May 13, 2026 22:16
@maheeraeron maheeraeron requested a review from a team as a code owner May 13, 2026 22:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Petri-level configuration for EFI diagnostics verbosity and uses it in a new VMM test that verifies an INFO-level UEFI diagnostics message is observable through OpenHCL kmsg.

Changes:

  • Adds EfiDiagnosticsLogLevel to Petri UEFI configuration and a builder setter.
  • Maps the Petri log-level enum into OpenVMM and GED configuration paths.
  • Adds a multiarch test that enables INFO diagnostics and searches kmsg for a known INFO message.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
petri/src/vm/mod.rs Adds the public Petri UEFI diagnostics log-level API and config field.
petri/src/vm/openvmm/construct.rs Plumbs the new Petri setting into OpenVMM and OpenHCL GED config construction.
vmm_tests/vmm_tests/tests/tests/multiarch.rs Adds an OpenVMM/OpenHCL UEFI test for INFO-level EFI diagnostics output.

Comment thread petri/src/vm/mod.rs
Copy link
Copy Markdown
Member

@chris-oo chris-oo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but question around testing on hyper-v

Comment thread petri/src/vm/mod.rs
Copy link
Copy Markdown
Contributor

@jennagoddard jennagoddard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copilot AI review requested due to automatic review settings May 16, 2026 03:00
@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment thread petri/src/vm/hyperv/mod.rs Outdated
@github-actions
Copy link
Copy Markdown

Copilot AI review requested due to automatic review settings May 18, 2026 18:04
@github-actions
Copy link
Copy Markdown

@maheeraeron maheeraeron enabled auto-merge (squash) May 19, 2026 03:49
generation_id_recv: None,
rtc_delta_milliseconds: 0,
efi_diagnostics_log_level: Default::default(), // TODO: Add config for tests
efi_diagnostics_log_level: match firmware
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is still under the heading "Disabled for VMM tests by default." I think it would make the most sense to put this match statement up near where we match the secure boot template.

@maheeraeron maheeraeron merged commit 9a496b6 into microsoft:main May 19, 2026
156 of 164 checks passed
@maheeraeron maheeraeron deleted the user/maheeraeron/efi-diagnostics-test branch May 19, 2026 15:38
shenw0000 added a commit to shenw0000/openvmm that referenced this pull request May 21, 2026
cxl

cxl mmio reserve

root port bar for cxl component reg

debug

fix align

debug

hdm and ssdt

hdm

separate cxl pci mmio

fix: hid and cid

cedt

cedt

bug fix

debug

Add debug logs

fix

Revert "Add debug logs"

This reverts commit 27cf831.

cxl component regs

fix

small changes

debug log

debug more

Revert "debug more"

This reverts commit ff67454.

Revert "debug log"

This reverts commit f1da238.

save&restore + wip: dvsec

wip: dvsec cxl

CXL dvsec

rename

port dvsec

flex bus port dvsec

reg locator dvsec

port cxl

port cxl

debug

debug

Revert "debug"

This reverts commit 29d87bf.

Revert "debug"

This reverts commit d77df19.

test: cxl mem

add type3

cxl test

cxl test log

fix bug

fix bug

leave todo

AI CR

More AI review

more fixes

fix

fix

fix

fix more ai review

CR

CR

CR

fix

merge

fix more ai review

fix

CR

CR

CR

petri: Plumb EfiDiagnosticsLogLevel and add INFO level test (microsoft#3481)

vmm_tests: mark some tests as unstable (microsoft#3514)

The following tests have been failing in CI:

- x86_64__openvmm_linux_x64_virtio_blk_device
- multiarch__tpm__hyperv_openhcl_uefi_x64_*_snp_use_hw_unseal
- multiarch__tpm__hyperv_openhcl_uefi_x64_*_snp_skip_hw_unseal

Mark them as unstable for now until a fix can be developed.

CR

fix

CR

CR

CR

CR
shenw0000 added a commit to shenw0000/openvmm that referenced this pull request May 21, 2026
cxl

cxl mmio reserve

root port bar for cxl component reg

debug

fix align

debug

hdm and ssdt

hdm

separate cxl pci mmio

fix: hid and cid

cedt

cedt

bug fix

debug

Add debug logs

fix

Revert "Add debug logs"

This reverts commit 27cf831.

cxl component regs

fix

small changes

debug log

debug more

Revert "debug more"

This reverts commit ff67454.

Revert "debug log"

This reverts commit f1da238.

save&restore + wip: dvsec

wip: dvsec cxl

CXL dvsec

rename

port dvsec

flex bus port dvsec

reg locator dvsec

port cxl

port cxl

debug

debug

Revert "debug"

This reverts commit 29d87bf.

Revert "debug"

This reverts commit d77df19.

test: cxl mem

add type3

cxl test

cxl test log

fix bug

fix bug

leave todo

AI CR

More AI review

more fixes

fix

fix

fix

fix more ai review

CR

CR

CR

fix

merge

fix more ai review

fix

CR

CR

CR

petri: Plumb EfiDiagnosticsLogLevel and add INFO level test (microsoft#3481)

vmm_tests: mark some tests as unstable (microsoft#3514)

The following tests have been failing in CI:

- x86_64__openvmm_linux_x64_virtio_blk_device
- multiarch__tpm__hyperv_openhcl_uefi_x64_*_snp_use_hw_unseal
- multiarch__tpm__hyperv_openhcl_uefi_x64_*_snp_skip_hw_unseal

Mark them as unstable for now until a fix can be developed.

CR

fix

CR

CR

CR

CR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants