12#define ERR(x) [VMERR_ ## x] = #x
13 static const char *
const strings[] = {
15 ERR(VMCLEAR_BAD_PADDR),
16 ERR(VMCLEAR_WITH_VMXON_PTR),
17 ERR(VMLAUNCH_NONCLEAR_VMCS),
18 ERR(VMRESUME_NONLAUNCHED_VMCS),
19 ERR(VMRESUME_AFTER_VMXOFF),
20 ERR(INVALID_CONTROL_STATE),
21 ERR(INVALID_HOST_STATE),
22 ERR(VMPTRLD_BAD_PADDR),
23 ERR(VMPTRLD_WITH_VMXON_PTR),
24 ERR(VMPTRLD_BAD_REVID),
25 ERR(UNSUPPORTED_VMCS_FIELD),
26 ERR(VMWRITE_READONLY_FIELD),
28 ERR(VMENTRY_BAD_EXECUTIVE),
29 ERR(VMENTRY_NONLAUNCHED_EXECUTIVE),
30 ERR(VMENTRY_WITHOUT_VMXON_PTR),
31 ERR(VMCALL_NONCLEAR_VMCS),
32 ERR(VMCALL_BAD_CONTROL_STATE),
33 ERR(VMCALL_BAD_MSEG_REVID),
34 ERR(VMXOFF_UNDER_DUAL),
35 ERR(VMCALL_BAD_SMM_MONITOR),
36 ERR(BAD_EXECUTIVE_STATE),
42 if ( err <
ARRAY_SIZE(strings) && strings[err] )
const char * vmx_insn_err_strerror(unsigned int err)
Error string for VMX Instruction Errors.