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

Re: [Xen-devel] [PATCH 2/3] x86: add support for L2 CAT in hypervisor.



On 16-09-06 01:43:22, Jan Beulich wrote:
> >>> On 25.08.16 at 07:22, <yi.y.sun@xxxxxxxxxxxxxxx> wrote:
> 
> Please extend the comments given for patch 1 to this one. Just one
> extra thing:
> 
> > @@ -743,7 +744,7 @@ struct xen_sysctl_psr_cat_op {
> >              uint32_t cos_max;   /* OUT: Maximum COS */
> >  #define XEN_SYSCTL_PSR_CAT_L3_CDP       (1u << 0)
> >              uint32_t flags;     /* OUT: CAT flags */
> > -        } l3_info;
> > +        } info;
> 
> Such an adjustment breaks the tools build, i.e. can't come without
> also minimally adjusting libxc.
> 
> Jan
I thought 4.8 will also make tools version upgrade but not considered
to be compatible with old tools. Sorry for that.

Considering the compatibility and to support future feature, I want to
add a general structure in union, like below. How do you think? Thanks!

    union {
        struct {
            uint32_t cbm_len;   /* OUT: CBM length */
            uint32_t cos_max;   /* OUT: Maximum COS */
#define XEN_SYSCTL_PSR_CAT_L3_CDP       (1u << 0)
            uint32_t flags;     /* OUT: CAT flags */
        } l3_info;

        struct {
            uint32_t cbm_len;
            uint32_t cos_max;
            uint32_t data;     /* Specific data of feature */
        } psr_info;
    } u;


_______________________________________________
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®.