All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
@ 2015-09-30 15:16 Razvan Cojocaru
  2015-09-30 15:23 ` Jan Beulich
  2015-09-30 15:25 ` Julien Grall
  0 siblings, 2 replies; 9+ messages in thread
From: Razvan Cojocaru @ 2015-09-30 15:16 UTC (permalink / raw)
  To: xen-devel; +Cc: keir, ian.campbell, Razvan Cojocaru, tim, ian.jackson, jbeulich

VM_EVENT_FLAG_SET_REGISTERS and xc_monitor_emulate_each_rep() are
not available in Xen 4.6, hence the bump.

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
---
 xen/include/public/xen-compat.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/include/public/xen-compat.h b/xen/include/public/xen-compat.h
index 1e62dc1..590de76 100644
--- a/xen/include/public/xen-compat.h
+++ b/xen/include/public/xen-compat.h
@@ -27,7 +27,7 @@
 #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
 #define __XEN_PUBLIC_XEN_COMPAT_H__
 
-#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040600
+#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040700
 
 #if defined(__XEN__) || defined(__XEN_TOOLS__)
 /* Xen is built with matching headers and implements the latest interface. */
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  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:25 ` Julien Grall
  1 sibling, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2015-09-30 15:23 UTC (permalink / raw)
  To: Razvan Cojocaru; +Cc: keir, tim, ian.jackson, ian.campbell, xen-devel

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

Jan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  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:25 ` Julien Grall
  2015-09-30 15:28   ` Razvan Cojocaru
  1 sibling, 1 reply; 9+ messages in thread
From: Julien Grall @ 2015-09-30 15:25 UTC (permalink / raw)
  To: Razvan Cojocaru, xen-devel; +Cc: ian.jackson, tim, keir, ian.campbell, jbeulich

Hi,

On 30/09/15 16:16, Razvan Cojocaru wrote:
> VM_EVENT_FLAG_SET_REGISTERS and xc_monitor_emulate_each_rep() are
> not available in Xen 4.6, hence the bump.

Shouldn't you bump XEN_DOMCTL_INTERFACE_VERSION and
VM_EVENT_INTERFACE_VERSION instead?

The former for xc_monitor_emulate_each_read as it's a DOMCTL and the
latter for VM_EVENT_FLAG_SET_REGISTERS?

Regards,

-- 
Julien Grall

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  2015-09-30 15:23 ` Jan Beulich
@ 2015-09-30 15:27   ` Razvan Cojocaru
  2015-09-30 15:39     ` Jan Beulich
  0 siblings, 1 reply; 9+ messages in thread
From: Razvan Cojocaru @ 2015-09-30 15:27 UTC (permalink / raw)
  To: Jan Beulich; +Cc: keir, tim, ian.jackson, ian.campbell, xen-devel

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?).


Thanks,
Razvan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  2015-09-30 15:25 ` Julien Grall
@ 2015-09-30 15:28   ` Razvan Cojocaru
  2015-09-30 15:34     ` Jan Beulich
  0 siblings, 1 reply; 9+ messages in thread
From: Razvan Cojocaru @ 2015-09-30 15:28 UTC (permalink / raw)
  To: Julien Grall, xen-devel; +Cc: ian.jackson, tim, keir, ian.campbell, jbeulich

On 09/30/2015 06:25 PM, Julien Grall wrote:
> Hi,
> 
> On 30/09/15 16:16, Razvan Cojocaru wrote:
>> VM_EVENT_FLAG_SET_REGISTERS and xc_monitor_emulate_each_rep() are
>> not available in Xen 4.6, hence the bump.
> 
> Shouldn't you bump XEN_DOMCTL_INTERFACE_VERSION and
> VM_EVENT_INTERFACE_VERSION instead?
> 
> The former for xc_monitor_emulate_each_read as it's a DOMCTL and the
> latter for VM_EVENT_FLAG_SET_REGISTERS?

Yes, judging also by Jan's previous comment that would appear to be the
preferred way to go.


Thanks,
Razvan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  2015-09-30 15:28   ` Razvan Cojocaru
@ 2015-09-30 15:34     ` Jan Beulich
  2015-09-30 15:38       ` Razvan Cojocaru
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2015-09-30 15:34 UTC (permalink / raw)
  To: Razvan Cojocaru, Julien Grall
  Cc: keir, tim, ian.jackson, ian.campbell, xen-devel

