git: 2ee1a18d51ed - main - vmm: Fix build w/o KDTRACE_HOOKS.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 20 Nov 2022 15:01:09 UTC
The branch main has been updated by dchagin:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ee1a18d51ed68ee34df7dcfd05f6cfc16110202
commit 2ee1a18d51ed68ee34df7dcfd05f6cfc16110202
Author: Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2022-11-20 15:00:55 +0000
Commit: Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2022-11-20 15:00:55 +0000
vmm: Fix build w/o KDTRACE_HOOKS.
Reviewed by: imp
Differential revision: https://reviews.freebsd.org/D37446
---
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;