This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically use /dev/sev vs /dev/sev-guest and appropriate IOCTLs t… (
#22) * Automatically use one of the PSP device names: /dev/sev or /dev/sev-guest as well as appropriate IOCTLs to support transition from 5.15 to 6.* Linux kernels. Signed-off-by: Ken Gordon <[email protected]> * Use helpers for the fake report tool. * Add a standalone report decoder. * Tidy the report data string decode so as to avoid trailing rubbish. Support full size report data. Signed-off-by: Ken Gordon <[email protected]>
- Loading branch information
Showing
15 changed files
with
578 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* Copyright (c) Microsoft Corporation. | ||
Licensed under the MIT License. */ | ||
|
||
#pragma once | ||
|
||
bool fetchAttestationReport5(const char* report_data_hexstring, void **snp_report); | ||
|
||
// does /dev/sev exists. This is where the PSP is exposed in 5.15.* | ||
bool supportsDevSev(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* Copyright (c) Microsoft Corporation. | ||
Licensed under the MIT License. */ | ||
|
||
#pragma once | ||
|
||
bool fetchAttestationReport6(const char* report_data_hexstring, void **snp_report); | ||
|
||
// 6.1 linux exposees the PSP via /dev/sev-guest | ||
|
||
bool supportsDevSevGuest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.