Skip to contentSkip to conversation

accessing page frame in xen

DISCUSSION pallavi jk 1 participant 1 message Jan 16, 2009

lore
Share & tools
lore

pallavi jk

author
#0 lore raw

I am trying to access a page belonging to dom0 userspace, inside xen and read its contents. I have written the following code:
*
page_pfn = l1e_get_pfn(pte_val);

hypervisor_va = map_domain_page(page_pfn);

for(i=0;i<4096;i++)

{
                printk("\n%x ",*(unsigned char*)(hypervisor_va+i));
}

unmap_domain_page(hypervisor_va);*

But my system is crashing when I try to do this. Am I missing something???...Where am I going wrong?

Thanx,
Pallavi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel