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

[Xen-devel] accessing page frame in xen


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: pallavi jk <pallutai@xxxxxxxxx>
  • Date: Fri, 16 Jan 2009 16:47:25 +0530
  • Delivery-date: Fri, 16 Jan 2009 03:17:49 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JPRm1dGOThChIMY6MrLHI2fL9OUVsRIcihw2SGuR0q+iw+M4jcxSC6DxW0cy+meFXd P5ZZ/KCwpRPy7/HuKAlKGcQW/j8xYmEj05g6s5VzTMtRM34OhBGyHZLzgGlU4TJd9NfO 4vhXk8d0700v6bKkyFijpP86F4BjsqgPUMiYM=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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
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®.