From owner-freebsd-current@FreeBSD.ORG Wed Feb 24 11:44:09 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98E9F106566B for ; Wed, 24 Feb 2010 11:44:09 +0000 (UTC) (envelope-from jacques.fourie@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3459D8FC2F for ; Wed, 24 Feb 2010 11:44:08 +0000 (UTC) Received: by wyb40 with SMTP id 40so1215714wyb.13 for ; Wed, 24 Feb 2010 03:44:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=2IKT17Z4lmDxvI6jNcAbXyEQGCtC2/35Nty2qDCQuCA=; b=AE8WvOwg7uwE73rwH5slKzfYdQsDOxDuJh9B9UQmURS/gAwhKJoWgzgLI2eA65DbJH p/J0emrkyn0WnB+8w4KbdNMLi/oAlIJGlNdUTuANvxv5wElt3iTF7yMul8cv4mdAmNNq NRkQQrvMkYBRvbnaauW0nhIuBZoPNM/dUTNRI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u42d1bY5NDItimA10Q9pzCeeURiI7O1OuYmQdpPU83gQF4yoOpcGy2S6XgoMGAf3Sw kcN5Fk2C30aOGhdc+0zE9UZWXl5HVYowNzC1b+Ofw1RjET+TuVEvgM9gFOZptFrW2z/b NI3+XoZxN83idlDlraE30Yyxk9rK+C7ifS78k= MIME-Version: 1.0 Received: by 10.216.88.148 with SMTP id a20mr499765wef.124.1267010200083; Wed, 24 Feb 2010 03:16:40 -0800 (PST) In-Reply-To: <61b573981002240058m51a45bf8l1ca55063ef277492@mail.gmail.com> References: <61b573981002240058m51a45bf8l1ca55063ef277492@mail.gmail.com> Date: Wed, 24 Feb 2010 13:16:40 +0200 Message-ID: From: Jacques Fourie To: Shteryana Shopova Content-Type: text/plain; charset=ISO-8859-1 Cc: Ian FREISLICH , 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 11:44:09 -0000 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);