Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2013 14:40:09 -0300
From:      Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        ports <freebsd-ports@freebsd.org>
Subject:   Re: VirtualBox patch
Message-ID:  <1363110009.27888.1.camel@z6000.lenzicasa>
In-Reply-To: <20130312151751.GJ3794@kib.kiev.ua>
References:  <513DA3AD.1000603@gmail.com> <1363089703.20974.6.camel@z6000.lenzicasa> <20130312151751.GJ3794@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Em Ter, 2013-03-12 às 17:17 +0200, Konstantin Belousov escreveu:

> On Tue, Mar 12, 2013 at 09:01:43AM -0300, Sergio de Almeida Lenzi wrote:
> > 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 <sys/unistd.h>
> >  #include <sys/kthread.h>
> >  #include <sys/lock.h>
> > +#include <sys/rwlock.h>
> >  #include <sys/mutex.h>
> >  #include <sys/sched.h>
> >  #include <sys/callout.h>
> > @@ -70,6 +71,12 @@
> >  #include <sys/resourcevar.h>
> >  #include <machine/cpu.h>
> >  
> > +/*
> > +       fix VM_OBJ_LOCK
> > +*/
> > +#define        VM_OBJECT_LOCK(o) VM_OBJECT_RLOCK(o)
> > +#define        VM_OBJECT_UNLOCK(o) VM_OBJECT_RUNLOCK(o)
> 
> This is definitely wrong. For the blind substitution, you should
> use VM_OBJECT_WLOCK/VM_OBJECT_WUNLOCK.

Ok, you are the guru,   I just wanted the virtualbox to have it work
asap...

I will test this (with WLOCK/WUNLOCK) at once...

Thanks for th information....




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