-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to in-enclave load and move communication structs defines into…
… shared headers (#415) This PR consolidates duplicated definitions of various structs, enums, and defines which are used for inter-project communication. This includes mainly the SDK <-> driver <-> SM <-> runtime <-> eapp interfaces. --------- Co-authored-by: Gregor Haas <[email protected]>
- Loading branch information
Showing
54 changed files
with
331 additions
and
467 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
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
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 |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#include "keystone-sbi.h" | ||
|
||
struct sbiret sbi_sm_create_enclave(struct keystone_sbi_create_t* args) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_CREATE_ENCLAVE, | ||
(unsigned long) args, 0, 0, 0, 0, 0); | ||
} | ||
|
||
struct sbiret sbi_sm_run_enclave(unsigned long eid) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_RUN_ENCLAVE, | ||
eid, 0, 0, 0, 0, 0); | ||
} | ||
|
||
struct sbiret sbi_sm_destroy_enclave(unsigned long eid) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_DESTROY_ENCLAVE, | ||
eid, 0, 0, 0, 0, 0); | ||
} | ||
|
||
struct sbiret sbi_sm_resume_enclave(unsigned long eid) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_RESUME_ENCLAVE, | ||
eid, 0, 0, 0, 0, 0); | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
config BR2_TARGET_KEYSTONE_SM | ||
bool "Keystone security monitor" | ||
select BR2_TARGET_OPENSBI | ||
select BR2_TARGET_OPENSBI | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
help | ||
Keystone security monitor augmentations | ||
to OpenSBI |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
config BR2_PACKAGE_KEYSTONE_DRIVER | ||
bool "Keystone driver" | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
help | ||
Linux driver for the Keystone TEE system |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
config BR2_PACKAGE_KEYSTONE_RUNTIME | ||
bool "Keystone Eyrie runtime" | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
help | ||
Eyrie runtime |
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.