From a4b59d3db60ffe3f86c98a8fbfc7a05cd186827d Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 21 Mar 2019 20:07:50 +0000 Subject: [PATCH] Use an explicit comparison with VM_GUEST_NO. Reported by: jhb MFC with: r345359 Sponsored by: The FreeBSD Foundation --- sys/cddl/dev/dtrace/amd64/dtrace_subr.c | 2 +- sys/cddl/dev/dtrace/i386/dtrace_subr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cddl/dev/dtrace/amd64/dtrace_subr.c b/sys/cddl/dev/dtrace/amd64/dtrace_subr.c index d898319e80c6..82d20ebba936 100644 --- a/sys/cddl/dev/dtrace/amd64/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/amd64/dtrace_subr.c @@ -319,7 +319,7 @@ dtrace_gethrtime_init(void *arg) int i; #endif - if (vm_guest) + if (vm_guest != VM_GUEST_NO) return; /* The current CPU is the reference one. */ diff --git a/sys/cddl/dev/dtrace/i386/dtrace_subr.c b/sys/cddl/dev/dtrace/i386/dtrace_subr.c index fe6ea19ddb15..4c0decaa3c87 100644 --- a/sys/cddl/dev/dtrace/i386/dtrace_subr.c +++ b/sys/cddl/dev/dtrace/i386/dtrace_subr.c @@ -321,7 +321,7 @@ dtrace_gethrtime_init(void *arg) int i; #endif - if (vm_guest) + if (vm_guest != VM_GUEST_NO) return; /* The current CPU is the reference one. */