From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: Stabilising some tools only HVMOPs? Date: Thu, 18 Feb 2016 16:49:03 +0000 Message-ID: <20160218164903.GK3723@citrix.com> References: <20160217172808.GB3723@citrix.com> <20160218125144.GI3723@citrix.com> <22213.61728.672908.181165@mariner.uk.xensource.com> <56C6022D02000078000D3C93@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aWRoq-00088K-Nw for xen-devel@lists.xenproject.org; Thu, 18 Feb 2016 16:52:44 +0000 Content-Disposition: inline In-Reply-To: <56C6022D02000078000D3C93@prv-mh.provo.novell.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: Jan Beulich Cc: Wei Liu , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , Paul Durrant , Anthony PERARD , Xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, Feb 18, 2016 at 09:41:01AM -0700, Jan Beulich wrote: > >>> On 18.02.16 at 17:28, wrote: > > Wei Liu writes ("Re: Stabilising some tools only HVMOPs?"): > >> I think we come to the conclusion that these HVMOPs should be made > >> stable. And to do so I'm going to introduce a __XEN_TOOLS_STABLE__ macro > >> for them to distinguish from __XEN_TOOLS__. And then libxendevicemodel > >> will have -D__XEN_TOOLS_STABLE__ only. > >> > >> Does this sound sufficient? > > > > It would be better to rename -D__XEN_TOOLS__ too, to > > -D__XEN_TOOLS_UNSTABLE. > > Even if a minor one, this will create a compatibility problem for > out of tree code including the headers: Their builds will all of > the sudden break, until they figure they need to go and > #define this new manifest symbol. Otoh maybe we would > actually like to break their builds this way, to make them aware > of the fact. In which case maybe __XEN_TOOLS__ should be > retained for the stable portions? > I think we should break their build but I also want to be a bit nicer. So off the top of my head, we can have something like: #if defined (__XEN_TOOLS__) # error "NOTE: if you want to continue to build against unstable tools interface, use __XEN_TOOLS_UNSTABLE__ instead" #endif And place this in public headers that used to have __XEN_TOOLS__. Wei. > Jan >