[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] xc_memory_op not found in Xen 4.1
On Thu, 2012-08-30 at 17:21 +0100, S. Shary wrote: > What will be the alternate for the following two situations of > xc_memory_op? > > 1. /* Get the size of the P2M table */ > //p2m_size = xc_memory_op(xc_handle, XENMEM_maximum_gpfn, &dom) + > 1; > > > 2. if ( xc_memory_op(xc_handle, XENMEM_machphys_mfn_list, &xmml) || > (xmml.nr_extents != m2p_chunks) ) > { > ERROR("xc_get_m2p_mfns"); > goto err1; > } > > > If i just substitute with xc_maximum_ram_page(xc_handle), would that > be correct? I doubt it, that calls a totally different hypercall to what you mention above. > I could not find xc_maximum_ram_page with more than one arguments to > substitute over here. Search for XENMEM_maximum_gpfn and XENMEM_machphys_mfn_list in the libxc source and you will easily find the correct wrappers for those functions. Ian. _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |