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. */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to