Skip to content

CVM: Audit tracing and add ALLOWED/CONFIDENTIAL where appropriate #1408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 30, 2025

Conversation

smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented May 23, 2025

Also includes some drive-by cleanups where I happened to see them.

Areas I did not audit because they are not relevant to CVMs:

  • trace and debug level statements
  • Non-CVM workers (debug & VNC)
  • Test only code (petri, vmm_tests, tmk*)
  • ARM-specific code
  • Non-CVM virt backends (including virt_mshv_vtl/mshv)
  • Host-only code (openvmm, GED, igvmfilegen, etc)
  • Gen 1 devices (vga, chipset, etc)
  • VirtIO

Areas that still need auditing by owners and area experts:

  • Mesh (@jstarks)
  • Networking (vm/devices/net/* & underhill_core/netvsp) (networking team)
  • Storage (vm/devices/storage/* & underhill_core/nvme_manager) (storage team)
  • VMBus (vm/devices/vmbus/*) (@SvenGroot)
  • VMGS (vm/vmgs/*) (@tjones60)

Part of #852

@smalis-msft smalis-msft requested a review from a team as a code owner May 23, 2025 21:30
@smalis-msft smalis-msft added the backport_2505 Change should be backported to the release/2505 branch label May 23, 2025
@smalis-msft smalis-msft requested a review from a team as a code owner May 23, 2025 21:30
@mebersol
Copy link
Collaborator

            panic!("Received unexpected SEV exit code {sev_error_code:x?}");

does this get logged in a debug-disabled CVM? If not, do we want a non-specific error message logged for this case?


Refers to: openhcl/virt_mshv_vtl/src/processor/snp/mod.rs:1575 in 8476372. [](commit_id = 8476372, deletion_comment = False)

@smalis-msft
Copy link
Contributor Author

Yes, panic messages should still get logged in a debug-disabled CVM. One of the things I'm working on this week is validating that.

@smalis-msft smalis-msft enabled auto-merge (squash) May 30, 2025 14:49

This comment was marked as outdated.

@smalis-msft smalis-msft merged commit 7577ad6 into microsoft:main May 30, 2025
28 checks passed
@smalis-msft smalis-msft deleted the tracing_audit branch May 30, 2025 22:22
smalis-msft added a commit to smalis-msft/openvmm that referenced this pull request Jun 3, 2025
…crosoft#1408)

Also includes some drive-by cleanups where I happened to see them.

Areas I did not audit because they are not relevant to CVMs:
- trace and debug level statements
- Non-CVM workers (debug & VNC)
- Test only code (petri, vmm_tests, tmk*)
- ARM-specific code
- Non-CVM virt backends (including virt_mshv_vtl/mshv)
- Host-only code (openvmm, GED, igvmfilegen, etc)
- Gen 1 devices (vga, chipset, etc)
- VirtIO

Areas that still need auditing by owners and area experts:
- Mesh (@jstarks)
- Networking (vm/devices/net/* & underhill_core/netvsp) (networking
team)
- Storage (vm/devices/storage/* & underhill_core/nvme_manager) (storage
team)
- VMBus (vm/devices/vmbus/*) (@SvenGroot)
- VMGS (vm/vmgs/*) (@tjones60)

Part of microsoft#852
benhillis pushed a commit that referenced this pull request Jun 4, 2025
) (#1460)

Also includes some drive-by cleanups where I happened to see them.

Areas I did not audit because they are not relevant to CVMs:
- trace and debug level statements
- Non-CVM workers (debug & VNC)
- Test only code (petri, vmm_tests, tmk*)
- ARM-specific code
- Non-CVM virt backends (including virt_mshv_vtl/mshv)
- Host-only code (openvmm, GED, igvmfilegen, etc)
- Gen 1 devices (vga, chipset, etc)
- VirtIO

Areas that still need auditing by owners and area experts:
- Mesh (@jstarks)
- Networking (vm/devices/net/* & underhill_core/netvsp) (networking
team)
- Storage (vm/devices/storage/* & underhill_core/nvme_manager) (storage
team)
- VMBus (vm/devices/vmbus/*) (@SvenGroot)
- VMGS (vm/vmgs/*) (@tjones60)

Part of #852

Cherry-pick of #1408
@benhillis
Copy link
Member

Backported in #1460

@benhillis benhillis added backported_2505 PR that has been backported to release/2505 and removed backport_2505 Change should be backported to the release/2505 branch labels Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport_2505_approved backported_2505 PR that has been backported to release/2505
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants