Interface guest_memory_helpers.h
The libsel4vm guest memory helpers interface provides simple utilities for using the guest memory interface.
Brief content:
Functions:
default_error_fault_callback(vm, vcpu, fault_addr, fault_length, cookie)
Functions
The interface guest_memory_helpers.h
defines the following functions.
Function default_error_fault_callback(vm, vcpu, fault_addr, fault_length, cookie)
Default fault callback that throws a fault error. Useful to avoid having to re-define a fault callback on regions that should be mapped with all rights.
Parameters:
vm {vm_t *}
: A handle to the VMvcpu {vm_vcpu_t *}
: A handle to the fault vcpufault {uintptr_t}
: addr Faulting addressfault_length {size_t}
: Length of faulted accesscookie {void *}
: User cookie to pass onto callback
Returns:
- Always returns FAULT_ERROR
Back to interface description.
Back to top.