Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2010 13:16:40 +0200
From:      Jacques Fourie <jacques.fourie@gmail.com>
To:        Shteryana Shopova <shteryana@gmail.com>
Cc:        Ian FREISLICH <ianf@clue.co.za>, current@freebsd.org
Subject:   Re: Virtualbox
Message-ID:  <be2f52431002240316g62f2b7f7oefc36a9b6ec66a2b@mail.gmail.com>
In-Reply-To: <61b573981002240058m51a45bf8l1ca55063ef277492@mail.gmail.com>
References:  <E1NjxUk-0007m6-Nr@clue.co.za> <61b573981002240058m51a45bf8l1ca55063ef277492@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As a test you can apply the following mod to sys/i386/include/pmap.h
and re-compile vboxdrv.ko. It fixed the problem for me but I'm by no
means an expert on the i386 pmap stuff so use at your own risk. Also
revert the change to pmap.h after re-compiling vboxdrv just so that
you don't inadvertently break something else.

Index: pmap.h
===================================================================
--- pmap.h      (revision 204194)
+++ pmap.h      (working copy)
@@ -296,7 +296,10 @@
                 * however, safe to use the old PDE because the page table
                 * page is preserved by the promotion.
                 */
-               pa = KPTmap[i386_btop(va)];
+               if (va >= KERNBASE)
+                       pa = KPTmap[i386_btop(va)];
+               else
+                       pa = *vtopte(va);
                pa = (pa & PG_FRAME) | (va & PAGE_MASK);
        }
        return (pa);



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