blob: 8a106b1b40df2fd2f060796c20c0d0ccd57cbe84 [file] [log] [blame]
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(DATA61_GPL)
*/
#pragma once
#include <sel4vm/guest_vm.h>
/*typedef int(*vmexit_handler_ptr)(vm_vcpu_t *vcpu);*/
/*vm exit handlers*/
int vm_cpuid_handler(vm_vcpu_t *vcpu);
int vm_ept_violation_handler(vm_vcpu_t *vcpu);
int vm_wrmsr_handler(vm_vcpu_t *vcpu);
int vm_rdmsr_handler(vm_vcpu_t *vcpu);
int vm_io_instruction_handler(vm_vcpu_t *vcpu);
int vm_hlt_handler(vm_vcpu_t *vcpu);
int vm_vmx_timer_handler(vm_vcpu_t *vcpu);
int vm_cr_access_handler(vm_vcpu_t *vcpu);
int vm_vmcall_handler(vm_vcpu_t *vcpu);
int vm_pending_interrupt_handler(vm_vcpu_t *vcpu);