Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2023 22:12:18 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4c13ad46a150 - stable/13 - vmm: Fix build w/o KDTRACE_HOOKS.
Message-ID:  <202301262212.30QMCIXP022518@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=4c13ad46a15094c12c3ddf37eb25502e7860a82a

commit 4c13ad46a15094c12c3ddf37eb25502e7860a82a
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-11-20 15:00:55 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 22:07:06 +0000

    vmm: Fix build w/o KDTRACE_HOOKS.
    
    Reviewed by:            imp
    Differential revision:  https://reviews.freebsd.org/D37446
    
    (cherry picked from commit 2ee1a18d51ed68ee34df7dcfd05f6cfc16110202)
---
 sys/amd64/vmm/intel/vmx.c | 4 ++++
 1 file changed, 4 insertions(+)

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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301262212.30QMCIXP022518>