Converting from physical to linear addresses
Posted: Tue Aug 06, 2019 5:44 am
Hi guys,
One of the issues I've just run into is what happens when you exit identity mapping mode. Essentially when in identity mapping you can just convert page table look ups from physical to linear as they are 1:1. When in any kind of real OS you won't have this property. When you look up an address in a hierarchy table that is a physical address according to the Intel manual and might not map to the linear address you need to edit the table.
How do people typically manage reverse mapping? Going from the physical address to the linear. I was planning on just explicitly capturing P4 but it seems this is inadequate.
Thanks,
One of the issues I've just run into is what happens when you exit identity mapping mode. Essentially when in identity mapping you can just convert page table look ups from physical to linear as they are 1:1. When in any kind of real OS you won't have this property. When you look up an address in a hierarchy table that is a physical address according to the Intel manual and might not map to the linear address you need to edit the table.
How do people typically manage reverse mapping? Going from the physical address to the linear. I was planning on just explicitly capturing P4 but it seems this is inadequate.
Thanks,