VirtualBox and vtophys

John Baldwin jhb at freebsd.org
Wed Feb 24 14:56:13 UTC 2010


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


More information about the freebsd-hackers mailing list