Skip to contentSkip to conversation

xc_core_arch_map_p2m

DISCUSSION bhavani krishnan 1 participant 1 message Dec 2, 2008

lore
Share & tools
lore
#0 lore raw

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