[vbox-dev] [PATCH] Fix FreeBSD panic: mutex vm page queue free mutex not owned and PG_UNMANAGED compile problem

Bernhard Froehlich decke at bluelife.at
Fri Dec 2 11:52:49 GMT 2011


The first hunk of the patch fixes a compile problem on FreeBSD 
10-CURRENT:

Remove explicit initialization of m->flags and m->oflags because per
default vm_phys_alloc_contig() already initializes the page as 
unmanaged.
Chase move of PG_UNMANAGED flag from m->flags to m->oflags and renaming
to VPO_UNMANAGED for an additional assert.


The following hunks fix the following panic on FreeBSD 10-CURRENT 
hosts:

panic: mutex vm page queue free mutex not owned at 
/root/deviant2/sys/vm/vm_phys.c:882


The patch has been created by Jung-uk Kim <jkim at FreeBSD.org> and is 
attached and available here:
http://people.freebsd.org/~jkim/patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c

License of the patch is MIT as usual.
http://lists.freebsd.org/pipermail/freebsd-current/2011-December/029866.html

-- 
Bernhard Fröhlich
http://www.bluelife.at/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c
Type: application/octet-stream
Size: 2291 bytes
Desc: not available
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20111202/e493eee9/attachment.obj>


More information about the vbox-dev mailing list