From owner-freebsd-ports@FreeBSD.ORG Tue Mar 12 12:01:50 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 992F2C3 for ; Tue, 12 Mar 2013 12:01:50 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-gg0-x232.google.com (mail-gg0-x232.google.com [IPv6:2607:f8b0:4002:c02::232]) by mx1.freebsd.org (Postfix) with ESMTP id 61594FCE for ; Tue, 12 Mar 2013 12:01:50 +0000 (UTC) Received: by mail-gg0-f178.google.com with SMTP id 21so782182ggh.23 for ; Tue, 12 Mar 2013 05:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:subject:from:to:cc:in-reply-to:references :disposition-notification-to:content-type:date:message-id :mime-version:x-mailer; bh=oVRWL/WSGMWb5LZ4OKGtKWqYyn9yDbD8YLfwG/isLHc=; b=sOARvEgYMKs+9sMT5i5sabPGqmABAC50Hs7PdPtgIHlc/75uAgoabXS6s9qi8NJwLy 8FV1Bv84XhK7KWTK54wJTS7+nwIcd1yQJIuTGMUlHqx8B+AtfdnrUVYbutvP1Rm1YhUR DmJ+DjczQAzWRNj6FBHlPbp8zGNnvltwsTas9fbGfTe3q6TcoFk6GFArm86CnsxuMhF1 eGKi4vEvYoZ0kjlhXKb22n2l6DlCTzPSoWLMO/oah5N8lyQZVCjond8k+8j4S1p9dIma MggiBw6R6t4LKkxZM0r1Wz9fBoulhryQ6siSskPlhhcp6/tthYWyb6LFvPn+dys3sdHI aIvA== X-Received: by 10.236.161.197 with SMTP id w45mr12017771yhk.149.1363089709647; Tue, 12 Mar 2013 05:01:49 -0700 (PDT) Received: from [192.168.6.230] ([177.82.45.55]) by mx.google.com with ESMTPS id v43sm29127493yhm.11.2013.03.12.05.01.46 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 12 Mar 2013 05:01:48 -0700 (PDT) Subject: Re: VirtualBox patch From: Sergio de Almeida Lenzi To: Ferenc Balku In-Reply-To: <513DA3AD.1000603@gmail.com> References: <513DA3AD.1000603@gmail.com> Date: Tue, 12 Mar 2013 09:01:43 -0300 Message-ID: <1363089703.20974.6.camel@z6000.lenzicasa> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 12:01:50 -0000 Em Seg, 2013-03-11 às 10:28 +0100, Ferenc Balku escreveu: > Hi Sergio! > > Awfully sorry to disturb You, but I have found this link via Google > http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/081979.html > and can not find the patch to download a make VBox work again on our > FBSD10 test server. > > Can You please send me a link to download the patch. > > Thanks in advance, > > Best Regards > > Ferenc Balku No problem I was "travel business... here is the patch, the list does not allow attach files... go to the /usr/ports/emulators/virtualbox-ose-kmod, put the fix in the "files" directory with a name like ==> patch-the-freebsd-kernel and do a make clean install ============================================================== --- src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h.orig 2012-12-19 16:27:29.000000000 -0200 +++ src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h 2013-03-09 14:42:18.924039639 -0300 @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -70,6 +71,12 @@ #include #include +/* + fix VM_OBJ_LOCK +*/ +#define VM_OBJECT_LOCK(o) VM_OBJECT_RLOCK(o) +#define VM_OBJECT_UNLOCK(o) VM_OBJECT_RUNLOCK(o) + /** * Wrappers around the sleepq_ KPI. */ ===========================================================