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] xc_core_arch_map_p2m

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xc_core_arch_map_p2m
From: bhavani krishnan <bhavi63@xxxxxxxxx>
Date: Tue, 2 Dec 2008 14:29:36 -0800 (PST)
Delivery-date: Tue, 02 Dec 2008 14:30:01 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=hydPpqSkZ05RJM/aF3Z0PAdxCkuTJIfPvKvP2Hw2r1RCLmE+o7F87VL/SWeQ0q1WwuCQRe00v4VQzEq2MhO11OnS3s5mO/oFoIFTK45dnBmwUhn/MOFElgWpq6GN8BlOwerwx2Jamc7sVQK3DmFndu9olPHuZrkL7raMn9Ne7wk=;
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>
Reply-to: bhavi63@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I need to call xc_core_arch_map_p2m to get the pages for dom0. This is my code

 domctl.cmd=XEN_DOMCTL_getpageframeinfo;
 domctl.domain=0;

xc_domain_getinfo(xc_handle,0,1,&info);
live_shinfo = xc_map_foreign_range(xc_handle, info.domid,PAGE_SIZE,PROT_READ, 
info.shared_info_frame);
sts = xc_core_arch_map_p2m(xc_handle, &info, live_shinfo, &pfn, &p2m_size);

I get the following error for dom0.
xc_map_foreign_range: ioctl failed: Bad address

The same code runs for domU's. How do i get list of pfns for dom0?
Please help me out here.

Thanks,
Bhavani



      

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xc_core_arch_map_p2m, bhavani krishnan <=