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

[Xen-devel] Guest page table dumping



Hello List,

I'm trying to get at the guest's (x86_64 VMX HVM guest, x86_64 Xen 3.0.4-1) view of the page tables and dump them out so I can read them offline. My strategy to do this is to add a domctl I can use to map the domain page that corresponds to the guest's page table page (for right now just the top level page table, PML4) then dump out that page to dom0 so I can process it. I've got the skeleton domctl working but the trouble is I don't know exactly how I should transform the guests view of the CR3 address in order for map_domain_page() to be happy.

What transformation should I use to get vmx.cpu_cr3 into a happy address for use with map_domain_page(). My best guess so far is map_domain_page(gmfn_to_mfn(d, v->arch.hvm_cpu.u.vmx.cpu_cr3 >> PAGE_SHIFT)), is that in the ballpark?

Is cpu_cr3 the correct cr3 to use to get at the level 4 guest page table?

Would it be easier to dump the shadow representation of the l4 page table?

TIA,
-Travis
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.