-
Notifications
You must be signed in to change notification settings - Fork 14
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
Enclave Memory Sharing + Enclave Mailbox #76
base: sm_rs
Are you sure you want to change the base?
Conversation
} | ||
} | ||
|
||
if(enclave_addr) |
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.
can you use mprv instead of passing physical address to this SBI?
with mprv, you can pass in the runtime's virtual address and the SM will use satp to translate the VA.
} | ||
|
||
|
||
uintptr_t mcall_sm_mem_share(size_t uid, uintptr_t enclave_addr, uintptr_t enclave_size){ |
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.
Can you change the mem_share
and mem_stop
to mem_share_start
and mem_share_stop
?
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.
please see comments! other than those, looks great.
Adding enclave sharing and enclave mailbox functionality to the SM.