>>> On 30.09.15 at 17:28, <rcojocaru@bitdefender.com> wrote:
> On 09/30/2015 06:25 PM, Julien Grall wrote:
>> Hi,
>> 
>> On 30/09/15 16:16, Razvan Cojocaru wrote:
>>> VM_EVENT_FLAG_SET_REGISTERS and xc_monitor_emulate_each_rep() are
>>> not available in Xen 4.6, hence the bump.
>> 
>> Shouldn't you bump XEN_DOMCTL_INTERFACE_VERSION and
>> VM_EVENT_INTERFACE_VERSION instead?
>> 
>> The former for xc_monitor_emulate_each_read as it's a DOMCTL and the
>> latter for VM_EVENT_FLAG_SET_REGISTERS?
> 
> Yes, judging also by Jan's previous comment that would appear to be the
> preferred way to go.

I can't talk about VM_EVENT_INTERFACE_VERSION, but I also
don't see any reason to bump XEN_DOMCTL_INTERFACE_VERSION
with the given change. Again - it's just an addition to the interface,
not an incompatible change.

Jan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  2015-09-30 15:34     ` Jan Beulich
@ 2015-09-30 15:38       ` Razvan Cojocaru
  0 siblings, 0 replies; 9+ messages in thread
From: Razvan Cojocaru @ 2015-09-30 15:38 UTC (permalink / raw)
  To: Jan Beulich, Julien Grall; +Cc: keir, tim, ian.jackson, ian.campbell, xen-devel

On 09/30/2015 06:34 PM, Jan Beulich wrote:
>>>> On 30.09.15 at 17:28, <rcojocaru@bitdefender.com> wrote:
>> On 09/30/2015 06:25 PM, Julien Grall wrote:
>>> Hi,
>>>
>>> On 30/09/15 16:16, Razvan Cojocaru wrote:
>>>> VM_EVENT_FLAG_SET_REGISTERS and xc_monitor_emulate_each_rep() are
>>>> not available in Xen 4.6, hence the bump.
>>>
>>> Shouldn't you bump XEN_DOMCTL_INTERFACE_VERSION and
>>> VM_EVENT_INTERFACE_VERSION instead?
>>>
>>> The former for xc_monitor_emulate_each_read as it's a DOMCTL and the
>>> latter for VM_EVENT_FLAG_SET_REGISTERS?
>>
>> Yes, judging also by Jan's previous comment that would appear to be the
>> preferred way to go.
> 
> I can't talk about VM_EVENT_INTERFACE_VERSION, but I also
> don't see any reason to bump XEN_DOMCTL_INTERFACE_VERSION
> with the given change. Again - it's just an addition to the interface,
> not an incompatible change.

The same is true for VM_EVENT_FLAG_SET_REGISTERS I'm afraid. Nothing at
all changes for existing vm_event users. In that case, I'll just leave
them all alone.

But the question still remains, if these markers are unreliable in my
case, could you please suggest another which I can check in my scenario?
__XEN_LATEST_INTERFACE_VERSION__ has been fine so far, but I now see
that this has only been a coincidence.


Thanks,
Razvan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  2015-09-30 15:27   ` Razvan Cojocaru
@ 2015-09-30 15:39     ` Jan Beulich
  2015-09-30 15:46       ` Razvan Cojocaru
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Beulich @ 2015-09-30 15:39 UTC (permalink / raw)
  To: Razvan Cojocaru; +Cc: keir, tim, ian.jackson, ian.campbell, xen-devel

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

Jan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] xen: Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040700
  2015-09-30 15:39     ` Jan Beulich
@ 2015-09-30 15:46       ` Razvan Cojocaru
  0 siblings, 0 replies; 9+ messages in thread
From: Razvan Cojocaru @ 2015-09-30 15:46 UTC (permalink / raw)
  To: Jan Beulich; +Cc: keir, tim, ian.jackson, ian.campbell, xen-devel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-09-30 15:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.