WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] accessing page frame in xen

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] accessing page frame in xen
From: pallavi jk <pallutai@xxxxxxxxx>
Date: Fri, 16 Jan 2009 16:47:25 +0530
Delivery-date: Fri, 16 Jan 2009 03:17:49 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=VupXHsdam1QMvMhBGAHxlA48WYpbnpBjjzAvVDzu1j4=; b=TTKTGY69cqgoZpVtrxOeyOLJX/Bk8gLzIEJFl9A60Oh6OOfqlcHPOJVzcb7upDb7bn NwZAG3btCEVAdhswNRntebKoXnRyU7fd/cXsLit2banT85QZsgUtrnyqYDEDkACHjeuL HqTAbS3We4pTor93rzJKd83XopnnK2CZtYRy4=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] accessing page frame in xen, pallavi jk <=