Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Assume we're not a VM ...



details:   https://anonhg.NetBSD.org/src/rev/2852e990a06c
branches:  trunk
changeset: 835148:2852e990a06c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:44:12 2018 +0000

description:
Assume we're not a VM guest in radeon for now.

Not sure exactly what the consequences of this are but we'll cross
that bridge when we come to it.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r af69ef34ec5f -r 2852e990a06c sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c     Mon Aug 27 07:44:01 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c     Mon Aug 27 07:44:12 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_device.c,v 1.4 2018/08/27 04:58:36 riastradh Exp $      */
+/*     $NetBSD: radeon_device.c,v 1.5 2018/08/27 07:44:12 riastradh Exp $      */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_device.c,v 1.4 2018/08/27 04:58:36 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_device.c,v 1.5 2018/08/27 07:44:12 riastradh Exp $");
 
 #include <linux/console.h>
 #include <linux/slab.h>
@@ -670,7 +670,11 @@
 static bool radeon_device_is_virtual(void)
 {
 #ifdef CONFIG_X86
+#ifdef __NetBSD__              /* XXX virtualization */
+       return false;
+#else
        return boot_cpu_has(X86_FEATURE_HYPERVISOR);
+#endif
 #else
        return false;
 #endif



Home | Main Index | Thread Index | Old Index