> -----Original Message-----
> From: Andrew Cooper [mailto:am...@hermes.cam.ac.uk] On Behalf Of
> Andrew Cooper
> Sent: 27 March 2017 09:16
> To: Paul Durrant <paul.durr...@citrix.com>; xen-de...@lists.xenproject.org
> Cc: Ian Jackson <ian.jack...@citrix.com>; Julien Grall
> <julien.gr...@arm.com>; Wei Liu <wei.l...@citrix.com>
> Subject: Re: [Xen-devel] [PATCH] tools/libxenforeignmemory: add a call to
> restrict the handle
> 
> On 27/03/2017 09:06, Paul Durrant wrote:
> >> -----Original Message-----
> >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of
> >> Paul Durrant
> >> Sent: 24 March 2017 20:24
> >> To: Andrew Cooper <andrew.coop...@citrix.com>; xen-
> >> de...@lists.xenproject.org
> >> Cc: Ian Jackson <ian.jack...@citrix.com>; Julien Grall
> >> <julien.gr...@arm.com>; Wei Liu <wei.l...@citrix.com>
> >> Subject: Re: [Xen-devel] [PATCH] tools/libxenforeignmemory: add a call
> to
> >> restrict the handle
> >>
> >>> -----Original Message-----
> >>> From: Andrew Cooper
> >>> Sent: 24 March 2017 20:10
> >>> To: Paul Durrant <paul.durr...@citrix.com>; xen-
> >> de...@lists.xenproject.org
> >>> Cc: Wei Liu <wei.l...@citrix.com>; Ian Jackson
> <ian.jack...@citrix.com>;
> >>> Julien Grall <julien.gr...@arm.com>
> >>> Subject: Re: [Xen-devel] [PATCH] tools/libxenforeignmemory: add a call
> to
> >>> restrict the handle
> >>>
> >>> On 22/03/17 11:25, Paul Durrant wrote:
> >>>> diff --git a/tools/libs/foreignmemory/libxenforeignmemory.map
> >>> b/tools/libs/foreignmemory/libxenforeignmemory.map
> >>>> index df206b3..5c9806c 100644
> >>>> --- a/tools/libs/foreignmemory/libxenforeignmemory.map
> >>>> +++ b/tools/libs/foreignmemory/libxenforeignmemory.map
> >>>> @@ -4,5 +4,6 @@ VERS_1.0 {
> >>>>                  xenforeignmemory_close;
> >>>>                  xenforeignmemory_map;
> >>>>                  xenforeignmemory_unmap;
> >>>> +                xenforeignmemory_restrict;
> >>>>          local: *; /* Do not expose anything by default */
> >>>>  };
> >>> This isn't correct.
> >>>
> >>> New functions like this need to bump at least the SO minor version, like
> >>> c/s f1446de4ba
> >>>
> >> Sorry, yes, I forgot these libraries are supposed to be stable now.
> >>
> >>> Fixing this is a blocker to releasing 4.9
> >>>
> >> I'll submit a patch on Monday.
> > Actually, on second thoughts, do we want to bump the version for all
> changes or just incompatible ones? I added a call here so it shouldn't break
> any older application compiling against this library.
> 
> You must bump the versions; the version information gets embedded as
> part of the dynamic linkage of the application built against
> libxenforeignmemory.
> 
> In particular, you need to prevent an application built now from
> referencing xenforeignmemory_restrict@1.0 because the version 1.0
> shipped in all earlier versions of Xen lacked this function.
> 
> Not bumping the version now will result in newer applications being
> built which the dynamic loader thinks will work with older versions of
> the library, rather than correctly identifying that a newer version of
> the library is required.
> 
> As with other things in staging, it can get away with only being bumped
> once per Xen release, but it must always be bumped at the first change.
> 

Ok. I'll send a patch today then.

  Paul

> ~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to