Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2008 17:19:16 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186522 - head/sys/kern
Message-ID:  <200812271719.mBRHJGkl077164@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Dec 27 17:19:16 2008
New Revision: 186522
URL: http://svn.freebsd.org/changeset/base/186522

Log:
  Hide detect_virtual() along with the accompanying string
  arrays under #ifndef XEN to make XEN config compile again.
  In case of Xen vm_guest is hard coded.
  
  Move the list for the vm_guest sysctl out of the restictive
  bounds as the sysctl is there in either case.

Modified:
  head/sys/kern/subr_param.c

Modified: head/sys/kern/subr_param.c
==============================================================================
--- head/sys/kern/subr_param.c	Sat Dec 27 16:03:34 2008	(r186521)
+++ head/sys/kern/subr_param.c	Sat Dec 27 17:19:16 2008	(r186522)
@@ -126,6 +126,14 @@ SYSCTL_PROC(_kern, OID_AUTO, vm_guest, C
  */
 struct	buf *swbuf;
 
+static const char *const vm_guest_sysctl_names[] = {
+	"none",
+	"generic",
+	"xen",
+	NULL
+};
+
+#ifndef XEN
 static const char *const vm_bnames[] = {
 	"QEMU",				/* QEMU */
 	"Plex86",			/* Plex86 */
@@ -141,13 +149,6 @@ static const char *const vm_pnames[] = {
 	NULL
 };
 
-static const char *const vm_guest_sysctl_names[] = {
-	"none",
-	"generic",
-	"xen",
-	NULL
-};
-
 
 /*
  * Detect known Virtual Machine hosts by inspecting the emulated BIOS.
@@ -178,6 +179,7 @@ detect_virtual(void)
 	}
 	return (VM_GUEST_NO);
 }
+#endif
 
 /*
  * Boot time overrides that are not scaled against main memory



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812271719.mBRHJGkl077164>