All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
@ 2019-02-15 10:02 Paul Durrant
  2019-02-15 10:31 ` Paul Durrant
  2019-02-15 11:16 ` Wei Liu
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Durrant @ 2019-02-15 10:02 UTC (permalink / raw)
  To: xen-devel; +Cc: Wei Liu, Paul Durrant, Ian Jackson

Commit e3b93b3c595 "dmop: add xendevicemodel_modified_memory_bulk()" added
the implementation to the library almost 2 years ago, but the function
was not included in the map file, essentially making it useless. This
patch rectifies the situation.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
---
 tools/libs/devicemodel/Makefile              | 2 +-
 tools/libs/devicemodel/libxendevicemodel.map | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/tools/libs/devicemodel/Makefile b/tools/libs/devicemodel/Makefile
index 5b2df7a18e..73cff6dbc4 100644
--- a/tools/libs/devicemodel/Makefile
+++ b/tools/libs/devicemodel/Makefile
@@ -2,7 +2,7 @@ XEN_ROOT = $(CURDIR)/../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
 MAJOR    = 1
-MINOR    = 2
+MINOR    = 3
 SHLIB_LDFLAGS += -Wl,--version-script=libxendevicemodel.map
 
 CFLAGS   += -Werror -Wmissing-prototypes
diff --git a/tools/libs/devicemodel/libxendevicemodel.map b/tools/libs/devicemodel/libxendevicemodel.map
index 04797b239d..561c62deb4 100644
--- a/tools/libs/devicemodel/libxendevicemodel.map
+++ b/tools/libs/devicemodel/libxendevicemodel.map
@@ -33,3 +33,8 @@ VERS_1.2 {
 		xendevicemodel_relocate_memory;
 		xendevicemodel_pin_memory_cacheattr;
 } VERS_1.1;
