Skip to content
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

Library to communicate with the SVSM and attest the VTPM from the guest #361

Open
ShannonSD opened this issue May 24, 2024 · 6 comments
Open

Comments

@ShannonSD
Copy link

Is there currently an interface for a guest to communicate with the SVSM to request a VMPL0 attestation report that attests and binds the vTPM to the guest (perhaps by inclduing the vTPM's EK and SK)?

@cclaudio
Copy link
Member

Hi @ShannonSD

Yes, I believe you are looking for the Attestation protocol defined in the SVSM specification (chapter 7). I implemented this protocol some time ago, I can rebase it to latest and submit.

The SVSM spec, section 8.3.3, defines that the vTPM EK is returned to the SVSM_ATTEST_SINGLE_SERVICE caller, but not the vTPM SK.

The Linux patch series below will be required, specially the patch 14. Currently, it is under review.
https://lore.kernel.org/lkml/9a4c4a16d00834c1b7ff458e25c185ac1c9bcf79.1713974291.git.thomas.lendacky@amd.com/

Claudio

@cclaudio
Copy link
Member

The Linux patch series below will be required, specially the patch 14. Currently, it is under review.
https://lore.kernel.org/lkml/9a4c4a16d00834c1b7ff458e25c185ac1c9bcf79.1713974291.git.thomas.lendacky@amd.com/

Sorry, I wanted to share with you a link to our COCONUT/linux repository, but I ended picking up the upstream.
coconut-svsm/linux@84357db

@deeglaze
Copy link
Contributor

deeglaze commented Jul 8, 2024

This issue is stale. Okay to close?

@IT302
Copy link

IT302 commented Jul 23, 2024

Hi @cclaudio

I am interested in using TSM to obtain the vTPM's EK. Would it possible to rebase what you have implemented and commit?

Geoffrey

@cclaudio
Copy link
Member

Hi @IT302
I will try to do that for next week

@Isaac-Matthews
Copy link

Hi @cclaudio is there an update on this?
Thanks

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

No branches or pull requests

5 participants