2 * This file is part of the Palacios Virtual Machine Monitor developed
3 * by the V3VEE Project with funding from the United States National
4 * Science Foundation and the Department of Energy.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
10 * Copyright (c) 2008, Jack Lange <jarusl@cs.northwestern.edu>
11 * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org>
12 * All rights reserved.
14 * Author: Jack Lange <jarusl@cs.northwestern.edu>
16 * This is free software. You are permitted to use,
17 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
20 #ifndef __VMX_HANDLER_H__
21 #define __VMX_HANDLER_H__
25 #include <palacios/vm_guest.h>
27 /******************************************/
28 /* VMX Intercept Exit Codes */
29 /******************************************/
31 VMEXIT_INFO_EXCEPTION_OR_NMI = 0,
32 VMEXIT_EXTERNAL_INTR = 1,
33 VMEXIT_TRIPLE_FAULT = 2,
34 VMEXIT_INIT_SIGNAL = 3,
35 VMEXIT_STARTUP_IPI = 4,
38 VMEXIT_INTR_WINDOW = 7,
39 VMEXIT_NMI_WINDOW = 8,
40 VMEXIT_TASK_SWITCH = 9,
58 VMEXIT_CR_REG_ACCESSES = 28,
63 VMEXIT_ENTRY_FAIL_INVALID_GUEST_STATE = 33,
64 VMEXIT_ENTRY_FAIL_MSR_LOAD = 34,
68 VMEXIT_ENTRY_FAILURE_MACHINE_CHECK = 41,
69 VMEXIT_TPR_BELOW_THRESHOLD = 43,
71 VMEXIT_GDTR_IDTR = 46,
73 VMEXIT_EPT_VIOLATION = 48,
74 VMEXIT_EPT_CONFIG = 49,
77 VMEXIT_EXPIRED_PREEMPT_TIMER = 52,
83 int v3_handle_vmx_exit(struct v3_gprs * gprs, struct guest_info * info);