+
+VERS_1.3 {
+	global:
+		xendevicemodel_modified_memory_bulk;
+} VERS_1.2;
-- 
2.20.1.2.gb21ebb671


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
  2019-02-15 10:02 [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map Paul Durrant
@ 2019-02-15 10:31 ` Paul Durrant
  2019-02-15 11:27   ` Ian Jackson
  2019-02-15 12:05   ` Juergen Gross
  2019-02-15 11:16 ` Wei Liu
  1 sibling, 2 replies; 7+ messages in thread
From: Paul Durrant @ 2019-02-15 10:31 UTC (permalink / raw)
  To: Paul Durrant, xen-devel; +Cc: jgross, Ian Jackson, Wei Liu

Cc-ing Juergen, in case this can make 4.12...

> -----Original Message-----
> From: Paul Durrant [mailto:paul.durrant@citrix.com]
> Sent: 15 February 2019 10:02
> To: xen-devel@lists.xenproject.org
> Cc: Paul Durrant <Paul.Durrant@citrix.com>; Ian Jackson
> <Ian.Jackson@citrix.com>; Wei Liu <wei.liu2@citrix.com>
> Subject: [PATCH] tools/libxendevicemodel: add
> xendevicemodel_modified_memory_bulk to map
> 
> Commit e3b93b3c595 "dmop: add xendevicemodel_modified_memory_bulk()" added
> the implementation to the library almost 2 years ago, but the function
> was not included in the map file, essentially making it useless. This
> patch rectifies the situation.
> 
> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
> ---
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Wei Liu <wei.liu2@citrix.com>
> ---
>  tools/libs/devicemodel/Makefile              | 2 +-
>  tools/libs/devicemodel/libxendevicemodel.map | 5 +++++
>  2 files changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/libs/devicemodel/Makefile
> b/tools/libs/devicemodel/Makefile
> index 5b2df7a18e..73cff6dbc4 100644
> --- a/tools/libs/devicemodel/Makefile
> +++ b/tools/libs/devicemodel/Makefile
> @@ -2,7 +2,7 @@ XEN_ROOT = $(CURDIR)/../../..
>  include $(XEN_ROOT)/tools/Rules.mk
> 
>  MAJOR    = 1
> -MINOR    = 2
> +MINOR    = 3
>  SHLIB_LDFLAGS += -Wl,--version-script=libxendevicemodel.map
> 
>  CFLAGS   += -Werror -Wmissing-prototypes
> diff --git a/tools/libs/devicemodel/libxendevicemodel.map
> b/tools/libs/devicemodel/libxendevicemodel.map
> index 04797b239d..561c62deb4 100644
> --- a/tools/libs/devicemodel/libxendevicemodel.map
> +++ b/tools/libs/devicemodel/libxendevicemodel.map
> @@ -33,3 +33,8 @@ VERS_1.2 {
>  		xendevicemodel_relocate_memory;
>  		xendevicemodel_pin_memory_cacheattr;
>  } VERS_1.1;
> +
> +VERS_1.3 {
> +	global:
> +		xendevicemodel_modified_memory_bulk;
> +} VERS_1.2;
> --
> 2.20.1.2.gb21ebb671


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
  2019-02-15 10:02 [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map Paul Durrant
  2019-02-15 10:31 ` Paul Durrant
@ 2019-02-15 11:16 ` Wei Liu
  1 sibling, 0 replies; 7+ messages in thread
From: Wei Liu @ 2019-02-15 11:16 UTC (permalink / raw)
  To: Paul Durrant; +Cc: xen-devel, Ian Jackson, Wei Liu

On Fri, Feb 15, 2019 at 10:02:00AM +0000, Paul Durrant wrote:
> Commit e3b93b3c595 "dmop: add xendevicemodel_modified_memory_bulk()" added
> the implementation to the library almost 2 years ago, but the function
> was not included in the map file, essentially making it useless. This
> patch rectifies the situation.
> 
> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>

Acked-by: Wei Liu <wei.liu2@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
  2019-02-15 10:31 ` Paul Durrant
@ 2019-02-15 11:27   ` Ian Jackson
  2019-02-15 11:29     ` Paul Durrant
  2019-02-15 12:05   ` Juergen Gross
  1 sibling, 1 reply; 7+ messages in thread
From: Ian Jackson @ 2019-02-15 11:27 UTC (permalink / raw)
  To: Paul Durrant; +Cc: jgross, xen-devel, Wei Liu

Paul Durrant writes ("RE: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map"):
> Cc-ing Juergen, in case this can make 4.12...

I think this should go into 4.12.  It is very low risk.

In another case there would possibly be questions about whether we
wanted to add an additional ABI/API stability promise, but in this
case this is not an issue.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
  2019-02-15 11:27   ` Ian Jackson
@ 2019-02-15 11:29     ` Paul Durrant
  2019-02-15 11:39       ` Ian Jackson
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Durrant @ 2019-02-15 11:29 UTC (permalink / raw)
  To: Ian Jackson; +Cc: jgross, xen-devel, Wei Liu

> -----Original Message-----
> From: Ian Jackson [mailto:ian.jackson@citrix.com]
> Sent: 15 February 2019 11:27
> To: Paul Durrant <Paul.Durrant@citrix.com>
> Cc: xen-devel@lists.xenproject.org; Wei Liu <wei.liu2@citrix.com>;
> jgross@suse.com
> Subject: RE: [PATCH] tools/libxendevicemodel: add
> xendevicemodel_modified_memory_bulk to map
> 
> Paul Durrant writes ("RE: [PATCH] tools/libxendevicemodel: add
> xendevicemodel_modified_memory_bulk to map"):
> > Cc-ing Juergen, in case this can make 4.12...
> 
> I think this should go into 4.12.  It is very low risk.
> 
> In another case there would possibly be questions about whether we
> wanted to add an additional ABI/API stability promise, but in this
> case this is not an issue.

No, indeed.

Perhaps it would be possible to build some sort of cross-check that all functions listed in the public header of a library are actually *somewhere* in the map file, so this doesn't happen in future.

  Paul

> 
> Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
  2019-02-15 11:29     ` Paul Durrant
@ 2019-02-15 11:39       ` Ian Jackson
  0 siblings, 0 replies; 7+ messages in thread
From: Ian Jackson @ 2019-02-15 11:39 UTC (permalink / raw)
  To: Paul Durrant; +Cc: jgross, xen-devel, Wei Liu

Paul Durrant writes ("RE: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map"):
> Perhaps it would be possible to build some sort of cross-check that all functions listed in the public header of a library are actually *somewhere* in the map file, so this doesn't happen in future.

I wouldn't stand in the way of that, but presumably functions are
usually added because someone wants to call them so it would often be
spotted anyway, and the consequences of a mistake here are fairly
minor.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

* Re: [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map
  2019-02-15 10:31 ` Paul Durrant
  2019-02-15 11:27   ` Ian Jackson
@ 2019-02-15 12:05   ` Juergen Gross
  1 sibling, 0 replies; 7+ messages in thread
From: Juergen Gross @ 2019-02-15 12:05 UTC (permalink / raw)
  To: Paul Durrant, xen-devel; +Cc: Ian Jackson, Wei Liu

On 15/02/2019 11:31, Paul Durrant wrote:
> Cc-ing Juergen, in case this can make 4.12...
> 
>> -----Original Message-----
>> From: Paul Durrant [mailto:paul.durrant@citrix.com]
>> Sent: 15 February 2019 10:02
>> To: xen-devel@lists.xenproject.org
>> Cc: Paul Durrant <Paul.Durrant@citrix.com>; Ian Jackson
>> <Ian.Jackson@citrix.com>; Wei Liu <wei.liu2@citrix.com>
>> Subject: [PATCH] tools/libxendevicemodel: add
>> xendevicemodel_modified_memory_bulk to map
>>
>> Commit e3b93b3c595 "dmop: add xendevicemodel_modified_memory_bulk()" added
>> the implementation to the library almost 2 years ago, but the function
>> was not included in the map file, essentially making it useless. This
>> patch rectifies the situation.
>>
>> Signed-off-by: Paul Durrant <paul.durrant@citrix.com>

Release-acked-by: Juergen Gross <jgross@suse.com>


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

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

end of thread, other threads:[~2019-02-15 12:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15 10:02 [PATCH] tools/libxendevicemodel: add xendevicemodel_modified_memory_bulk to map Paul Durrant
2019-02-15 10:31 ` Paul Durrant
2019-02-15 11:27   ` Ian Jackson
2019-02-15 11:29     ` Paul Durrant
2019-02-15 11:39       ` Ian Jackson
2019-02-15 12:05   ` Juergen Gross
2019-02-15 11:16 ` Wei Liu

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.