diff options
| author | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-11-20 15:00:55 +0000 |
|---|---|---|
| committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-11-20 15:00:55 +0000 |
| commit | 2ee1a18d51ed68ee34df7dcfd05f6cfc16110202 (patch) | |
| tree | dbfea2a7eff9ed3a6ab37178274ade22b7fee43b | |
| parent | d0f168e680ff22699c98008d75664a6f8c431b7e (diff) | |
| -rw-r--r-- | sys/amd64/vmm/intel/vmx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c index b7b933eb9b18..4b65e254cc91 100644 --- a/sys/amd64/vmm/intel/vmx.c +++ b/sys/amd64/vmm/intel/vmx.c @@ -2350,7 +2350,9 @@ vmx_exit_process(struct vmx *vmx, struct vmx_vcpu *vcpu, struct vm_exit *vmexit) uint32_t eax, ecx, edx, idtvec_info, idtvec_err, intr_info, inst_info; uint32_t intr_type, intr_vec, reason; uint64_t exitintinfo, qual, gpa; +#ifdef KDTRACE_HOOKS int vcpuid; +#endif bool retu; CTASSERT((PINBASED_CTLS_ONE_SETTING & PINBASED_VIRTUAL_NMI) != 0); @@ -2358,7 +2360,9 @@ vmx_exit_process(struct vmx *vmx, struct vmx_vcpu *vcpu, struct vm_exit *vmexit) handled = UNHANDLED; vmxctx = &vcpu->ctx; +#ifdef KDTRACE_HOOKS vcpuid = vcpu->vcpuid; +#endif qual = vmexit->u.vmx.exit_qualification; reason = vmexit->u.vmx.exit_reason; |
