From owner-freebsd-current@FreeBSD.ORG Wed Feb 24 15:38:16 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1495106566C for ; Wed, 24 Feb 2010 15:38:16 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from mail.itac.at (mail.itac.at [91.205.172.9]) by mx1.freebsd.org (Postfix) with ESMTP id 185748FC12 for ; Wed, 24 Feb 2010 15:38:15 +0000 (UTC) Received: from [91.205.172.21] (helo=webmail.bluelife.at) by mail.itac.at with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1NkJJW-0005Ts-LQ; Wed, 24 Feb 2010 16:38:14 +0100 MIME-Version: 1.0 Date: Wed, 24 Feb 2010 16:38:15 +0100 From: Bernhard Froehlich To: Bernhard Froehlich In-Reply-To: <83c3f6f36a82e27255b39206b0391900@bluelife.at> References: <27714203.post@talk.nabble.com> <4e6cba831002240602gaffcee3lb8964096431d875f@mail.gmail.com> <83c3f6f36a82e27255b39206b0391900@bluelife.at> Message-ID: <0f61b7afe284765d6f2db7597ef5f4b6@bluelife.at> X-Sender: decke@bluelife.at User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.7 (/) X-Spam-Report: Spam detection software, running on the system "mail.itac.at", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Wed, 24 Feb 2010 16:04:33 +0100, Bernhard Froehlich wrote: > On Wed, 24 Feb 2010 15:02:30 +0100, Giovanni Trematerra > wrote: >> 2010/2/24 Bernhard Fröhlich : >>> >>>>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. [...] Content analysis details: (0.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 3.4 FH_DATE_PAST_20XX The date is grossly in the future. -1.2 AWL AWL: From: address is in the auto white-list Cc: Giovanni Trematerra , freebsd-current@freebsd.org Subject: Re: Virtualbox X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 15:38:16 -0000 On Wed, 24 Feb 2010 16:04:33 +0100, Bernhard Froehlich wrote: > On Wed, 24 Feb 2010 15:02:30 +0100, Giovanni Trematerra > wrote: >> 2010/2/24 Bernhard Fröhlich : >>> >>>>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/