Skip to content

Conversation

@smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Aug 18, 2025

There's no reason not to have it. This also removes the configuration of logging and the ability to disable it, since we still only have the one output backend.

Copilot AI review requested due to automatic review settings August 18, 2025 16:51
@smalis-msft smalis-msft requested a review from a team as a code owner August 18, 2025 16:51
Copy link
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 enables early logging by default when running in environments where the host can be trusted, removing the need for explicit configuration in such scenarios. Previously, early logging was only automatically enabled when the confidential debug environment variable was set.

Key changes:

  • Moves logger initialization logic to occur after determining host trustworthiness
  • Automatically enables serial logging when host can be trusted and no explicit logger is configured
  • Removes automatic logger setup from confidential debug flag parsing

Reviewed Changes

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

File Description
openhcl/openhcl_boot/src/main.rs Relocates logger initialization logic and adds automatic serial logging for trusted host environments
openhcl/openhcl_boot/src/cmdline.rs Removes automatic logger setup from confidential debug flag parsing

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@github-actions
Copy link

@smalis-msft smalis-msft changed the title ohcl_boot: Enable early logging whenever we can trust the host ohcl_boot: Always enable logging ASAP Aug 18, 2025
@github-actions
Copy link

@smalis-msft
Copy link
Contributor Author

Does ARM ohcl boot serial not work on hyper-v?

@tjones60
Copy link
Contributor

Does ARM ohcl boot serial not work on hyper-v?

COM3 openhcl logs do not work on ARM Hyper-V today. I just talked to Mike about this and it should be possible to add support in the Hyper-V PL011 emulator.

@smalis-msft
Copy link
Contributor Author

Does ARM ohcl boot serial not work on hyper-v?

COM3 openhcl logs do not work on ARM Hyper-V today. I just talked to Mike about this and it should be possible to add support in the Hyper-V PL011 emulator.

Do we have that tracked in ADO somewhere? I'll just remove it from here for now, but I don't want to lose that.

@smalis-msft
Copy link
Contributor Author

Confirmed that I see openhcl_boot logs in vmm test output now.

@smalis-msft smalis-msft enabled auto-merge (squash) August 20, 2025 16:05
@smalis-msft smalis-msft merged commit af84210 into microsoft:main Aug 21, 2025
29 checks passed
@smalis-msft smalis-msft deleted the boot-debug-early-log branch August 21, 2025 18:32
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.

3 participants