From owner-svn-src-all@FreeBSD.ORG Mon Dec 13 14:19:51 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6AAC106566B; Mon, 13 Dec 2010 14:19:51 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from worf.ds9.tecnik93.com (worf.ds9.tecnik93.com [81.196.207.130]) by mx1.freebsd.org (Postfix) with ESMTP id 1D2C08FC20; Mon, 13 Dec 2010 14:19:50 +0000 (UTC) Received: from it.buh.tecnik93.com (unknown [188.27.101.203]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id B457322C54D7; Mon, 13 Dec 2010 16:00:22 +0200 (EET) Date: Mon, 13 Dec 2010 16:00:21 +0200 From: Ion-Mihai Tetcu To: Robert Watson Message-ID: <20101213160021.60401b79@it.buh.tecnik93.com> In-Reply-To: <201012131234.oBDCYZvl082510@svn.freebsd.org> References: <201012131234.oBDCYZvl082510@svn.freebsd.org> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.1; amd64-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/VhbRdw3mS0Y7Uwz3lXwlCy3"; protocol="application/pgp-signature" Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-8@freebsd.org Subject: Re: svn commit: r216406 - stable/8/sys/amd64/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2010 14:19:51 -0000 --Sig_/VhbRdw3mS0Y7Uwz3lXwlCy3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 13 Dec 2010 12:34:35 +0000 (UTC) Robert Watson wrote: > Author: rwatson > Date: Mon Dec 13 12:34:35 2010 > New Revision: 216406 > URL: http://svn.freebsd.org/changeset/base/216406 >=20 > Log: > Merge r216365 from head to stable/8: > =20 > Derive the XENHVM kernel from GENERIC, adding only the options > required to support PV drivers (such as xenpci), and non-adptive > locking (along with a comment about why). > =20 > This change eliminates the synchronisation problem between > GENERIC and XENHVM, which had become severely rotted in HEAD, and in > 8-STABLE included non-production kernel debugging features such as > WITNESS.=20 > However, it comes at the cost of enabling devices and options > that may not be present under Xen (such as random ethernet cards). > For now, opt for a simpler kernel configuration file rather than > using nooptions/ nodevice to enumerate and eliminate them. This > leads to a somewhat larger XENHVM kernel. > =20 > This is an MFC candidate for 8-STABLE before 8.2, in order to > provide a production-worthy XENHVM kernel configuration for amd64. > =20 > Discussed with: gibbs, cperciva > Reported by: Piete Brooks > Sponsored by: DARPA, AFRL > =20 > Approved by: re (kib) What about the same for i386? BTW, on a i386R trying to do a make buildworld && make buildkernel KERNCONF=3DVPS yesterday resulted in: cc -c -O -pipe -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wst= rict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual = -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sy= s -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inclu= de opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growt= h=3D100 --param large-function-growth=3D1000 -mno-align-long-strings -mpre= ferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3= -ffreestanding -fstack-protector -Werror /usr/src/sys/i386/xen/xen_machde= p.c /usr/src/sys/i386/xen/xen_machdep.c: In function 'initvalues': /usr/src/sys/i386/xen/xen_machdep.c:1077: error: 'IdlePTDnew' undeclared (f= irst use in this function) /usr/src/sys/i386/xen/xen_machdep.c:1077: error: (Each undeclared identifie= r is reported only once /usr/src/sys/i386/xen/xen_machdep.c:1077: error: for each function it appea= rs in.) /usr/src/sys/i386/xen/xen_machdep.c:1082: error: 'IdlePTDnewma' undeclared = (first use in this function) /usr/src/sys/i386/xen/xen_machdep.c:1085: error: 'IdlePDPTnew' undeclared (= first use in this function) /usr/src/sys/i386/xen/xen_machdep.c:1124: error: 'IdlePDPT' undeclared (fir= st use in this function) /usr/src/sys/i386/xen/xen_machdep.c:1125: error: 'IdlePDPTma' undeclared (f= irst use in this function) /usr/src/sys/i386/xen/xen_machdep.c:1125: error: 'IdlePDPTnewma' undeclared= (first use in this function) cc1: warnings being treated as errors /usr/src/sys/i386/xen/xen_machdep.c:893: warning: unused variable 'pdir_sha= dow_ma' *** Error code 1 Maybe I have something wrong in the KERNCONF? # cat /root/kernels/ # # XEN -- Kernel configuration for i386 XEN DomU # # $FreeBSD: src/sys/i386/conf/XEN,v 1.9.2.2 2010/11/28 16:25:16 cperciva Ex= p $ cpu I686_CPU ident XEN makeoptions DEBUG=3D-g # Build kernel with gdb(1) debug = symbols #makeoptions MODULES_OVERRIDE=3D"" options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Proto= col options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big direct= ories options GEOM_LABEL # Provides labelization options COMPAT_43TTY # BSD 4.3 TTY compat (sgtty) options COMPAT_FREEBSD7 # Compatible with FreeBSD7 options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options P1003_1B_SEMAPHORES # POSIX-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time exte= nsions options KBD_INSTALL_CDEV # install a CDEV entry in /dev # Debugging for use in -current options KDB # Enable kernel debugger support. #options DDB # Support DDB. #options GDB # Support remote GDB. #options INVARIANTS # Enable calls of extra sanity chec= king #options INVARIANT_SUPPORT # Extra sanity checks of internal s= tructures, required by INVARIANTS #options WITNESS # Enable checks to detect deadlocks= and cycles #options WITNESS_SKIPSPIN # Don't run witness on spinlocks fo= r speed nooption NATIVE option XEN nodevice atpic nodevice isa options MCLSHIFT=3D12 # To make an SMP kernel, the next two lines are needed options SMP # Symmetric MultiProcessor Kernel device apic # I/O APIC #device atkbdc # AT keyboard controller #device atkbd # AT keyboard #device psm # PS/2 mouse device pci #device kbdmux # keyboard multiplexer device loop # Network loopback device random # Entropy device device ether # Ethernet support device pty # Pseudo-ttys (telnet etc) device bpf # Berkeley packet filter device eisa device ata options ATA_STATIC_ID # Static device numbering device vga # VGA video card driver options VGA_NO_FONT_LOADING options VGA_NO_MODE_CHANGE # syscons is the default console driver, resembling an SCO console device sc options SC_NO_CUTPASTE options SC_NO_FONT_LOADING options SC_NO_HISTORY options SC_NO_MODE_CHANGE options SC_NO_SYSMOUSE device pmtimer --=20 IOnut - Un^d^dregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" FreeBSD committer -> itetcu@FreeBSD.org, PGP Key ID 057E9F8B493A297B --Sig_/VhbRdw3mS0Y7Uwz3lXwlCy3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk0GJvYACgkQJ7GIuiH/oeUBLQCeNva7WIhPV2LAHsQR/4we90pL MLIAoIZUXpOf3bZz9cL37CXM+4o4+UHA =aO+W -----END PGP SIGNATURE----- --Sig_/VhbRdw3mS0Y7Uwz3lXwlCy3--