Commit f4c9e87c authored by Avi Kivity's avatar Avi Kivity Committed by Marcelo Tosatti

KVM: Fill out ftrace exit reason strings

Some exit reasons missed their strings; fill out the table.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 0680fe52
...@@ -3993,29 +3993,49 @@ static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio) ...@@ -3993,29 +3993,49 @@ static u64 vmx_get_mt_mask(struct kvm_vcpu *vcpu, gfn_t gfn, bool is_mmio)
return ret; return ret;
} }
#define _ER(x) { EXIT_REASON_##x, #x }
static const struct trace_print_flags vmx_exit_reasons_str[] = { static const struct trace_print_flags vmx_exit_reasons_str[] = {
{ EXIT_REASON_EXCEPTION_NMI, "exception" }, _ER(EXCEPTION_NMI),
{ EXIT_REASON_EXTERNAL_INTERRUPT, "ext_irq" }, _ER(EXTERNAL_INTERRUPT),
{ EXIT_REASON_TRIPLE_FAULT, "triple_fault" }, _ER(TRIPLE_FAULT),
{ EXIT_REASON_NMI_WINDOW, "nmi_window" }, _ER(PENDING_INTERRUPT),
{ EXIT_REASON_IO_INSTRUCTION, "io_instruction" }, _ER(NMI_WINDOW),
{ EXIT_REASON_CR_ACCESS, "cr_access" }, _ER(TASK_SWITCH),
{ EXIT_REASON_DR_ACCESS, "dr_access" }, _ER(CPUID),
{ EXIT_REASON_CPUID, "cpuid" }, _ER(HLT),
{ EXIT_REASON_MSR_READ, "rdmsr" }, _ER(INVLPG),
{ EXIT_REASON_MSR_WRITE, "wrmsr" }, _ER(RDPMC),
{ EXIT_REASON_PENDING_INTERRUPT, "interrupt_window" }, _ER(RDTSC),
{ EXIT_REASON_HLT, "halt" }, _ER(VMCALL),
{ EXIT_REASON_INVLPG, "invlpg" }, _ER(VMCLEAR),
{ EXIT_REASON_VMCALL, "hypercall" }, _ER(VMLAUNCH),
{ EXIT_REASON_TPR_BELOW_THRESHOLD, "tpr_below_thres" }, _ER(VMPTRLD),
{ EXIT_REASON_APIC_ACCESS, "apic_access" }, _ER(VMPTRST),
{ EXIT_REASON_WBINVD, "wbinvd" }, _ER(VMREAD),
{ EXIT_REASON_TASK_SWITCH, "task_switch" }, _ER(VMRESUME),
{ EXIT_REASON_EPT_VIOLATION, "ept_violation" }, _ER(VMWRITE),
_ER(VMOFF),
_ER(VMON),
_ER(CR_ACCESS),
_ER(DR_ACCESS),
_ER(IO_INSTRUCTION),
_ER(MSR_READ),
_ER(MSR_WRITE),
_ER(MWAIT_INSTRUCTION),
_ER(MONITOR_INSTRUCTION),
_ER(PAUSE_INSTRUCTION),
_ER(MCE_DURING_VMENTRY),
_ER(TPR_BELOW_THRESHOLD),
_ER(APIC_ACCESS),
_ER(EPT_VIOLATION),
_ER(EPT_MISCONFIG),
_ER(WBINVD),
{ -1, NULL } { -1, NULL }
}; };
#undef _ER
static bool vmx_gb_page_enable(void) static bool vmx_gb_page_enable(void)
{ {
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment