1 /* SPDX-License-Identifier: GPL-2.0 */
2 #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ)
5 #include <linux/tracepoint.h>
8 #include <asm/clocksource.h>
9 #include <asm/pvclock-abi.h>
12 #define TRACE_SYSTEM kvm
15 * Tracepoint for guest mode entry.
17 TRACE_EVENT(kvm_entry,
18 TP_PROTO(struct kvm_vcpu *vcpu),
22 __field( unsigned int, vcpu_id )
23 __field( unsigned long, rip )
27 __entry->vcpu_id = vcpu->vcpu_id;
28 __entry->rip = kvm_rip_read(vcpu);
31 TP_printk("vcpu %u, rip 0x%lx", __entry->vcpu_id, __entry->rip)
35 * Tracepoint for hypercall.
37 TRACE_EVENT(kvm_hypercall,
38 TP_PROTO(unsigned long nr, unsigned long a0, unsigned long a1,
39 unsigned long a2, unsigned long a3),
40 TP_ARGS(nr, a0, a1, a2, a3),
43 __field( unsigned long, nr )
44 __field( unsigned long, a0 )
45 __field( unsigned long, a1 )
46 __field( unsigned long, a2 )
47 __field( unsigned long, a3 )
58 TP_printk("nr 0x%lx a0 0x%lx a1 0x%lx a2 0x%lx a3 0x%lx",
59 __entry->nr, __entry->a0, __entry->a1, __entry->a2,
64 * Tracepoint for hypercall.
66 TRACE_EVENT(kvm_hv_hypercall,
67 TP_PROTO(__u16 code, bool fast, __u16 var_cnt, __u16 rep_cnt,
68 __u16 rep_idx, __u64 ingpa, __u64 outgpa),
69 TP_ARGS(code, fast, var_cnt, rep_cnt, rep_idx, ingpa, outgpa),
72 __field( __u16, rep_cnt )
73 __field( __u16, rep_idx )
74 __field( __u64, ingpa )
75 __field( __u64, outgpa )
76 __field( __u16, code )
77 __field( __u16, var_cnt )
82 __entry->rep_cnt = rep_cnt;
83 __entry->rep_idx = rep_idx;
84 __entry->ingpa = ingpa;
85 __entry->outgpa = outgpa;
87 __entry->var_cnt = var_cnt;
91 TP_printk("code 0x%x %s var_cnt 0x%x rep_cnt 0x%x idx 0x%x in 0x%llx out 0x%llx",
92 __entry->code, __entry->fast ? "fast" : "slow",
93 __entry->var_cnt, __entry->rep_cnt, __entry->rep_idx,
94 __entry->ingpa, __entry->outgpa)
97 TRACE_EVENT(kvm_hv_hypercall_done,
102 __field(__u64, result)
106 __entry->result = result;
109 TP_printk("result 0x%llx", __entry->result)
113 * Tracepoint for Xen hypercall.
115 TRACE_EVENT(kvm_xen_hypercall,
116 TP_PROTO(unsigned long nr, unsigned long a0, unsigned long a1,
117 unsigned long a2, unsigned long a3, unsigned long a4,
119 TP_ARGS(nr, a0, a1, a2, a3, a4, a5),
122 __field(unsigned long, nr)
123 __field(unsigned long, a0)
124 __field(unsigned long, a1)
125 __field(unsigned long, a2)
126 __field(unsigned long, a3)
127 __field(unsigned long, a4)
128 __field(unsigned long, a5)
141 TP_printk("nr 0x%lx a0 0x%lx a1 0x%lx a2 0x%lx a3 0x%lx a4 0x%lx a5 %lx",
142 __entry->nr, __entry->a0, __entry->a1, __entry->a2,
143 __entry->a3, __entry->a4, __entry->a5)
149 * Tracepoint for PIO.
153 #define KVM_PIO_OUT 1
156 TP_PROTO(unsigned int rw, unsigned int port, unsigned int size,
157 unsigned int count, void *data),
158 TP_ARGS(rw, port, size, count, data),
161 __field( unsigned int, rw )
162 __field( unsigned int, port )
163 __field( unsigned int, size )
164 __field( unsigned int, count )
165 __field( unsigned int, val )
170 __entry->port = port;
171 __entry->size = size;
172 __entry->count = count;
174 __entry->val = *(unsigned char *)data;
176 __entry->val = *(unsigned short *)data;
178 __entry->val = *(unsigned int *)data;
181 TP_printk("pio_%s at 0x%x size %d count %d val 0x%x %s",
182 __entry->rw ? "write" : "read",
183 __entry->port, __entry->size, __entry->count, __entry->val,
184 __entry->count > 1 ? "(...)" : "")
188 * Tracepoint for fast mmio.
190 TRACE_EVENT(kvm_fast_mmio,
202 TP_printk("fast mmio at gpa 0x%llx", __entry->gpa)
206 * Tracepoint for cpuid.
208 TRACE_EVENT(kvm_cpuid,
209 TP_PROTO(unsigned int function, unsigned int index, unsigned long rax,
210 unsigned long rbx, unsigned long rcx, unsigned long rdx,
211 bool found, bool used_max_basic),
212 TP_ARGS(function, index, rax, rbx, rcx, rdx, found, used_max_basic),
215 __field( unsigned int, function )
216 __field( unsigned int, index )
217 __field( unsigned long, rax )
218 __field( unsigned long, rbx )
219 __field( unsigned long, rcx )
220 __field( unsigned long, rdx )
221 __field( bool, found )
222 __field( bool, used_max_basic )
226 __entry->function = function;
227 __entry->index = index;
232 __entry->found = found;
233 __entry->used_max_basic = used_max_basic;
236 TP_printk("func %x idx %x rax %lx rbx %lx rcx %lx rdx %lx, cpuid entry %s%s",
237 __entry->function, __entry->index, __entry->rax,
238 __entry->rbx, __entry->rcx, __entry->rdx,
239 __entry->found ? "found" : "not found",
240 __entry->used_max_basic ? ", used max basic" : "")
243 #define AREG(x) { APIC_##x, "APIC_" #x }
245 #define kvm_trace_symbol_apic \
246 AREG(ID), AREG(LVR), AREG(TASKPRI), AREG(ARBPRI), AREG(PROCPRI), \
247 AREG(EOI), AREG(RRR), AREG(LDR), AREG(DFR), AREG(SPIV), AREG(ISR), \
248 AREG(TMR), AREG(IRR), AREG(ESR), AREG(ICR), AREG(ICR2), AREG(LVTT), \
249 AREG(LVTTHMR), AREG(LVTPC), AREG(LVT0), AREG(LVT1), AREG(LVTERR), \
250 AREG(TMICT), AREG(TMCCT), AREG(TDCR), AREG(SELF_IPI), AREG(EFEAT), \
253 * Tracepoint for apic access.
255 TRACE_EVENT(kvm_apic,
256 TP_PROTO(unsigned int rw, unsigned int reg, u64 val),
257 TP_ARGS(rw, reg, val),
260 __field( unsigned int, rw )
261 __field( unsigned int, reg )
271 TP_printk("apic_%s %s = 0x%llx",
272 __entry->rw ? "write" : "read",
273 __print_symbolic(__entry->reg, kvm_trace_symbol_apic),
277 #define trace_kvm_apic_read(reg, val) trace_kvm_apic(0, reg, val)
278 #define trace_kvm_apic_write(reg, val) trace_kvm_apic(1, reg, val)
280 #define KVM_ISA_VMX 1
281 #define KVM_ISA_SVM 2
283 #define kvm_print_exit_reason(exit_reason, isa) \
284 (isa == KVM_ISA_VMX) ? \
285 __print_symbolic(exit_reason & 0xffff, VMX_EXIT_REASONS) : \
286 __print_symbolic(exit_reason, SVM_EXIT_REASONS), \
287 (isa == KVM_ISA_VMX && exit_reason & ~0xffff) ? " " : "", \
288 (isa == KVM_ISA_VMX) ? \
289 __print_flags(exit_reason & ~0xffff, " ", VMX_EXIT_REASON_FLAGS) : ""
291 #define TRACE_EVENT_KVM_EXIT(name) \
293 TP_PROTO(struct kvm_vcpu *vcpu, u32 isa), \
294 TP_ARGS(vcpu, isa), \
297 __field( unsigned int, exit_reason ) \
298 __field( unsigned long, guest_rip ) \
299 __field( u32, isa ) \
300 __field( u64, info1 ) \
301 __field( u64, info2 ) \
302 __field( u32, intr_info ) \
303 __field( u32, error_code ) \
304 __field( unsigned int, vcpu_id ) \
308 __entry->guest_rip = kvm_rip_read(vcpu); \
309 __entry->isa = isa; \
310 __entry->vcpu_id = vcpu->vcpu_id; \
311 static_call(kvm_x86_get_exit_info)(vcpu, \
312 &__entry->exit_reason, \
315 &__entry->intr_info, \
316 &__entry->error_code); \
319 TP_printk("vcpu %u reason %s%s%s rip 0x%lx info1 0x%016llx " \
320 "info2 0x%016llx intr_info 0x%08x error_code 0x%08x", \
322 kvm_print_exit_reason(__entry->exit_reason, __entry->isa), \
323 __entry->guest_rip, __entry->info1, __entry->info2, \
324 __entry->intr_info, __entry->error_code) \
328 * Tracepoint for kvm guest exit:
330 TRACE_EVENT_KVM_EXIT(kvm_exit);
333 * Tracepoint for kvm interrupt injection:
335 TRACE_EVENT(kvm_inj_virq,
336 TP_PROTO(unsigned int irq),
340 __field( unsigned int, irq )
347 TP_printk("irq %u", __entry->irq)
350 #define EXS(x) { x##_VECTOR, "#" #x }
352 #define kvm_trace_sym_exc \
353 EXS(DE), EXS(DB), EXS(BP), EXS(OF), EXS(BR), EXS(UD), EXS(NM), \
354 EXS(DF), EXS(TS), EXS(NP), EXS(SS), EXS(GP), EXS(PF), \
355 EXS(MF), EXS(AC), EXS(MC)
358 * Tracepoint for kvm interrupt injection:
360 TRACE_EVENT(kvm_inj_exception,
361 TP_PROTO(unsigned exception, bool has_error, unsigned error_code),
362 TP_ARGS(exception, has_error, error_code),
365 __field( u8, exception )
366 __field( u8, has_error )
367 __field( u32, error_code )
371 __entry->exception = exception;
372 __entry->has_error = has_error;
373 __entry->error_code = error_code;
376 TP_printk("%s (0x%x)",
377 __print_symbolic(__entry->exception, kvm_trace_sym_exc),
378 /* FIXME: don't print error_code if not present */
379 __entry->has_error ? __entry->error_code : 0)
383 * Tracepoint for page fault.
385 TRACE_EVENT(kvm_page_fault,
386 TP_PROTO(unsigned long fault_address, unsigned int error_code),
387 TP_ARGS(fault_address, error_code),
390 __field( unsigned long, fault_address )
391 __field( unsigned int, error_code )
395 __entry->fault_address = fault_address;
396 __entry->error_code = error_code;
399 TP_printk("address %lx error_code %x",
400 __entry->fault_address, __entry->error_code)
404 * Tracepoint for guest MSR access.
407 TP_PROTO(unsigned write, u32 ecx, u64 data, bool exception),
408 TP_ARGS(write, ecx, data, exception),
411 __field( unsigned, write )
414 __field( u8, exception )
418 __entry->write = write;
420 __entry->data = data;
421 __entry->exception = exception;
424 TP_printk("msr_%s %x = 0x%llx%s",
425 __entry->write ? "write" : "read",
426 __entry->ecx, __entry->data,
427 __entry->exception ? " (#GP)" : "")
430 #define trace_kvm_msr_read(ecx, data) trace_kvm_msr(0, ecx, data, false)
431 #define trace_kvm_msr_write(ecx, data) trace_kvm_msr(1, ecx, data, false)
432 #define trace_kvm_msr_read_ex(ecx) trace_kvm_msr(0, ecx, 0, true)
433 #define trace_kvm_msr_write_ex(ecx, data) trace_kvm_msr(1, ecx, data, true)
436 * Tracepoint for guest CR access.
439 TP_PROTO(unsigned int rw, unsigned int cr, unsigned long val),
440 TP_ARGS(rw, cr, val),
443 __field( unsigned int, rw )
444 __field( unsigned int, cr )
445 __field( unsigned long, val )
454 TP_printk("cr_%s %x = 0x%lx",
455 __entry->rw ? "write" : "read",
456 __entry->cr, __entry->val)
459 #define trace_kvm_cr_read(cr, val) trace_kvm_cr(0, cr, val)
460 #define trace_kvm_cr_write(cr, val) trace_kvm_cr(1, cr, val)
462 TRACE_EVENT(kvm_pic_set_irq,
463 TP_PROTO(__u8 chip, __u8 pin, __u8 elcr, __u8 imr, bool coalesced),
464 TP_ARGS(chip, pin, elcr, imr, coalesced),
467 __field( __u8, chip )
469 __field( __u8, elcr )
471 __field( bool, coalesced )
475 __entry->chip = chip;
477 __entry->elcr = elcr;
479 __entry->coalesced = coalesced;
482 TP_printk("chip %u pin %u (%s%s)%s",
483 __entry->chip, __entry->pin,
484 (__entry->elcr & (1 << __entry->pin)) ? "level":"edge",
485 (__entry->imr & (1 << __entry->pin)) ? "|masked":"",
486 __entry->coalesced ? " (coalesced)" : "")
489 #define kvm_apic_dst_shorthand \
493 {0x3, "all-but-self"}
495 TRACE_EVENT(kvm_apic_ipi,
496 TP_PROTO(__u32 icr_low, __u32 dest_id),
497 TP_ARGS(icr_low, dest_id),
500 __field( __u32, icr_low )
501 __field( __u32, dest_id )
505 __entry->icr_low = icr_low;
506 __entry->dest_id = dest_id;
509 TP_printk("dst %x vec %u (%s|%s|%s|%s|%s)",
510 __entry->dest_id, (u8)__entry->icr_low,
511 __print_symbolic((__entry->icr_low >> 8 & 0x7),
513 (__entry->icr_low & (1<<11)) ? "logical" : "physical",
514 (__entry->icr_low & (1<<14)) ? "assert" : "de-assert",
515 (__entry->icr_low & (1<<15)) ? "level" : "edge",
516 __print_symbolic((__entry->icr_low >> 18 & 0x3),
517 kvm_apic_dst_shorthand))
520 TRACE_EVENT(kvm_apic_accept_irq,
521 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec),
522 TP_ARGS(apicid, dm, tm, vec),
525 __field( __u32, apicid )
532 __entry->apicid = apicid;
538 TP_printk("apicid %x vec %u (%s|%s)",
539 __entry->apicid, __entry->vec,
540 __print_symbolic((__entry->dm >> 8 & 0x7), kvm_deliver_mode),
541 __entry->tm ? "level" : "edge")
545 TP_PROTO(struct kvm_lapic *apic, int vector),
546 TP_ARGS(apic, vector),
549 __field( __u32, apicid )
550 __field( int, vector )
554 __entry->apicid = apic->vcpu->vcpu_id;
555 __entry->vector = vector;
558 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector)
561 TRACE_EVENT(kvm_pv_eoi,
562 TP_PROTO(struct kvm_lapic *apic, int vector),
563 TP_ARGS(apic, vector),
566 __field( __u32, apicid )
567 __field( int, vector )
571 __entry->apicid = apic->vcpu->vcpu_id;
572 __entry->vector = vector;
575 TP_printk("apicid %x vector %d", __entry->apicid, __entry->vector)
579 * Tracepoint for nested VMRUN
581 TRACE_EVENT(kvm_nested_vmrun,
582 TP_PROTO(__u64 rip, __u64 vmcb, __u64 nested_rip, __u32 int_ctl,
583 __u32 event_inj, bool npt),
584 TP_ARGS(rip, vmcb, nested_rip, int_ctl, event_inj, npt),
587 __field( __u64, rip )
588 __field( __u64, vmcb )
589 __field( __u64, nested_rip )
590 __field( __u32, int_ctl )
591 __field( __u32, event_inj )
597 __entry->vmcb = vmcb;
598 __entry->nested_rip = nested_rip;
599 __entry->int_ctl = int_ctl;
600 __entry->event_inj = event_inj;
604 TP_printk("rip: 0x%016llx vmcb: 0x%016llx nrip: 0x%016llx int_ctl: 0x%08x "
605 "event_inj: 0x%08x npt: %s",
606 __entry->rip, __entry->vmcb, __entry->nested_rip,
607 __entry->int_ctl, __entry->event_inj,
608 __entry->npt ? "on" : "off")
611 TRACE_EVENT(kvm_nested_intercepts,
612 TP_PROTO(__u16 cr_read, __u16 cr_write, __u32 exceptions,
613 __u32 intercept1, __u32 intercept2, __u32 intercept3),
614 TP_ARGS(cr_read, cr_write, exceptions, intercept1,
615 intercept2, intercept3),
618 __field( __u16, cr_read )
619 __field( __u16, cr_write )
620 __field( __u32, exceptions )
621 __field( __u32, intercept1 )
622 __field( __u32, intercept2 )
623 __field( __u32, intercept3 )
627 __entry->cr_read = cr_read;
628 __entry->cr_write = cr_write;
629 __entry->exceptions = exceptions;
630 __entry->intercept1 = intercept1;
631 __entry->intercept2 = intercept2;
632 __entry->intercept3 = intercept3;
635 TP_printk("cr_read: %04x cr_write: %04x excp: %08x "
636 "intercepts: %08x %08x %08x",
637 __entry->cr_read, __entry->cr_write, __entry->exceptions,
638 __entry->intercept1, __entry->intercept2, __entry->intercept3)
641 * Tracepoint for #VMEXIT while nested
643 TRACE_EVENT_KVM_EXIT(kvm_nested_vmexit);
646 * Tracepoint for #VMEXIT reinjected to the guest
648 TRACE_EVENT(kvm_nested_vmexit_inject,
649 TP_PROTO(__u32 exit_code,
650 __u64 exit_info1, __u64 exit_info2,
651 __u32 exit_int_info, __u32 exit_int_info_err, __u32 isa),
652 TP_ARGS(exit_code, exit_info1, exit_info2,
653 exit_int_info, exit_int_info_err, isa),
656 __field( __u32, exit_code )
657 __field( __u64, exit_info1 )
658 __field( __u64, exit_info2 )
659 __field( __u32, exit_int_info )
660 __field( __u32, exit_int_info_err )
661 __field( __u32, isa )
665 __entry->exit_code = exit_code;
666 __entry->exit_info1 = exit_info1;
667 __entry->exit_info2 = exit_info2;
668 __entry->exit_int_info = exit_int_info;
669 __entry->exit_int_info_err = exit_int_info_err;
673 TP_printk("reason: %s%s%s ext_inf1: 0x%016llx "
674 "ext_inf2: 0x%016llx ext_int: 0x%08x ext_int_err: 0x%08x",
675 kvm_print_exit_reason(__entry->exit_code, __entry->isa),
676 __entry->exit_info1, __entry->exit_info2,
677 __entry->exit_int_info, __entry->exit_int_info_err)
681 * Tracepoint for nested #vmexit because of interrupt pending
683 TRACE_EVENT(kvm_nested_intr_vmexit,
688 __field( __u64, rip )
695 TP_printk("rip: 0x%016llx", __entry->rip)
699 * Tracepoint for nested #vmexit because of interrupt pending
701 TRACE_EVENT(kvm_invlpga,
702 TP_PROTO(__u64 rip, int asid, u64 address),
703 TP_ARGS(rip, asid, address),
706 __field( __u64, rip )
708 __field( __u64, address )
713 __entry->asid = asid;
714 __entry->address = address;
717 TP_printk("rip: 0x%016llx asid: %d address: 0x%016llx",
718 __entry->rip, __entry->asid, __entry->address)
722 * Tracepoint for nested #vmexit because of interrupt pending
724 TRACE_EVENT(kvm_skinit,
725 TP_PROTO(__u64 rip, __u32 slb),
729 __field( __u64, rip )
730 __field( __u32, slb )
738 TP_printk("rip: 0x%016llx slb: 0x%08x",
739 __entry->rip, __entry->slb)
742 #define KVM_EMUL_INSN_F_CR0_PE (1 << 0)
743 #define KVM_EMUL_INSN_F_EFL_VM (1 << 1)
744 #define KVM_EMUL_INSN_F_CS_D (1 << 2)
745 #define KVM_EMUL_INSN_F_CS_L (1 << 3)
747 #define kvm_trace_symbol_emul_flags \
749 { KVM_EMUL_INSN_F_CR0_PE \
750 | KVM_EMUL_INSN_F_EFL_VM, "vm16" }, \
751 { KVM_EMUL_INSN_F_CR0_PE, "prot16" }, \
752 { KVM_EMUL_INSN_F_CR0_PE \
753 | KVM_EMUL_INSN_F_CS_D, "prot32" }, \
754 { KVM_EMUL_INSN_F_CR0_PE \
755 | KVM_EMUL_INSN_F_CS_L, "prot64" }
757 #define kei_decode_mode(mode) ({ \
760 case X86EMUL_MODE_REAL: \
763 case X86EMUL_MODE_VM86: \
764 flags = KVM_EMUL_INSN_F_EFL_VM; \
766 case X86EMUL_MODE_PROT16: \
767 flags = KVM_EMUL_INSN_F_CR0_PE; \
769 case X86EMUL_MODE_PROT32: \
770 flags = KVM_EMUL_INSN_F_CR0_PE \
771 | KVM_EMUL_INSN_F_CS_D; \
773 case X86EMUL_MODE_PROT64: \
774 flags = KVM_EMUL_INSN_F_CR0_PE \
775 | KVM_EMUL_INSN_F_CS_L; \
781 TRACE_EVENT(kvm_emulate_insn,
782 TP_PROTO(struct kvm_vcpu *vcpu, __u8 failed),
783 TP_ARGS(vcpu, failed),
786 __field( __u64, rip )
787 __field( __u32, csbase )
789 __array( __u8, insn, 15 )
790 __field( __u8, flags )
791 __field( __u8, failed )
795 __entry->csbase = static_call(kvm_x86_get_segment_base)(vcpu, VCPU_SREG_CS);
796 __entry->len = vcpu->arch.emulate_ctxt->fetch.ptr
797 - vcpu->arch.emulate_ctxt->fetch.data;
798 __entry->rip = vcpu->arch.emulate_ctxt->_eip - __entry->len;
799 memcpy(__entry->insn,
800 vcpu->arch.emulate_ctxt->fetch.data,
802 __entry->flags = kei_decode_mode(vcpu->arch.emulate_ctxt->mode);
803 __entry->failed = failed;
806 TP_printk("%x:%llx:%s (%s)%s",
807 __entry->csbase, __entry->rip,
808 __print_hex(__entry->insn, __entry->len),
809 __print_symbolic(__entry->flags,
810 kvm_trace_symbol_emul_flags),
811 __entry->failed ? " failed" : ""
815 #define trace_kvm_emulate_insn_start(vcpu) trace_kvm_emulate_insn(vcpu, 0)
816 #define trace_kvm_emulate_insn_failed(vcpu) trace_kvm_emulate_insn(vcpu, 1)
820 TP_PROTO(gva_t gva, gpa_t gpa, bool write, bool gpa_match),
821 TP_ARGS(gva, gpa, write, gpa_match),
827 __field(bool, gpa_match)
833 __entry->write = write;
834 __entry->gpa_match = gpa_match
837 TP_printk("gva %#lx gpa %#llx %s %s", __entry->gva, __entry->gpa,
838 __entry->write ? "Write" : "Read",
839 __entry->gpa_match ? "GPA" : "GVA")
842 TRACE_EVENT(kvm_write_tsc_offset,
843 TP_PROTO(unsigned int vcpu_id, __u64 previous_tsc_offset,
844 __u64 next_tsc_offset),
845 TP_ARGS(vcpu_id, previous_tsc_offset, next_tsc_offset),
848 __field( unsigned int, vcpu_id )
849 __field( __u64, previous_tsc_offset )
850 __field( __u64, next_tsc_offset )
854 __entry->vcpu_id = vcpu_id;
855 __entry->previous_tsc_offset = previous_tsc_offset;
856 __entry->next_tsc_offset = next_tsc_offset;
859 TP_printk("vcpu=%u prev=%llu next=%llu", __entry->vcpu_id,
860 __entry->previous_tsc_offset, __entry->next_tsc_offset)
865 #define host_clocks \
866 {VDSO_CLOCKMODE_NONE, "none"}, \
867 {VDSO_CLOCKMODE_TSC, "tsc"} \
869 TRACE_EVENT(kvm_update_master_clock,
870 TP_PROTO(bool use_master_clock, unsigned int host_clock, bool offset_matched),
871 TP_ARGS(use_master_clock, host_clock, offset_matched),
874 __field( bool, use_master_clock )
875 __field( unsigned int, host_clock )
876 __field( bool, offset_matched )
880 __entry->use_master_clock = use_master_clock;
881 __entry->host_clock = host_clock;
882 __entry->offset_matched = offset_matched;
885 TP_printk("masterclock %d hostclock %s offsetmatched %u",
886 __entry->use_master_clock,
887 __print_symbolic(__entry->host_clock, host_clocks),
888 __entry->offset_matched)
891 TRACE_EVENT(kvm_track_tsc,
892 TP_PROTO(unsigned int vcpu_id, unsigned int nr_matched,
893 unsigned int online_vcpus, bool use_master_clock,
894 unsigned int host_clock),
895 TP_ARGS(vcpu_id, nr_matched, online_vcpus, use_master_clock,
899 __field( unsigned int, vcpu_id )
900 __field( unsigned int, nr_vcpus_matched_tsc )
901 __field( unsigned int, online_vcpus )
902 __field( bool, use_master_clock )
903 __field( unsigned int, host_clock )
907 __entry->vcpu_id = vcpu_id;
908 __entry->nr_vcpus_matched_tsc = nr_matched;
909 __entry->online_vcpus = online_vcpus;
910 __entry->use_master_clock = use_master_clock;
911 __entry->host_clock = host_clock;
914 TP_printk("vcpu_id %u masterclock %u offsetmatched %u nr_online %u"
916 __entry->vcpu_id, __entry->use_master_clock,
917 __entry->nr_vcpus_matched_tsc, __entry->online_vcpus,
918 __print_symbolic(__entry->host_clock, host_clocks))
921 #endif /* CONFIG_X86_64 */
924 * Tracepoint for PML full VMEXIT.
926 TRACE_EVENT(kvm_pml_full,
927 TP_PROTO(unsigned int vcpu_id),
931 __field( unsigned int, vcpu_id )
935 __entry->vcpu_id = vcpu_id;
938 TP_printk("vcpu %d: PML full", __entry->vcpu_id)
941 TRACE_EVENT(kvm_ple_window_update,
942 TP_PROTO(unsigned int vcpu_id, unsigned int new, unsigned int old),
943 TP_ARGS(vcpu_id, new, old),
946 __field( unsigned int, vcpu_id )
947 __field( unsigned int, new )
948 __field( unsigned int, old )
952 __entry->vcpu_id = vcpu_id;
957 TP_printk("vcpu %u old %u new %u (%s)",
958 __entry->vcpu_id, __entry->old, __entry->new,
959 __entry->old < __entry->new ? "growed" : "shrinked")
962 TRACE_EVENT(kvm_pvclock_update,
963 TP_PROTO(unsigned int vcpu_id, struct pvclock_vcpu_time_info *pvclock),
964 TP_ARGS(vcpu_id, pvclock),
967 __field( unsigned int, vcpu_id )
968 __field( __u32, version )
969 __field( __u64, tsc_timestamp )
970 __field( __u64, system_time )
971 __field( __u32, tsc_to_system_mul )
972 __field( __s8, tsc_shift )
973 __field( __u8, flags )
977 __entry->vcpu_id = vcpu_id;
978 __entry->version = pvclock->version;
979 __entry->tsc_timestamp = pvclock->tsc_timestamp;
980 __entry->system_time = pvclock->system_time;
981 __entry->tsc_to_system_mul = pvclock->tsc_to_system_mul;
982 __entry->tsc_shift = pvclock->tsc_shift;
983 __entry->flags = pvclock->flags;
986 TP_printk("vcpu_id %u, pvclock { version %u, tsc_timestamp 0x%llx, "
987 "system_time 0x%llx, tsc_to_system_mul 0x%x, tsc_shift %d, "
991 __entry->tsc_timestamp,
992 __entry->system_time,
993 __entry->tsc_to_system_mul,
998 TRACE_EVENT(kvm_wait_lapic_expire,
999 TP_PROTO(unsigned int vcpu_id, s64 delta),
1000 TP_ARGS(vcpu_id, delta),
1003 __field( unsigned int, vcpu_id )
1004 __field( s64, delta )
1008 __entry->vcpu_id = vcpu_id;
1009 __entry->delta = delta;
1012 TP_printk("vcpu %u: delta %lld (%s)",
1015 __entry->delta < 0 ? "early" : "late")
1018 TRACE_EVENT(kvm_smm_transition,
1019 TP_PROTO(unsigned int vcpu_id, u64 smbase, bool entering),
1020 TP_ARGS(vcpu_id, smbase, entering),
1023 __field( unsigned int, vcpu_id )
1024 __field( u64, smbase )
1025 __field( bool, entering )
1029 __entry->vcpu_id = vcpu_id;
1030 __entry->smbase = smbase;
1031 __entry->entering = entering;
1034 TP_printk("vcpu %u: %s SMM, smbase 0x%llx",
1036 __entry->entering ? "entering" : "leaving",
1041 * Tracepoint for VT-d posted-interrupts.
1043 TRACE_EVENT(kvm_pi_irte_update,
1044 TP_PROTO(unsigned int host_irq, unsigned int vcpu_id,
1045 unsigned int gsi, unsigned int gvec,
1046 u64 pi_desc_addr, bool set),
1047 TP_ARGS(host_irq, vcpu_id, gsi, gvec, pi_desc_addr, set),
1050 __field( unsigned int, host_irq )
1051 __field( unsigned int, vcpu_id )
1052 __field( unsigned int, gsi )
1053 __field( unsigned int, gvec )
1054 __field( u64, pi_desc_addr )
1055 __field( bool, set )
1059 __entry->host_irq = host_irq;
1060 __entry->vcpu_id = vcpu_id;
1062 __entry->gvec = gvec;
1063 __entry->pi_desc_addr = pi_desc_addr;
1067 TP_printk("VT-d PI is %s for irq %u, vcpu %u, gsi: 0x%x, "
1068 "gvec: 0x%x, pi_desc_addr: 0x%llx",
1069 __entry->set ? "enabled and being updated" : "disabled",
1074 __entry->pi_desc_addr)
1078 * Tracepoint for kvm_hv_notify_acked_sint.
1080 TRACE_EVENT(kvm_hv_notify_acked_sint,
1081 TP_PROTO(int vcpu_id, u32 sint),
1082 TP_ARGS(vcpu_id, sint),
1085 __field(int, vcpu_id)
1090 __entry->vcpu_id = vcpu_id;
1091 __entry->sint = sint;
1094 TP_printk("vcpu_id %d sint %u", __entry->vcpu_id, __entry->sint)
1098 * Tracepoint for synic_set_irq.
1100 TRACE_EVENT(kvm_hv_synic_set_irq,
1101 TP_PROTO(int vcpu_id, u32 sint, int vector, int ret),
1102 TP_ARGS(vcpu_id, sint, vector, ret),
1105 __field(int, vcpu_id)
1107 __field(int, vector)
1112 __entry->vcpu_id = vcpu_id;
1113 __entry->sint = sint;
1114 __entry->vector = vector;
1118 TP_printk("vcpu_id %d sint %u vector %d ret %d",
1119 __entry->vcpu_id, __entry->sint, __entry->vector,
1124 * Tracepoint for kvm_hv_synic_send_eoi.
1126 TRACE_EVENT(kvm_hv_synic_send_eoi,
1127 TP_PROTO(int vcpu_id, int vector),
1128 TP_ARGS(vcpu_id, vector),
1131 __field(int, vcpu_id)
1133 __field(int, vector)
1138 __entry->vcpu_id = vcpu_id;
1139 __entry->vector = vector;
1142 TP_printk("vcpu_id %d vector %d", __entry->vcpu_id, __entry->vector)
1146 * Tracepoint for synic_set_msr.
1148 TRACE_EVENT(kvm_hv_synic_set_msr,
1149 TP_PROTO(int vcpu_id, u32 msr, u64 data, bool host),
1150 TP_ARGS(vcpu_id, msr, data, host),
1153 __field(int, vcpu_id)
1160 __entry->vcpu_id = vcpu_id;
1162 __entry->data = data;
1163 __entry->host = host
1166 TP_printk("vcpu_id %d msr 0x%x data 0x%llx host %d",
1167 __entry->vcpu_id, __entry->msr, __entry->data, __entry->host)
1171 * Tracepoint for stimer_set_config.
1173 TRACE_EVENT(kvm_hv_stimer_set_config,
1174 TP_PROTO(int vcpu_id, int timer_index, u64 config, bool host),
1175 TP_ARGS(vcpu_id, timer_index, config, host),
1178 __field(int, vcpu_id)
1179 __field(int, timer_index)
1180 __field(u64, config)
1185 __entry->vcpu_id = vcpu_id;
1186 __entry->timer_index = timer_index;
1187 __entry->config = config;
1188 __entry->host = host;
1191 TP_printk("vcpu_id %d timer %d config 0x%llx host %d",
1192 __entry->vcpu_id, __entry->timer_index, __entry->config,
1197 * Tracepoint for stimer_set_count.
1199 TRACE_EVENT(kvm_hv_stimer_set_count,
1200 TP_PROTO(int vcpu_id, int timer_index, u64 count, bool host),
1201 TP_ARGS(vcpu_id, timer_index, count, host),
1204 __field(int, vcpu_id)
1205 __field(int, timer_index)
1211 __entry->vcpu_id = vcpu_id;
1212 __entry->timer_index = timer_index;
1213 __entry->count = count;
1214 __entry->host = host;
1217 TP_printk("vcpu_id %d timer %d count %llu host %d",
1218 __entry->vcpu_id, __entry->timer_index, __entry->count,
1223 * Tracepoint for stimer_start(periodic timer case).
1225 TRACE_EVENT(kvm_hv_stimer_start_periodic,
1226 TP_PROTO(int vcpu_id, int timer_index, u64 time_now, u64 exp_time),
1227 TP_ARGS(vcpu_id, timer_index, time_now, exp_time),
1230 __field(int, vcpu_id)
1231 __field(int, timer_index)
1232 __field(u64, time_now)
1233 __field(u64, exp_time)
1237 __entry->vcpu_id = vcpu_id;
1238 __entry->timer_index = timer_index;
1239 __entry->time_now = time_now;
1240 __entry->exp_time = exp_time;
1243 TP_printk("vcpu_id %d timer %d time_now %llu exp_time %llu",
1244 __entry->vcpu_id, __entry->timer_index, __entry->time_now,
1249 * Tracepoint for stimer_start(one-shot timer case).
1251 TRACE_EVENT(kvm_hv_stimer_start_one_shot,
1252 TP_PROTO(int vcpu_id, int timer_index, u64 time_now, u64 count),
1253 TP_ARGS(vcpu_id, timer_index, time_now, count),
1256 __field(int, vcpu_id)
1257 __field(int, timer_index)
1258 __field(u64, time_now)
1263 __entry->vcpu_id = vcpu_id;
1264 __entry->timer_index = timer_index;
1265 __entry->time_now = time_now;
1266 __entry->count = count;
1269 TP_printk("vcpu_id %d timer %d time_now %llu count %llu",
1270 __entry->vcpu_id, __entry->timer_index, __entry->time_now,
1275 * Tracepoint for stimer_timer_callback.
1277 TRACE_EVENT(kvm_hv_stimer_callback,
1278 TP_PROTO(int vcpu_id, int timer_index),
1279 TP_ARGS(vcpu_id, timer_index),
1282 __field(int, vcpu_id)
1283 __field(int, timer_index)
1287 __entry->vcpu_id = vcpu_id;
1288 __entry->timer_index = timer_index;
1291 TP_printk("vcpu_id %d timer %d",
1292 __entry->vcpu_id, __entry->timer_index)
1296 * Tracepoint for stimer_expiration.
1298 TRACE_EVENT(kvm_hv_stimer_expiration,
1299 TP_PROTO(int vcpu_id, int timer_index, int direct, int msg_send_result),
1300 TP_ARGS(vcpu_id, timer_index, direct, msg_send_result),
1303 __field(int, vcpu_id)
1304 __field(int, timer_index)
1305 __field(int, direct)
1306 __field(int, msg_send_result)
1310 __entry->vcpu_id = vcpu_id;
1311 __entry->timer_index = timer_index;
1312 __entry->direct = direct;
1313 __entry->msg_send_result = msg_send_result;
1316 TP_printk("vcpu_id %d timer %d direct %d send result %d",
1317 __entry->vcpu_id, __entry->timer_index,
1318 __entry->direct, __entry->msg_send_result)
1322 * Tracepoint for stimer_cleanup.
1324 TRACE_EVENT(kvm_hv_stimer_cleanup,
1325 TP_PROTO(int vcpu_id, int timer_index),
1326 TP_ARGS(vcpu_id, timer_index),
1329 __field(int, vcpu_id)
1330 __field(int, timer_index)
1334 __entry->vcpu_id = vcpu_id;
1335 __entry->timer_index = timer_index;
1338 TP_printk("vcpu_id %d timer %d",
1339 __entry->vcpu_id, __entry->timer_index)
1342 TRACE_EVENT(kvm_apicv_inhibit_changed,
1343 TP_PROTO(int reason, bool set, unsigned long inhibits),
1344 TP_ARGS(reason, set, inhibits),
1347 __field(int, reason)
1349 __field(unsigned long, inhibits)
1353 __entry->reason = reason;
1355 __entry->inhibits = inhibits;
1358 TP_printk("%s reason=%u, inhibits=0x%lx",
1359 __entry->set ? "set" : "cleared",
1360 __entry->reason, __entry->inhibits)
1363 TRACE_EVENT(kvm_apicv_accept_irq,
1364 TP_PROTO(__u32 apicid, __u16 dm, __u16 tm, __u8 vec),
1365 TP_ARGS(apicid, dm, tm, vec),
1368 __field( __u32, apicid )
1369 __field( __u16, dm )
1370 __field( __u16, tm )
1371 __field( __u8, vec )
1375 __entry->apicid = apicid;
1381 TP_printk("apicid %x vec %u (%s|%s)",
1382 __entry->apicid, __entry->vec,
1383 __print_symbolic((__entry->dm >> 8 & 0x7), kvm_deliver_mode),
1384 __entry->tm ? "level" : "edge")
1388 * Tracepoint for AMD AVIC
1390 TRACE_EVENT(kvm_avic_incomplete_ipi,
1391 TP_PROTO(u32 vcpu, u32 icrh, u32 icrl, u32 id, u32 index),
1392 TP_ARGS(vcpu, icrh, icrl, id, index),
1403 __entry->vcpu = vcpu;
1404 __entry->icrh = icrh;
1405 __entry->icrl = icrl;
1407 __entry->index = index;
1410 TP_printk("vcpu=%u, icrh:icrl=%#010x:%08x, id=%u, index=%u",
1411 __entry->vcpu, __entry->icrh, __entry->icrl,
1412 __entry->id, __entry->index)
1415 TRACE_EVENT(kvm_avic_unaccelerated_access,
1416 TP_PROTO(u32 vcpu, u32 offset, bool ft, bool rw, u32 vec),
1417 TP_ARGS(vcpu, offset, ft, rw, vec),
1421 __field(u32, offset)
1428 __entry->vcpu = vcpu;
1429 __entry->offset = offset;
1435 TP_printk("vcpu=%u, offset=%#x(%s), %s, %s, vec=%#x",
1438 __print_symbolic(__entry->offset, kvm_trace_symbol_apic),
1439 __entry->ft ? "trap" : "fault",
1440 __entry->rw ? "write" : "read",
1444 TRACE_EVENT(kvm_avic_ga_log,
1445 TP_PROTO(u32 vmid, u32 vcpuid),
1446 TP_ARGS(vmid, vcpuid),
1450 __field(u32, vcpuid)
1454 __entry->vmid = vmid;
1455 __entry->vcpuid = vcpuid;
1458 TP_printk("vmid=%u, vcpuid=%u",
1459 __entry->vmid, __entry->vcpuid)
1462 TRACE_EVENT(kvm_avic_kick_vcpu_slowpath,
1463 TP_PROTO(u32 icrh, u32 icrl, u32 index),
1464 TP_ARGS(icrh, icrl, index),
1473 __entry->icrh = icrh;
1474 __entry->icrl = icrl;
1475 __entry->index = index;
1478 TP_printk("icrh:icrl=%#08x:%08x, index=%u",
1479 __entry->icrh, __entry->icrl, __entry->index)
1482 TRACE_EVENT(kvm_hv_timer_state,
1483 TP_PROTO(unsigned int vcpu_id, unsigned int hv_timer_in_use),
1484 TP_ARGS(vcpu_id, hv_timer_in_use),
1486 __field(unsigned int, vcpu_id)
1487 __field(unsigned int, hv_timer_in_use)
1490 __entry->vcpu_id = vcpu_id;
1491 __entry->hv_timer_in_use = hv_timer_in_use;
1493 TP_printk("vcpu_id %x hv_timer %x",
1495 __entry->hv_timer_in_use)
1499 * Tracepoint for kvm_hv_flush_tlb.
1501 TRACE_EVENT(kvm_hv_flush_tlb,
1502 TP_PROTO(u64 processor_mask, u64 address_space, u64 flags),
1503 TP_ARGS(processor_mask, address_space, flags),
1506 __field(u64, processor_mask)
1507 __field(u64, address_space)
1512 __entry->processor_mask = processor_mask;
1513 __entry->address_space = address_space;
1514 __entry->flags = flags;
1517 TP_printk("processor_mask 0x%llx address_space 0x%llx flags 0x%llx",
1518 __entry->processor_mask, __entry->address_space,
1523 * Tracepoint for kvm_hv_flush_tlb_ex.
1525 TRACE_EVENT(kvm_hv_flush_tlb_ex,
1526 TP_PROTO(u64 valid_bank_mask, u64 format, u64 address_space, u64 flags),
1527 TP_ARGS(valid_bank_mask, format, address_space, flags),
1530 __field(u64, valid_bank_mask)
1531 __field(u64, format)
1532 __field(u64, address_space)
1537 __entry->valid_bank_mask = valid_bank_mask;
1538 __entry->format = format;
1539 __entry->address_space = address_space;
1540 __entry->flags = flags;
1543 TP_printk("valid_bank_mask 0x%llx format 0x%llx "
1544 "address_space 0x%llx flags 0x%llx",
1545 __entry->valid_bank_mask, __entry->format,
1546 __entry->address_space, __entry->flags)
1550 * Tracepoints for kvm_hv_send_ipi.
1552 TRACE_EVENT(kvm_hv_send_ipi,
1553 TP_PROTO(u32 vector, u64 processor_mask),
1554 TP_ARGS(vector, processor_mask),
1557 __field(u32, vector)
1558 __field(u64, processor_mask)
1562 __entry->vector = vector;
1563 __entry->processor_mask = processor_mask;
1566 TP_printk("vector %x processor_mask 0x%llx",
1567 __entry->vector, __entry->processor_mask)
1570 TRACE_EVENT(kvm_hv_send_ipi_ex,
1571 TP_PROTO(u32 vector, u64 format, u64 valid_bank_mask),
1572 TP_ARGS(vector, format, valid_bank_mask),
1575 __field(u32, vector)
1576 __field(u64, format)
1577 __field(u64, valid_bank_mask)
1581 __entry->vector = vector;
1582 __entry->format = format;
1583 __entry->valid_bank_mask = valid_bank_mask;
1586 TP_printk("vector %x format %llx valid_bank_mask 0x%llx",
1587 __entry->vector, __entry->format,
1588 __entry->valid_bank_mask)
1591 TRACE_EVENT(kvm_pv_tlb_flush,
1592 TP_PROTO(unsigned int vcpu_id, bool need_flush_tlb),
1593 TP_ARGS(vcpu_id, need_flush_tlb),
1596 __field( unsigned int, vcpu_id )
1597 __field( bool, need_flush_tlb )
1601 __entry->vcpu_id = vcpu_id;
1602 __entry->need_flush_tlb = need_flush_tlb;
1605 TP_printk("vcpu %u need_flush_tlb %s", __entry->vcpu_id,
1606 __entry->need_flush_tlb ? "true" : "false")
1610 * Tracepoint for failed nested VMX VM-Enter.
1612 TRACE_EVENT(kvm_nested_vmenter_failed,
1613 TP_PROTO(const char *msg, u32 err),
1622 __assign_str(msg, msg);
1626 TP_printk("%s%s", __get_str(msg), !__entry->err ? "" :
1627 __print_symbolic(__entry->err, VMX_VMENTER_INSTRUCTION_ERRORS))
1631 * Tracepoint for syndbg_set_msr.
1633 TRACE_EVENT(kvm_hv_syndbg_set_msr,
1634 TP_PROTO(int vcpu_id, u32 vp_index, u32 msr, u64 data),
1635 TP_ARGS(vcpu_id, vp_index, msr, data),
1638 __field(int, vcpu_id)
1639 __field(u32, vp_index)
1645 __entry->vcpu_id = vcpu_id;
1646 __entry->vp_index = vp_index;
1648 __entry->data = data;
1651 TP_printk("vcpu_id %d vp_index %u msr 0x%x data 0x%llx",
1652 __entry->vcpu_id, __entry->vp_index, __entry->msr,
1657 * Tracepoint for syndbg_get_msr.
1659 TRACE_EVENT(kvm_hv_syndbg_get_msr,
1660 TP_PROTO(int vcpu_id, u32 vp_index, u32 msr, u64 data),
1661 TP_ARGS(vcpu_id, vp_index, msr, data),
1664 __field(int, vcpu_id)
1665 __field(u32, vp_index)
1671 __entry->vcpu_id = vcpu_id;
1672 __entry->vp_index = vp_index;
1674 __entry->data = data;
1677 TP_printk("vcpu_id %d vp_index %u msr 0x%x data 0x%llx",
1678 __entry->vcpu_id, __entry->vp_index, __entry->msr,
1683 * Tracepoint for the start of VMGEXIT processing
1685 TRACE_EVENT(kvm_vmgexit_enter,
1686 TP_PROTO(unsigned int vcpu_id, struct ghcb *ghcb),
1687 TP_ARGS(vcpu_id, ghcb),
1690 __field(unsigned int, vcpu_id)
1691 __field(u64, exit_reason)
1697 __entry->vcpu_id = vcpu_id;
1698 __entry->exit_reason = ghcb->save.sw_exit_code;
1699 __entry->info1 = ghcb->save.sw_exit_info_1;
1700 __entry->info2 = ghcb->save.sw_exit_info_2;
1703 TP_printk("vcpu %u, exit_reason %llx, exit_info1 %llx, exit_info2 %llx",
1704 __entry->vcpu_id, __entry->exit_reason,
1705 __entry->info1, __entry->info2)
1709 * Tracepoint for the end of VMGEXIT processing
1711 TRACE_EVENT(kvm_vmgexit_exit,
1712 TP_PROTO(unsigned int vcpu_id, struct ghcb *ghcb),
1713 TP_ARGS(vcpu_id, ghcb),
1716 __field(unsigned int, vcpu_id)
1717 __field(u64, exit_reason)
1723 __entry->vcpu_id = vcpu_id;
1724 __entry->exit_reason = ghcb->save.sw_exit_code;
1725 __entry->info1 = ghcb->save.sw_exit_info_1;
1726 __entry->info2 = ghcb->save.sw_exit_info_2;
1729 TP_printk("vcpu %u, exit_reason %llx, exit_info1 %llx, exit_info2 %llx",
1730 __entry->vcpu_id, __entry->exit_reason,
1731 __entry->info1, __entry->info2)
1735 * Tracepoint for the start of VMGEXIT MSR procotol processing
1737 TRACE_EVENT(kvm_vmgexit_msr_protocol_enter,
1738 TP_PROTO(unsigned int vcpu_id, u64 ghcb_gpa),
1739 TP_ARGS(vcpu_id, ghcb_gpa),
1742 __field(unsigned int, vcpu_id)
1743 __field(u64, ghcb_gpa)
1747 __entry->vcpu_id = vcpu_id;
1748 __entry->ghcb_gpa = ghcb_gpa;
1751 TP_printk("vcpu %u, ghcb_gpa %016llx",
1752 __entry->vcpu_id, __entry->ghcb_gpa)
1756 * Tracepoint for the end of VMGEXIT MSR procotol processing
1758 TRACE_EVENT(kvm_vmgexit_msr_protocol_exit,
1759 TP_PROTO(unsigned int vcpu_id, u64 ghcb_gpa, int result),
1760 TP_ARGS(vcpu_id, ghcb_gpa, result),
1763 __field(unsigned int, vcpu_id)
1764 __field(u64, ghcb_gpa)
1765 __field(int, result)
1769 __entry->vcpu_id = vcpu_id;
1770 __entry->ghcb_gpa = ghcb_gpa;
1771 __entry->result = result;
1774 TP_printk("vcpu %u, ghcb_gpa %016llx, result %d",
1775 __entry->vcpu_id, __entry->ghcb_gpa, __entry->result)
1778 #endif /* _TRACE_KVM_H */
1780 #undef TRACE_INCLUDE_PATH
1781 #define TRACE_INCLUDE_PATH ../../arch/x86/kvm
1782 #undef TRACE_INCLUDE_FILE
1783 #define TRACE_INCLUDE_FILE trace
1785 /* This part must be outside protection */
1786 #include <trace/define_trace.h>