svn commit: r345384 - in head/sys/cddl/dev/dtrace: amd64 i386
Mark Johnston
markj at FreeBSD.org
Thu Mar 21 20:07:51 UTC 2019
Author: markj
Date: Thu Mar 21 20:07:50 2019
New Revision: 345384
URL: https://svnweb.freebsd.org/changeset/base/345384
Log:
Use an explicit comparison with VM_GUEST_NO.
Reported by: jhb
MFC with: r345359
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c
head/sys/cddl/dev/dtrace/i386/dtrace_subr.c
Modified: head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c
==============================================================================
--- head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c Thu Mar 21 19:56:33 2019 (r345383)
+++ head/sys/cddl/dev/dtrace/amd64/dtrace_subr.c Thu Mar 21 20:07:50 2019 (r345384)
@@ -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. */
Modified: head/sys/cddl/dev/dtrace/i386/dtrace_subr.c
==============================================================================
--- head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Thu Mar 21 19:56:33 2019 (r345383)
+++ head/sys/cddl/dev/dtrace/i386/dtrace_subr.c Thu Mar 21 20:07:50 2019 (r345384)
@@ -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. */
More information about the svn-src-all
mailing list