Interface guest_vm_arch.h
The guest x86 vm interface is central to using libsel4vm on an x86 platform, providing definitions of the x86 guest vm datastructures and primitives to configure the VM instance.
Brief content:
Structs:
Structs
The interface guest_vm_arch.h
defines the following structs.
Struct vm_vcpu
Structure representing x86 specific vm properties
Elements:
vmexit_handler {vmexit_handler_ptr}
: Set of exit handler hooksvmcall_handlers {vmcall_handler_t *}
: Set of registered vmcall handlersvmcall_num_handler {unsigned int}
: Total number of registered vmcall handlersguest_pd {uintptr_t}
: Guest physical address of where we built the vm’s page directoryunhandled_ioport_callback {unhandled_ioport_callback_fn}
: A callback for processing unhandled ioport faultsunhandled_ioport_callback_cookie {void *}
: A cookie to supply to the ioport callbackioport_list {vm_io_port_list_t}
: List of registered ioport handlersi8259_gs {i8259_t *}
: PIC machine state
Back to interface description.
Struct vm_vcpu_arch
Structure representing x86 specific vcpu properties
Elements:
guest_state {guest_state_t *}
: Current VCPU Statelapic {vm_lapic_t *}
: VM local apic
Back to interface description.
Back to top.