docs: document name/version/get_capabilities in VM guide

This commit is contained in:
Alex Beregszaszi 2019-05-08 14:52:13 +01:00 committed by Paweł Bylica
parent 3173a07510
commit cbe32579b3
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ The most important method is ::evmc_instance::execute() because it executes EVM
Remember that the Host is allowed to invoke the execute method concurrently
so do not store data related to a particular execution context in the VM instance.
Before a client can actually execute a VM, it is important to implement the three
basic fields for querying name (::evmc_instance::name), version (::evmc_instance::version)
and capabilities (::evmc_instance::get_capabilities()) as well as the ::evmc_instance::destroy()
method to wind the VM down.
Other methods are optional.
## Resource management
All additional resources allocated when the VM instance is created must be