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

Re: [Xen-devel] [PATCH v3 7/8] libxc: add libxc support for setting grant table resource limits



On Wed, Sep 06, 2017 at 02:46:52PM +0200, Juergen Gross wrote:
> Add a new libxc function xc_domain_set_gnttbl_limits() setting the
> limits for the maximum numbers of grant table frames and maptrack
> frames of a domain.
> 
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> ---
>  tools/libxc/include/xenctrl.h | 14 ++++++++++++++
>  tools/libxc/xc_domain.c       | 13 +++++++++++++
>  2 files changed, 27 insertions(+)
> 
> diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h
> index 43151cb415..39b58cf5b7 100644
> --- a/tools/libxc/include/xenctrl.h
> +++ b/tools/libxc/include/xenctrl.h
> @@ -1064,6 +1064,20 @@ int xc_domain_set_virq_handler(xc_interface *xch, 
> uint32_t domid, int virq);
>  int xc_domain_set_max_evtchn(xc_interface *xch, uint32_t domid,
>                               uint32_t max_port);
>  
> +/**
> + * Set the maximum number of grant frames and/or maptrack frames a domain
> + * can have. Can only be used at domain setup time. A zero value means
> + * no change.
> + *
> + * @param xch a handle to an open hypervisor interface
> + * @param domid the domain id
> + * @param grant_frames max. number of grant frames
> + * @param maptrack_frames max. number of maptrack frames
> + */
> +int xc_domain_set_gnttab_limits(xc_interface *xch, uint32_t domid,

domid_t please

With that fixed:

Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

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

 


Rackspace

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