-
Notifications
You must be signed in to change notification settings - Fork 99
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
Cancel queue #286
Cancel queue #286
Conversation
e1e8150
to
00055a3
Compare
e03e80e
to
5e0efc2
Compare
16a16b4
to
b78ed4b
Compare
8094551
to
7ab942c
Compare
7ab942c
to
c37d9ac
Compare
@@ -453,6 +453,10 @@ pub const EV_RETURNQ_NOT_EMPTY: u64 = 0b0000_0000_0000_0010; | |||
/// An event that enclaves can use for synchronization. | |||
#[cfg_attr(feature = "rustc-dep-of-std", unstable(feature = "sgx_platform", issue = "56975"))] | |||
pub const EV_UNPARK: u64 = 0b0000_0000_0000_0100; | |||
/// An event that will be triggered by userspace when the cancel queue is not | |||
/// or no longer full. |
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.
I didn't check the exact language when looking at the other queue. Are we correctly handling the “not full” case? i.e. this phrasing suggests that if the enclave calls wait
on a queue event and there is no event pending but the queue is not empty/full, an event should be generated immediately.
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.
I don't think we do that in the implementation. It's based on the assumption that the enclave would only issue a wait
usercall with NOT_EMPTY/NOT_FULL
only after trying to send/recv on a queue. But I don't think it would be too difficult to change this. We'd need some way of getting the queue's empty/full state in fn wait
.
c37d9ac
to
95b558e
Compare
95b558e
to
57b0325
Compare
e741386
to
2639806
Compare
2639806
to
4908696
Compare
Close this since this is done by #515 |
This is on top of PR #246 and adds a third queue for cancelling blocked usercalls.