Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2010 16:38:15 +0100
From:      Bernhard Froehlich <decke@bluelife.at>
To:        Bernhard Froehlich <decke@bluelife.at>
Cc:        Giovanni Trematerra <giovanni.trematerra@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: Virtualbox
Message-ID:  <0f61b7afe284765d6f2db7597ef5f4b6@bluelife.at>
In-Reply-To: <83c3f6f36a82e27255b39206b0391900@bluelife.at>
References:  <E1NjxUk-0007m6-Nr@clue.co.za> <27714203.post@talk.nabble.com> <4e6cba831002240602gaffcee3lb8964096431d875f@mail.gmail.com> <83c3f6f36a82e27255b39206b0391900@bluelife.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Feb 2010 16:04:33 +0100, Bernhard Froehlich <decke@bluelife.at>
wrote:
> On Wed, 24 Feb 2010 15:02:30 +0100, Giovanni Trematerra
> <giovanni.trematerra@gmail.com> wrote:
>> 2010/2/24 Bernhard Fröhlich <decke@bluelife.at>:
>>>
>>>>Hi
>>>>
>>>>Has anyone managed to make Virtualbox work on 9-Current?  Since
>>>>installing 3.1.2-OSE VMs, all brand new, abort on startup.
>>>>
>>>>The last part of the log seems pertinent:
>>>>
>>>>00:00:15.481 !!Assertion Failed!!
>>>>00:00:15.481 Expression: paPages[i].Phys != 0 && paPages[i].Phys !=
>>> NIL_RTHCPHYS && >!(paPages[i].Phys & PAGE_OFFSET_MASK)
>>>>00:00:15.481 Location  :
>>> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-3.1.2_OSE/src/VBox
>>>>/VMM/MMHyper.cpp(610) int MMR3HyperMapPages(VM*, void*, RTR0PTR,
> size_t,
>>> const SUPPAGE*,
>>>>const char*, RTGCPTR64*)
>>>>00:00:15.482 i=0x0 Phys=0000000000000000 Heap
>>>>
>>>>Does anyone have any ideas?
>>>
>>>
>>> Thanks for the report. I've talked to Alexander Eichner and he gave me
> a
>>> patch that could
>>> fix that problem. Could you please try to build the
virtualbox-ose-kmod
>>> port
>>> with that patch?
>>> If it works we will include it in the port update coming quite soon.
>>>
>>> http://pastebin.ca/1808090
>>>
>>> If that does not help please create a backtrace from the vbox coredump
>>> and
>>> send the vbox.log.
>> 
>> There are other point in
>> src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
>> where vtophys is misused as in rtR0MemObjNativeGetPagePhysAddr.
>> Using pmap_extract might be insufficient, what if the page will be
> swapped
>> out?
> 
> According to aeichner that should not happen as all memory allocated
there
> is locked. He's at the moment having a look at the other vtophys calls.

I've got the new patch from Alexander Eichner now. It's currently untested
on newer kernels so could someone please test it on an affected kernel?

http://pastebin.ca/1808177
(linefeeds from the patch are dos so beware!)

beat@ has already commited it to our vbox testing repository so you can
get
the virtualbox 3.1.4 port with the new patch included from:

http://svn.bluelife.at/nightlies/virtualbox-port-r731.tar.gz

-- 
Bernhard Fröhlich
http://www.bluelife.at/



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