tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: virtual to physical memory address translation



manu%netbsd.org@localhost (Emmanuel Dreyfus) writes:

>Hello

>Sorry if that has been covered ad nauseum, but I canot find relevant
>information about that: on NetBSD, how can I get the physical memory
>address given a virtual memory address? This is to port the Linux
>Meltdown PoC so that we have something to test our systems against.

pmap_extract() returns the physical address of a virtual address.
pmap_kernel() gives you the kernel map.


-- 
-- 
                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index