enarx-archive / sallyport

API for the hypervisor-microkernel boundary
Apache License 2.0
7 stars 6 forks source link

Add support for memory-related syscalls #65

Closed rvolosatovs closed 2 years ago

rvolosatovs commented 2 years ago

Part of #34

Just like https://github.com/enarx/sallyport/blob/8efea8f02f46af32f570ddac6b6a86bd51755733/src/syscall/memory.rs#L8-L37

This is mostly just the signatures and syscall method matching.

It is expected that users of this crate requiring these syscalls will create a custom Handler, which will impl Execute and provide implementations for these methods. Note, that if that would require proxying the (custom) syscall to the host, then currently we have no mechanism in place to cater for that, but that would be easy to implement - please let me know if we need that now and/or file a follow-up issue.