From: bhavani krishnan Subject: xc_core_arch_map_p2m Date: Tue, 2 Dec 2008 14:29:36 -0800 (PST) Message-ID: <284552.12357.qm@web53004.mail.re2.yahoo.com> Reply-To: bhavi63@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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