From: Ian Campbell Subject: Re: [PATCH v8 6/6] tools: enable Cache QoS Monitoring feature for libxl/libxc Date: Tue, 18 Feb 2014 10:45:05 +0000 Message-ID: <1392720305.11080.18.camel@kazak.uk.xensource.com> References: <1391836058-81430-1-git-send-email-dongxiao.xu@intel.com> <1391836058-81430-7-git-send-email-dongxiao.xu@intel.com> <1392027356.5117.21.camel@kazak.uk.xensource.com> <40776A41FC278F40B59438AD47D147A911947E8E@SHSMSX104.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <40776A41FC278F40B59438AD47D147A911947E8E@SHSMSX104.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Xu, Dongxiao" Cc: "keir@xen.org" , "stefano.stabellini@eu.citrix.com" , "andrew.cooper3@citrix.com" , "Ian.Jackson@eu.citrix.com" , "xen-devel@lists.xen.org" , "JBeulich@suse.com" , "dgdegra@tycho.nsa.gov" List-Id: xen-devel@lists.xenproject.org On Mon, 2014-02-17 at 06:11 +0000, Xu, Dongxiao wrote: > > -----Original Message----- > > From: Xu, Dongxiao > > Sent: Monday, February 10, 2014 7:19 PM > > To: Ian Campbell > > Cc: xen-devel@lists.xen.org; keir@xen.org; JBeulich@suse.com; > > Ian.Jackson@eu.citrix.com; stefano.stabellini@eu.citrix.com; > > andrew.cooper3@citrix.com; konrad.wilk@oracle.com; dgdegra@tycho.nsa.gov > > Subject: RE: [PATCH v8 6/6] tools: enable Cache QoS Monitoring feature for > > libxl/libxc > > > > > > diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl > > > > index 649ce50..43c0f48 100644 > > > > --- a/tools/libxl/libxl_types.idl > > > > +++ b/tools/libxl/libxl_types.idl > > > > @@ -596,3 +596,10 @@ libxl_event = Struct("event",[ > > > > ])), > > > > ("domain_create_console_available", Struct(None, [])), > > > > ]))]) > > > > + > > > > +libxl_cqminfo = Struct("cqminfo", [ > > > > > > You need to also patch libxl.h to add a suitable LIBXL_HAVE_FOO define, > > > see the existing examples in that header. > > > > OK. > > Hi Ian, > > Just had another look at the comments: > > * In the event that a change is required which cannot be made > * backwards compatible in this manner a #define of the form > * LIBXL_HAVE_ will always be added in order to make it > * possible to write applciations which build against any version of > * libxl. Such changes are expected to be exceptional and used as a > * last resort. The barrier for backporting such a change to a stable > * branch will be very high. > > LIBXL_HAVE_ is to address the back compatibility issue, and > mostly it is used in cases like "adding a new field to the existing > data structure". > > In this patch, the libxl_cqminfo is a new added data structure, and it > seems that there is no such compatibility issue. Do we really need to > add the LIBXL_HAVE_ macro? I think so -- so that consumers of the libxl API know that it is available to be used. The fact that it is an entire struct rather than a new field doesn't make a difference here I think. Ian.