Langsdorf, Mark
2007-May-02 17:12 UTC
[Xen-devel] MFN to hypervisor page table translation?
I have a chunk of memory in the hypervisor that I allocated with alloc_boot_low_pages(), which seems to return an MFN. I need to remove the chunk of memory from the hypervisor''s page tables, so that the processor cannot speculate into it while running the hypervisor. In Linux, I would call pdg_offset() and work my way down the page tables to to pte_offset_map. What are the equivalent function calls in Xen? What include file or source file should I be checking to better understand this process? Thanks in advance for any help. -Mark Langsdorf Operating System Research Center AMD _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Langsdorf, Mark
2007-May-07 11:58 UTC
[Xen-devel] MFN to hypervisor page table translation?
I have a chunk of memory in the hypervisor that I allocated with alloc_boot_low_pages(), which seems to return an MFN. I need to remove the chunk of memory from the hypervisor''s page tables, so that the processor cannot speculate into it while running the hypervisor. In Linux, I would call pdg_offset() and work my way down the page tables to to pte_offset_map. What are the equivalent function calls in Xen? What include file or source file should I be checking to better understand this process? Thanks in advance for any help. -Mark Langsdorf Operating System Research Center AMD _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2007-May-07 12:42 UTC
Re: [Xen-devel] MFN to hypervisor page table translation?
On 7/5/07 12:58, "Langsdorf, Mark" <mark.langsdorf@amd.com> wrote:> In Linux, I would call pdg_offset() and > work my way down the page tables to to > pte_offset_map. What are the equivalent > function calls in Xen? What include file > or source file should I be checking to > better understand this process? > > Thanks in advance for any help.There isnĀ¹t one. I would suggest you implement unmap_pages_from_xen(), and crib from map_pages_to_xen() for how to do so. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel