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

next in thread | previous in thread | raw e-mail | index | archive | help

--Uwpcjsn9Jass54ML
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
>=20
> > Hi Sergio!
> >=20
> > 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=20
> > FBSD10 test server.
> >=20
> > Can You please send me a link to download the patch.
> >=20
> > Thanks in advance,
> >=20
> > Best Regards
> >=20
> > Ferenc Balku
>=20
>=20
> No problem   I was "travel business...
> here is the patch,
> the list does not allow attach files...
>=20
> go to the /usr/ports/emulators/virtualbox-ose-kmod,
> put the fix in the "files" directory with a name like =3D=3D>
> patch-the-freebsd-kernel
> and do a make clean install
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- 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>
> =20
> +/*
> +       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.

--Uwpcjsn9Jass54ML
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iQIcBAEBAgAGBQJRP0ceAAoJEJDCuSvBvK1BGGoP/2a1YKcpQiC5AmHdicMtrvMM
9bOfgJWOP7a8aulXvyS+kFZMxTGyjggWUqWQIGDDi0gr9E/7NHlea59C+7ybU6AF
By3kikLjdJGOGTyuWRiUg0bg/psFYaJkdw/wrmi5ZeqJKPAwRay1GvXUo3Y4bZb6
xhIcT7G7yznAbchcwCk8bYjhP+2ZIbgaArfHIYHybIzke3jF+/hCGLf5EYu6P43b
Lo615Pgfs04V8isSJp0oXvnPLVlPQUJPhyMIm6sl+dLTP8RMXFpSDAsc06KipX4p
OmC/hzN8mkhNTym/TdzuxU8WiUfvv0x8l97J32AnTy3LMnTPIg4N3zMtMns05GTc
2VBEjdqE1qnXJzLW7iHAKlYVXSjpbTgFv7Ka8xnDW9JDq9n83qAMwmG5kN2wB+Au
kAtsK/vZUxMv0M0gCApv7/cyV1LVi6IBo1h2i636fw+1e0/p6knvBim+aMseJJaV
tsuULIf/NncbBJIrhmRc6k5KZfN0YTMTkh1omV3LyCaat/0tGZCEgXvJR3EAWW8v
F4B+IgL+ra11j3239kjx9iAna+Sq/YGAiRTx4zFsahTIOMWG1omGAGXPKrSdwEzq
6mmpCz2k6RN/DtPG3ENW58ZidNKR3M5XP8KNGnfQQuvQHXQIigFNJl6XFxwbnVcO
4Z8Wcw0+5nTj21u5Up7j
=QtDl
-----END PGP SIGNATURE-----

--Uwpcjsn9Jass54ML--



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