Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2010 17:32:13 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-hackers@freebsd.org, Jacques Fourie <jacques.fourie@gmail.com>
Subject:   Re: VirtualBox and vtophys
Message-ID:  <20100224153213.GV50403@deviant.kiev.zoral.com.ua>
In-Reply-To: <201002240943.20648.jhb@freebsd.org>
References:  <be2f52431002240341g7eea52f3tc751d59b2a51806@mail.gmail.com> <201002240943.20648.jhb@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Wed, Feb 24, 2010 at 09:43:20AM -0500, John Baldwin wrote:
> On Wednesday 24 February 2010 6:41:31 am Jacques Fourie wrote:
> > I've noticed that my virtualbox vboxdrv.ko started crashing after
> > updating my 8.0-stable install. The crash occurs when vboxdrv calls
> > vtophys() on a userland virtual address. Prior to r202894 this was
> > working fine. Modifying pmap_kextract() to use vtopte() for non-kernel
> > virtual adresses fixes the problem. Is it intended for vtophys() to
> > still work on userland virtual addresses?
> 
> Use pmap_extract(pmap, ...) for user addresses.  Granted, that is only 
> reliable if the user pages have been wired in some fashion.

The reference code is in
sys/dev/cxgb/ulp/tom/cxgb_vm.c:vm_fault_hold_user_pages(), it holds
and returns the page that was mapped at the moment of the call at the
specified address.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkuFRn0ACgkQC3+MBN1Mb4i3cwCaAgF2YabOhA6lf52wBRWxhq/q
ytsAniAED5NSA0BOrK2A4OMYMBDlR3D6
=Ngfp
-----END PGP SIGNATURE-----
help

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