guest_vm_util.h
The libsel4vm VM util interface provides a set of useful methods to query a guest vm instance.
Functions:
The interface guest_vm_util.h
defines the following functions.
vm_get_vcpu_tcb(vcpu)
Get the TCB CPtr a given VCPU is associated with
Parameters:
vcpu {vm_vcpu_t}
: A handle to the vcpuReturns:
Back to interface description.
vm_get_vcpu(vm, vcpu_id)
Get the VCPU CPtr associatated with a given logical ID
Parameters:
vm {vm_t *}
: A handle to the vm owning the vcpuvcpu_id {int}
: Logical ID of the vcpuReturns:
Back to interface description.
vm_vcpu_for_target_cpu(vm, target_cpu)
Get the VCPU object that is assigned to a given target core ID
Parameters:
vm {vm_t *}
: A handle to the vm owning the vcputarget_cpu {int}
: Target core IDReturns:
Back to interface description.
vm_find_free_unassigned_vcpu(vm)
Find a VCPU object that hasn't been assigned to a target core
Parameters:
vm {vm_t *}
: A handle to the vm owning the vcpuReturns:
Back to interface description.
is_vcpu_online(vcpu)
Find if a given VCPU is online
Parameters:
vcpu {vm_vcpu_t *}
: A handle to the vcpuReturns:
Back to interface description.
vm_get_vspace(vm)
Get the vspace of a given VM instance
Parameters:
vm {vm_t *}
: A handle to the VMReturns:
Back to interface description.
vm_get_vmm_vspace(vm)
Get the vspace of the host VMM associated with a given VM instance
Parameters:
vm {vm_t *}
: A handle to the VMReturns:
Back to interface description.
Back to top.