2 releases
0.1.1 | Apr 11, 2024 |
---|---|
0.1.0 | Mar 26, 2024 |
#5 in #hermit
Used in uhyve
13KB
187 lines
Uhyve Hypervisor Interface
The uhyve hypercall interface works as follows:
- On
x86_64
you use an out port instruction. The address of theout
-port corresponds to the hypercall you want to use. You can obtain it from theIoPorts
enum. The data send to that port is the physical memory address (of the VM) of the parameters of that hypercall. - On
aarch64
you write to the respectiveHypercallAddress
. The 64-bit value written to that location is the guest's physical memory address of the hypercall's parameter.
Dependencies
~0.8–1.4MB
~29K SLoC