Skip to content

Add support for platform root key#772

Open
sangho2 wants to merge 2 commits intomainfrom
sanghle/prk
Open

Add support for platform root key#772
sangho2 wants to merge 2 commits intomainfrom
sanghle/prk

Conversation

@sangho2
Copy link
Copy Markdown
Contributor

@sangho2 sangho2 commented Apr 14, 2026

This PR adds support for Platform Root Key (PRK) which can be used to derive other keys like per-TA keys. It introduces a new trait PlatformRootKeyProvider to let guests access PRK through the shim (platform_root_key()).

@sangho2 sangho2 marked this pull request as ready for review April 14, 2026 21:58
@sangho2
Copy link
Copy Markdown
Contributor Author

sangho2 commented Apr 15, 2026

@jaybosamiya-ms I've added PlatformRootKeyProvider to litebox, which is based on the discussion we had in the past.

@sangho2
Copy link
Copy Markdown
Contributor Author

sangho2 commented Apr 15, 2026

@tgopinath-microsoft This PR introduces a VTL function/call for setting a platform root key (mshv_vsm_set_platform_root_key). The function (and overall PR) is straightforward, but it requires your or your team's input because it defines a new ABI.

@sangho2
Copy link
Copy Markdown
Contributor Author

sangho2 commented Apr 15, 2026

Once this PR is merged, I'll rebase #643 .

@github-actions
Copy link
Copy Markdown

🤖 SemverChecks 🤖 ⚠️ Potential breaking API changes detected ⚠️

Click for details
--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.47.0/src/lints/enum_variant_added.ron

Failed in:
  variant VsmFunction:SetPlatformRootKey in /home/runner/work/litebox/litebox/litebox_platform_lvbs/src/mshv/mod.rs:158

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.

1 participant