From owner-freebsd-emulation@FreeBSD.ORG Wed Jan 26 14:25:59 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F1D2106566B; Wed, 26 Jan 2011 14:25:59 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id D32888FC14; Wed, 26 Jan 2011 14:25:58 +0000 (UTC) Received: by fxm16 with SMTP id 16so1089305fxm.13 for ; Wed, 26 Jan 2011 06:25:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version:content-type; bh=AtZ/NahZMeHDXv6oYdbU7L+jDGIYW1y0I56fpzyVyAA=; b=JaZz5291VwR4VZ3KlLc3nmLZma0ZUut13LPfCVDlYNdl6jF6q7dtnZfVffkgQ58F7C FDYakOhQpAwXVHxnO6MaB0uF4SWrEvNVQdRX7HNNTl96Q3Xr5lE8tXEeBxJd3j1rMElC MysjUJA6xKiyOpw6/E4QP3GU+iCuDCIlt8+Ac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=KKobyX3uDfTHUwR7xMv5xGA4aHhxuQLoXinq4s7Mt3a6s85lJuQ9r2mRC+PbZd78s/ OZQtUkuMvoV23BkRiBsNNkBvFp3XEkl01gFVDh0mJpcif282tBu0cwBRb0XsB0KouVeI geTu3zi3Q7Rq27nj3lsNnI9Sev9ipWCI1APss= Received: by 10.223.83.11 with SMTP id d11mr7284374fal.37.1296051932203; Wed, 26 Jan 2011 06:25:32 -0800 (PST) Received: from localhost (ua1.etadirect.net [91.198.140.16]) by mx.google.com with ESMTPS id f24sm5523671fak.24.2011.01.26.06.25.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 Jan 2011 06:25:30 -0800 (PST) From: Mikolaj Golub To: Bernhard Froehlich Organization: TOA Ukraine References: <86oc77heqk.fsf@kopusha.home.net> <4D3D2DE9.2060004@freebsd.org> <86tygwy9p0.fsf@kopusha.home.net> <4D3F8357.2070005@freebsd.org> <62fcd16074e526547c3417a8f259174e@bluelife.at> Date: Wed, 26 Jan 2011 16:25:28 +0200 In-Reply-To: <62fcd16074e526547c3417a8f259174e@bluelife.at> (Bernhard Froehlich's message of "Wed, 26 Jan 2011 10:22:40 +0100") Message-ID: <8662tbkahz.fsf@zhuzha.ua1> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-emulation@freebsd.org, Julian Elischer , freebsd-virtualization@freebsd.org Subject: Re: VirtualBox + VIMAGE X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2011 14:25:59 -0000 On Wed, 26 Jan 2011 10:22:40 +0100 Bernhard Froehlich wrote: BF> Sounds like it's my turn now. Which FreeBSD version is required to be BF> able to use it? As Bjoern noted it is for __FreeBSD_version >= 800500. BF> Is VIMAGE enabled per default and what happens if VIMAGE is disabled - BF> does it at least build fine with that patch? We have VIMAGE disabled by default. I have added to src/VBox/HostDrivers/VBoxNetFlt/freebsd/Makefile: .if defined(VIMAGE) CFLAGS += -DVIMAGE .endif So to build the driver for VIMAGE enabled kernel one should run VIMAGE=1 make If VIMAGE variable is not defined the module for VIMAGE disabled kernel will be built. I am not familiar with VBox build process so there might be a better solution. I suppose we should have an option in ports, something: .if ${OSVERSION} < 800500 OPTIONS+= VIMAGE "Build for VIMAGE kernel" off .endif and if it is on set VIMAGE make environment variable. Or may be you have a better solution. BF> For Mikolaj Golub to get this patch upstream we need that you either BF> agree that his patch is under the MIT License or sign a Sun Contributors BF> Agreement. Then we can submit that patch upstream or you can do it BF> yourself if you prefer. Read here: BF> http://www.virtualbox.org/wiki/Contributor_information MIT License is ok. It would be very nice of you if you submitted the patch upstream :-). If nobody do this then I will try to submit it myself. -- Mikolaj Golub