All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Fehlig <jfehlig@suse.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "George.Dunlap@citix.com" <George.Dunlap@citix.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Rob Hoes <Rob.Hoes@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH] libxl: unconst the event argument to the event_occurs hook.
Date: Tue, 30 Apr 2013 16:47:58 -0600	[thread overview]
Message-ID: <51804A1E.8030700@suse.com> (raw)
In-Reply-To: <1367315020.3142.460.camel@zakaz.uk.xensource.com>

Ian Campbell wrote:
> On Tue, 2013-04-30 at 05:24 +0100, Jim Fehlig wrote:
>   
>>> Looking at this again today this happens to be true if LIBXL_API_VERSION
>>> is undefined but I wonder if we ought to explicitly define
>>> LIBXL_API_VERSION to 0xffffff if the user doesn't supply it?
>>>   
>>>       
>> Ah, good point.  But setting LIBXL_API_VERSION to 0xffffffff if the app
>> doesn't supply it means the app, which e.g. built fine on 4.2, would no
>> longer compile on 4.3 right?
>>     
>
> Yes, this is the same as if LIBXL_API_VERSION remains undefined though,
> an app which doesn't ask for a specific version automatically gets the
> latest version.
>
> From libxl.h:
>
>  * In order to make such compatibility possible it is required that
>  * application which want to be exposed to a particular API #define
>  * LIBXL_API_VERSION before including libxl.h or any other libxl
>  * header. The syntax of the LIBXL_API_VERSION is:
>  *    0xVVSSEE
>  * where ($(XEN_xxx) from xen/Makefile):
>  *   VV is the Xen major release number, $(XEN_VERSION)
>  *   SS is the Xen sub version number, $(XEN_SUBVERSION)
>  *   EE is the Xen extra version digit, first numeric part of
>  *     $(XEN_EXTRAVERSION) not including the leading "."
>  * For example the first stable API version, supported by Xen 4.2.0,
>  * is 0x040200.
>  *
>  * Lack of LIBXL_API_VERSION means "the latest" which will
>  * change. Specifying an unknown LIBXL_API_VERSION will result in a
>  * compile time error.
> (the whole comment is probably worth a read)
>   

Yes, I did read it (again) :). And a later paragraph in the comment
explains bumping the version on the first incompatible change

* These guarantees apply only to stable releases of Xen. When an
* incompatible change is made in the unstable tree then
* LIBXL_API_VERSION will be bumped to the next expected stable
* release number on the first such change only.

which addresses my comment earlier in this thread about the version bump
being in a separate patch.

> If you are concerned about supporting 4.2 onwards then you need to
> #define LIBXL_API_VERSION to 0x040200.
>   

Yes, understood.

Regards,
Jim

  reply	other threads:[~2013-04-30 22:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 11:42 [PATCH] libxl: unconst the event argument to the event_occurs hook Ian Campbell
2013-04-26 21:22 ` Jim Fehlig
2013-04-29  8:16   ` Ian Campbell
2013-04-30  4:24     ` Jim Fehlig
2013-04-30  9:43       ` Ian Campbell
2013-04-30 22:47         ` Jim Fehlig [this message]
2013-04-29  8:20   ` Ian Campbell
2013-05-01 10:48   ` [PATCH] libxl: unconst the event argument to the event_occurs hook. [and 1 more messages] Ian Jackson
2013-05-01 12:33     ` Ian Campbell
2013-04-29 10:04 ` [PATCH] libxl: unconst the event argument to the event_occurs hook George Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51804A1E.8030700@suse.com \
    --to=jfehlig@suse.com \
    --cc=George.Dunlap@citix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=Rob.Hoes@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.