Module Name: src
Committed By: riastradh
Date: Mon Aug 27 07:44:12 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/dist/drm/radeon: radeon_device.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c
diff -u src/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c:1.4 src/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c:1.5
--- src/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c:1.4 Mon Aug 27 04:58:36 2018
+++ src/sys/external/bsd/drm2/dist/drm/radeon/radeon_device.c Mon Aug 27 07:44:12 2018
@@ -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 @@ void radeon_gtt_location(struct radeon_d
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