guest_vcpu_fault.h
The libsel4vm VCPU fault interface provides a set of useful methods to query and configure vcpu objects that have faulted during execution. This interface is commonly leveraged by VMM's to process a vcpu fault and handle it accordingly.
Functions:
The interface guest_vcpu_fault.h
defines the following functions.
get_vcpu_fault_address(vcpu)
Get current fault address of vcpu
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
Back to interface description.
get_vcpu_fault_ip(vcpu)
Get instruction pointer of current vcpu fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
Back to interface description.
get_vcpu_fault_data(vcpu)
Get the data of the current vcpu fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
Back to interface description.
get_vcpu_fault_data_mask(vcpu)
Get data mask of the current vcpu fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
Back to interface description.
get_vcpu_fault_size(vcpu)
Get access size of the current vcpu fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
Back to interface description.
is_vcpu_read_fault(vcpu)
Is current vcpu fault a read fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
Back to interface description.
set_vcpu_fault_data(vcpu, data)
Set the data of the current vcpu fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpudata {seL4_Word}
: Data to set for current vcpu faultReturns:
Back to interface description.
emulate_vcpu_fault(vcpu, data)
Emulate a read or write fault on a given data value
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpudata {seL4_Word}
: Data to perform emulate fault onReturns:
Back to interface description.
advance_vcpu_fault(vcpu)
Advance the current vcpu fault to the next stage/instruction
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
No return
Back to interface description.
restart_vcpu_fault(vcpu)
Restart the current vcpu fault
Parameters:
vcpu {vm_vcpu_t *}
: Handle to vcpuReturns:
No return
Back to interface description.
Back to top.