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

Re: [Xen-devel] [PATCH 5 of 7] Tools: libxc side for setting up the mem sharing ring



On Thu, 2012-02-23 at 06:05 +0000, Andres Lagar-Cavilla wrote:
> tools/libxc/xc_memshr.c |  25 +++++++++++++++++++++++++
>  tools/libxc/xenctrl.h   |   5 +++++
>  2 files changed, 30 insertions(+), 0 deletions(-)
> 
> 
> This ring is used to report failed allocations in the unshare path.
> 
> Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
> 
> diff -r 85157ed138a9 -r 9c6cbbe72dc4 tools/libxc/xc_memshr.c
> --- a/tools/libxc/xc_memshr.c
> +++ b/tools/libxc/xc_memshr.c
> @@ -42,6 +42,31 @@ int xc_memshr_control(xc_interface *xch,
>      return do_domctl(xch, &domctl);
>  }
>  
> +int xc_memshr_ring_enable(xc_interface *xch, 
> +                          domid_t domid, 
> +                          uint32_t *port)
> +{
> +    if ( !port )
> +    {
> +        errno = -EINVAL;

+ve. 

> +        return -1;
> +    }
> +        
> +    return xc_mem_event_control(xch, domid,
> +                                XEN_DOMCTL_MEM_EVENT_OP_SHARING_ENABLE,
> +                                XEN_DOMCTL_MEM_EVENT_OP_SHARING,
> +                                port);
> +}

Ian.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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