diff options
author | Avi Kivity <avi@redhat.com> | 2009-12-28 09:06:35 -0500 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 10:35:45 -0500 |
commit | f4c9e87c83a9f5bc1800db27dbb39e5cd1254c0a (patch) | |
tree | ece820f90bccfa7f2f7927a66b0438c4a0039275 | |
parent | 0680fe52753381cb7154beeb01ef3e48f2cdeec6 (diff) |
KVM: Fill out ftrace exit reason strings
Some exit reasons missed their strings; fill out the table.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r-- | arch/x86/kvm/vmx.c | 58 |
1 files changed, 39 insertions, 19 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index f04e2ff21383..f4486f460278 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -3993,29 +3993,49 @@ static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) | |||
3993 | return ret; | 3993 | return ret; |
3994 | } | 3994 | } |
3995 | 3995 | ||
3996 | #define _ER(x) { EXIT_REASON_##x, #x } | ||
3997 | |||
3996 | static const struct trace_print_flags vmx_exit_reasons_str[] = { | 3998 | static const struct trace_print_flags vmx_exit_reasons_str[] = { |
3997 | { EXIT_REASON_EXCEPTION_NMI, "exception" }, | 3999 | _ER(EXCEPTION_NMI), |
3998 | { EXIT_REASON_EXTERNAL_INTERRUPT, "ext_irq" }, | 4000 | _ER(EXTERNAL_INTERRUPT), |
3999 | { EXIT_REASON_TRIPLE_FAULT, "triple_fault" }, | 4001 | _ER(TRIPLE_FAULT), |
4000 | { EXIT_REASON_NMI_WINDOW, "nmi_window" }, | 4002 | _ER(PENDING_INTERRUPT), |
4001 | { EXIT_REASON_IO_INSTRUCTION, "io_instruction" }, | 4003 | _ER(NMI_WINDOW), |
4002 | { EXIT_REASON_CR_ACCESS, "cr_access" }, | 4004 | _ER(TASK_SWITCH), |
4003 | { EXIT_REASON_DR_ACCESS, "dr_access" }, | 4005 | _ER(CPUID), |
4004 | { EXIT_REASON_CPUID, "cpuid" }, | 4006 | _ER(HLT), |
4005 | { EXIT_REASON_MSR_READ, "rdmsr" }, | 4007 | _ER(INVLPG), |
4006 | { EXIT_REASON_MSR_WRITE, "wrmsr" }, | 4008 | _ER(RDPMC), |
4007 | { EXIT_REASON_PENDING_INTERRUPT, "interrupt_window" }, | 4009 | _ER(RDTSC), |
4008 | { EXIT_REASON_HLT, "halt" }, | 4010 | _ER(VMCALL), |
4009 | { EXIT_REASON_INVLPG, "invlpg" }, | 4011 | _ER(VMCLEAR), |
4010 | { EXIT_REASON_VMCALL, "hypercall" }, | 4012 | _ER(VMLAUNCH), |
4011 | { EXIT_REASON_TPR_BELOW_THRESHOLD, "tpr_below_thres" }, | 4013 | _ER(VMPTRLD), |
4012 | { EXIT_REASON_APIC_ACCESS, "apic_access" }, | 4014 | _ER(VMPTRST), |
4013 | { EXIT_REASON_WBINVD, "wbinvd" }, | 4015 | _ER(VMREAD), |
4014 | { EXIT_REASON_TASK_SWITCH, "task_switch" }, | 4016 | _ER(VMRESUME), |
4015 | { EXIT_REASON_EPT_VIOLATION, "ept_violation" }, | 4017 | _ER(VMWRITE), |
4018 | _ER(VMOFF), | ||
4019 | _ER(VMON), | ||
4020 | _ER(CR_ACCESS), | ||
4021 | _ER(DR_ACCESS), | ||
4022 | _ER(IO_INSTRUCTION), | ||
4023 | _ER(MSR_READ), | ||
4024 | _ER(MSR_WRITE), | ||
4025 | _ER(MWAIT_INSTRUCTION), | ||
4026 | _ER(MONITOR_INSTRUCTION), | ||
4027 | _ER(PAUSE_INSTRUCTION), | ||
4028 | _ER(MCE_DURING_VMENTRY), | ||
4029 | _ER(TPR_BELOW_THRESHOLD), | ||
4030 | _ER(APIC_ACCESS), | ||
4031 | _ER(EPT_VIOLATION), | ||
4032 | _ER(EPT_MISCONFIG), | ||
4033 | _ER(WBINVD), | ||
4016 | { -1, NULL } | 4034 | { -1, NULL } |
4017 | }; | 4035 | }; |
4018 | 4036 | ||
4037 | #undef _ER | ||
4038 | |||
4019 | static bool vmx_gb_page_enable(void) | 4039 | static bool vmx_gb_page_enable(void) |
4020 | { | 4040 | { |
4021 | return false; | 4041 | return false; |