-/* $OpenBSD: vmm.c,v 1.321 2022/09/01 22:01:40 dv Exp $ */
+/* $OpenBSD: vmm.c,v 1.322 2022/09/02 17:46:37 dv Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
/* Data */
vcpu->vc_exit.vei.vei_data = vmcb->v_rax;
+ TRACEPOINT(vmm, inout, vcpu, vcpu->vc_exit.vei.vei_port,
+ vcpu->vc_exit.vei.vei_dir, vcpu->vc_exit.vei.vei_data);
+
vcpu->vc_gueststate.vg_rip += insn_length;
return (0);
/* Data */
vcpu->vc_exit.vei.vei_data = (uint32_t)vcpu->vc_gueststate.vg_rax;
+ TRACEPOINT(vmm, inout, vcpu, vcpu->vc_exit.vei.vei_port,
+ vcpu->vc_exit.vei.vei_dir, vcpu->vc_exit.vei.vei_data);
+
vcpu->vc_gueststate.vg_rip += insn_length;
return (0);
-/* $OpenBSD: dt_prov_static.c,v 1.15 2022/08/29 07:51:45 bluhm Exp $ */
+/* $OpenBSD: dt_prov_static.c,v 1.16 2022/09/02 17:46:37 dv Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
*/
DT_STATIC_PROBE2(vmm, guest_enter, "void *", "void *");
DT_STATIC_PROBE3(vmm, guest_exit, "void *", "void *", "uint64_t");
+DT_STATIC_PROBE4(vmm, inout, "void *", "uint16_t", "uint8_t", "uint32_t");
#endif /* __amd64__ */
/*