Re: [Xen-devel] [RFC v2 08/12] tools: create general interfaces to support psr allocation features.

2017-08-01 Thread Wei Liu
On Tue, Aug 01, 2017 at 08:56:19AM +0800, Yi Sun wrote: > > > + > > > +libxl_psr_hw_info = Struct("psr_hw_info", [ > > > +("id", uint32), > > > +("u", KeyedUnion(None, libxl_psr_feat_type, "type", > > > + [("cat_info", Struct(None, [ > > > +

Re: [Xen-devel] [RFC v2 08/12] tools: create general interfaces to support psr allocation features.

2017-07-31 Thread Yi Sun
On 17-07-31 15:30:08, Wei Liu wrote: > On Thu, Jul 20, 2017 at 04:49:09PM +0800, Yi Sun wrote: > [...] > > + > > +#ifdef LIBXL_HAVE_PSR_MBA > > +/* > > + * Function to set a domain's value. It operates on a single or multiple > > + * target(s) defined in 'target_map'. 'target_map' specifies all

Re: [Xen-devel] [RFC v2 08/12] tools: create general interfaces to support psr allocation features.

2017-07-31 Thread Wei Liu
On Thu, Jul 20, 2017 at 04:49:09PM +0800, Yi Sun wrote: [...] > + > +#ifdef LIBXL_HAVE_PSR_MBA > +/* > + * Function to set a domain's value. It operates on a single or multiple > + * target(s) defined in 'target_map'. 'target_map' specifies all the sockets > + * to be operated on. > + */ > +int

[Xen-devel] [RFC v2 08/12] tools: create general interfaces to support psr allocation features.

2017-07-20 Thread Yi Sun
This patch creates general interfaces in libxl to support all psr allocation features. Add 'LIBXL_HAVE_PSR_MBA' to indicate interface change. Please note, the functionality cannot work until later patches are applied. Signed-off-by: Yi Sun --- tools/libxl/libxl.h