Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Mar 2013 14:51:40 -0300
From:      Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
To:        ports <freebsd-ports@freebsd.org>
Subject:   Re: VirtualBox patch, defininive???
Message-ID:  <1363110700.27888.5.camel@z6000.lenzicasa>
In-Reply-To: <513DA3AD.1000603@gmail.com>
References:  <513DA3AD.1000603@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello
Thanks to Konstantin Belousov <kostikbel@gmail.com>
a substitution from RLOCK with WLOCK is the correct way,
so a new fix is necessary...


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_WLOCK(o)
+#define        VM_OBJECT_UNLOCK(o) VM_OBJECT_WUNLOCK(o)
+
/**
  * Wrappers around the sleepq_ KPI.
  */
=========================================================== 



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