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

Enclave Memory Sharing + Enclave Mailbox #76

Open
wants to merge 15 commits into
base: sm_rs
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Oct 4, 2020

Adding enclave sharing and enclave mailbox functionality to the SM.

@ghost ghost requested review from dkohlbre, dayeol and ThaumicMekanism October 4, 2020 18:57
}
}

if(enclave_addr)
Copy link
Contributor

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){
Copy link
Contributor

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?

Copy link
Contributor

@dayeol dayeol left a 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.

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.

2 participants