-
Notifications
You must be signed in to change notification settings - Fork 275
C-WCOW: Unify data structures and reuse for C-LCOW and C-WCOW #2544
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
base: main
Are you sure you want to change the base?
Conversation
MahatiC
commented
Oct 28, 2025
- This change repurposes existing data structures and uses them for both C-LCOW and C-WCOW
7f5ca46 to
fa8bfb1
Compare
fa8bfb1 to
8d14576
Compare
990fe18 to
8cfcea8
Compare
5d6a794 to
309345c
Compare
|
|
||
| // validateHostData fetches SNP report (if applicable) and validates `hostData` against | ||
| // HostData set at UVM launch. | ||
| func validateHostData(hostData []byte) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code and the code in the windows version are functionally equivalent. I suspect the main difference is the amdsevsnp vs PsPDriver as the owner of the PSP device. Can we get that behind an abstraction so this code is actually the same concrete function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are already abstracted and call their respective driver functions (which are OS specific) though.
| "github.com/sirupsen/logrus" | ||
| ) | ||
|
|
||
| type SecurityOptions struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these really options? Or are they things that were previous stuffed into the Options object kind of on the cheap back in the mists of time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand this?
Signed-off-by: Mahati Chamarthy <[email protected]>
Signed-off-by: Mahati Chamarthy <[email protected]>
Signed-off-by: Mahati Chamarthy <[email protected]>
Move inject and load fragment into the securitypolicy pkg Signed-off-by: Mahati Chamarthy <[email protected]>
Signed-off-by: Mahati Chamarthy <[email protected]>
Signed-off-by: Mahati Chamarthy <[email protected]>
Signed-off-by: Mahati Chamarthy <[email protected]>
309345c to
da9c178
Compare