From owner-freebsd-virtualization@FreeBSD.ORG Sat May 2 19:57:47 2009 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78E9B1065670 for ; Sat, 2 May 2009 19:57:47 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 108A38FC23 for ; Sat, 2 May 2009 19:57:46 +0000 (UTC) (envelope-from olivier@gid0.org) Received: by bwz9 with SMTP id 9so2803686bwz.43 for ; Sat, 02 May 2009 12:57:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.104.140 with SMTP id p12mr1488315fao.7.1241294265025; Sat, 02 May 2009 12:57:45 -0700 (PDT) In-Reply-To: <49FC9902.0@elischer.org> References: <49FC812B.2070305@elischer.org> <367b2c980905021130i76012f91i7cce93edd55cacad@mail.gmail.com> <49FC9902.0@elischer.org> Date: Sat, 2 May 2009 21:57:44 +0200 Message-ID: <367b2c980905021257v17e2484fo9d44811b190d256c@mail.gmail.com> From: Olivier SMEDTS To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: virtualization@freebsd.org Subject: Re: VIMAGE status X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2009 19:57:49 -0000 2009/5/2 Julian Elischer : > Olivier SMEDTS wrote: >> >> 2009/5/2 Julian Elischer : >>> >>> The VIMAGE code is nearly all in the the kernel. >>> >>> One is now able to make VIMAGE kernels (add options VIMAGE) >>> though they don't actually allow you to make multiple >>> vimages instances yet.. >>> >>> The VIMAGE option enables all the low level changes needed >>> throughout the kernel. >>> > >> Here is a warning I have when building kernel with options VIMAGE and >> INET6 : >> >> cc -c -O2 -pipe -march=3Dnative -fno-strict-aliasing -std=3Dc99 -g -Wall >> -Wredundant-decls -Wnested-externs -Wstrict-prototypes >> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =A0-Wundef >> -Wno-pointer-sign -fformat-extensions -nostdinc =A0-I. =A0-I/work/src/sy= s >> -I/work/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS >> -include opt_global.h -fno-common -finline-limit=3D8000 --param >> inline-unit-growth=3D100 --param large-function-growth=3D1000 >> -mcmodel=3Dkernel -mno-red-zone =A0-mfpmath=3D387 -mno-sse -mno-sse2 >> -mno-sse3 -mno-mmx -mno-3dnow =A0-msoft-float >> -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector >> -Werror =A0/work/src/sys/netinet6/mld6.c >> cc1: warnings being treated as errors >> /work/src/sys/netinet6/mld6.c: In function 'vnet_mld_idetach': >> /work/src/sys/netinet6/mld6.c:3145: warning: unused variable 'vnet_inet6= ' >> *** Error code 1 >> > >> >> > > I assume you do not have INVARIANTS.. Right, here is my kernel config file's content (amd64) : cpu HAMMER ident QUAD makeoptions DEBUG=3D-g options SCHED_ULE options PREEMPTION options IPI_PREEMPTION options INET options INET6 options FFS options SOFTUPDATES options UFS_DIRHASH options COMPAT_IA32 options KTRACE options STACK options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV options STOP_NMI options AUDIT options VIMAGE options PRINTF_BUFR_SIZE=3D128 options SMP device acpi device pci device atkbdc device atkbd device vga device sc device loop device ether device pty device bpf > > can you just put #ifdef INVARIANTS around that line and do the compile > again? > It now compiles without errors. --=20 Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."