[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] xc_memory_op not found in Xen 4.1



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 could not find xc_maximum_ram_page with more than one arguments to substitute over here.

Thanks,
Regards,
Shary




> Subject: Re: [Xen-users] xc_memory_op not found in Xen 4.1
> From: Ian.Campbell@xxxxxxxxxx
> To: justsshary@xxxxxxxxxxx
> CC: xen-users@xxxxxxxxxxxxx
> Date: Thu, 30 Aug 2012 07:45:44 +0100
>
> On Thu, 2012-08-30 at 02:24 +0100, S. Shary wrote:
> > Hi,
> >
> > I am trying to compile a program on Xen 4.1 which was working with Xen
> > 3.4 .
> > I am getting an error when g++ compiler tries to compile the following
> > line:
> >
> > *max_mfn = xc_memory_op(xc_handle, XENMEM_maximum_ram_page, NULL);
> >
> >
> > Error is:
> >
> > error: ‘xc_memory_op’ was not declared in this scope
> >
> >
> > I have searched in all the header files of libXen but I couldn't find
> > this function. Is this function deprecated? If it is then what is the
> > alternate in Xen 4.1?
>
> You should use the specific function for the op you are interested in
> (in this case xc_maximum_ram_page) rather than the lower level function
> (which is now internal).
>
> Ian.
>
>
>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.