From: Razvan Cojocaru <rcojocaru@bitdefender.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: keir@xen.org, tim@xen.org, ian.jackson@eu.citrix.com,
ian.campbell@citrix.com, xen-devel@lists.xen.org
Subject: Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
Date: Wed, 30 Sep 2015 18:46:20 +0300 [thread overview]
Message-ID: <560C03CC.4010501@bitdefender.com> (raw)
In-Reply-To: <560C1E4402000078000A7324@prv-mh.provo.novell.com>
On 09/30/2015 06:39 PM, Jan Beulich wrote:
>>>> On 30.09.15 at 17:27, <rcojocaru@bitdefender.com> wrote:
>> On 09/30/2015 06:23 PM, Jan Beulich wrote:
>>>>>> On 30.09.15 at 17:16, <rcojocaru@bitdefender.com> wrote:
>>>> VM_EVENT_FLAG_SET_REGISTERS and xc_monitor_emulate_each_rep() are
>>>> not available in Xen 4.6, hence the bump.
>>>
>>> I don't follow: These are additions, not changes that require
>>> consumers to adapt their code.
>>
>> I have code that checks for __XEN_LATEST_INTERFACE_VERSION__ and if it
>> is 0x00040700 then it uses xc_monitor_emulate_each_rep(), otherwise it
>> knows it can't - I thought that consumers that want to make use of the
>> latest API should be able to tell that they're allowed to do so.
>>
>> But if the Xen convention is to only bump it when the interface is no
>> longer backward compatible then I've misunderstood (in which case, sorry
>> for the noise, and also, is there another way to tell which Xen version
>> I'm compiling against?).
>
> Just check for the relevant #define to be there.
That does work for VM_EVENT_FLAG_SET_REGISTERS in this case, but it
wouldn't have worked if the only addition would have been
xc_monitor_emulate_each_rep(). I like the XEN_VERSION and XEN_SUBVERSION
#defines in compile.h, but those don't make it into the public headers
(that end up in dist/install/usr/include after make dist).
But yes, in this case that #define is helpful, and then with autotools
or something similar libxc can be checked for xc_monitor_emulate_each_rep().
Again, sorry for the noise and thanks for the help.
Thanks,
Razvan
next prev parent reply other threads:[~2015-09-30 15:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 15:16 [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700 Razvan Cojocaru
2015-09-30 15:23 ` Jan Beulich
2015-09-30 15:27 ` Razvan Cojocaru
2015-09-30 15:39 ` Jan Beulich
2015-09-30 15:46 ` Razvan Cojocaru [this message]
2015-09-30 15:25 ` Julien Grall
2015-09-30 15:28 ` Razvan Cojocaru
2015-09-30 15:34 ` Jan Beulich
2015-09-30 15:38 ` Razvan Cojocaru
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=560C03CC.4010501@bitdefender.com \
--to=rcojocaru@bitdefender.com \
--cc=JBeulich@suse.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--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.