Skip to content

C-WCOW: Unify data structures and reuse for C-LCOW and C-WCOW - #2544

Merged
Hamza El-Saawy (helsaawy) merged 9 commits into
microsoft:mainfrom
MahatiC:refactoring-confidential
Dec 22, 2025
Merged

Hamza El-Saawy (helsaawy) merged 9 commits into
microsoft:mainfrom
MahatiC:refactoring-confidential

Conversation

@MahatiC

Copy link
Copy Markdown
Member
  • This change repurposes existing data structures and uses them for both C-LCOW and C-WCOW

Comment thread internal/uvm/start.go Resolved
Comment thread internal/gcs-sidecar/host.go Resolved
Comment thread internal/gcs-sidecar/host.go Resolved
Comment thread internal/uvm/start.go Resolved
Comment thread internal/uvm/security_policy.go Resolved
@MahatiC
Mahati Chamarthy (MahatiC) force-pushed the refactoring-confidential branch 3 times, most recently from 990fe18 to 8cfcea8 Compare October 31, 2025 16:17
@MahatiC
Mahati Chamarthy (MahatiC) force-pushed the refactoring-confidential branch 3 times, most recently from 5d6a794 to 309345c Compare November 5, 2025 11:47
@MahatiC
Mahati Chamarthy (MahatiC) marked this pull request as ready for review November 6, 2025 09:03
@MahatiC
Mahati Chamarthy (MahatiC) requested a review from a team as a code owner November 6, 2025 09:03
@MahatiC

Copy link
Copy Markdown
Member Author

Maksim An (@anmaxvl) Could you review this PR too?

@MahatiC
Mahati Chamarthy (MahatiC) force-pushed the refactoring-confidential branch 3 times, most recently from c4bfa1c to 9f69e49 Compare December 3, 2025 16:18
@anmaxvl Maksim An (anmaxvl) self-assigned this Dec 4, 2025
Comment thread cmd/gcs-sidecar/main.go Resolved
Comment thread internal/uvm/start.go Resolved
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
@anmaxvl

Copy link
Copy Markdown
Contributor

Mahati Chamarthy (@MahatiC) , I think we should have something like this in the end:

pkg/
└── amdsevsnp/
    ├── report.go
    ├── report_windows.go
    ├── report_linux.go
    └── validate.go
  • report.go - platform independent code, the exported attestation report fetching (raw/parsed) methods and all the shared type/struct definitions (you'll dedup a good chunk of internal/pspdriver/pspdriver.go code as well)
  • report_windows.go - windows specific code to fetch the report (i.e. pspdriver.go code without the shared type definitions) and any additional windows specific definitions we may need
  • report_linux.go - linux specific code to fetch the report (report.go content minus type/struct and IOCTL code)
  • validate.go - platform independent host data validation code

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
@KenGordon

Copy link
Copy Markdown
Collaborator

Hamza El-Saawy (@helsaawy) can this be merged now?

@helsaawy Hamza El-Saawy (helsaawy) left a comment

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.

one comment, lgtm otherwise

Comment thread internal/uvm/create.go Resolved

@helsaawy Hamza El-Saawy (helsaawy) left a comment

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.

one comment, lgtm otherwise

@helsaawy
Hamza El-Saawy (helsaawy) merged commit e3ffe3d into microsoft:main Dec 22, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants