Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Feb 2010 09:43:20 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-hackers@freebsd.org
Cc:        Jacques Fourie <jacques.fourie@gmail.com>
Subject:   Re: VirtualBox and vtophys
Message-ID:  <201002240943.20648.jhb@freebsd.org>
In-Reply-To: <be2f52431002240341g7eea52f3tc751d59b2a51806@mail.gmail.com>
References:  <be2f52431002240341g7eea52f3tc751d59b2a51806@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
John Baldwin



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