Open tomaka opened 4 years ago
No longer needed after https://github.com/paritytech/substrate/pull/9592. We should remove all the corresponding host functions.
After discussion, it is planned to reintroduce usage of these functions of Substrate, so let's not remove them.
In the Substrate sandboxing API, the runtime can call a function in a separate VM (the guest), and this guest can in return call functions in its supervisor. These "callbacks" happen while the
invoke
function (that invokes the guest) is still in progress.In order to be able to implement this, the virtual machine API needs to support being able to call a function while an existing one is in an interrupted state.