Skip to contentSkip to conversation

libs/devicemodel: Fix ABI breakage from xendevicemodel_set_irq_level()

PATCH In review Andrew Cooper 3 participants 4 messages Feb 4, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libs/devicemodel: Fix ABI breakage from xendevicemodel_set_irq_level()

It is not permitted to edit the VERS clause for a version in a release of Xen.

Revert xendevicemodel_set_irq_level()'s inclusion in .so.1.2 and bump the the library minor version to .so.1.4 instead.

Fixes 5d752df85f ("xen/dm: Introduce xendevicemodel_set_irq_level DM op")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Oleksandr Tyshchenko <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Chen <[email protected]>

Critical to include in 4.15, as this is an ABI breakage. Reverting the broken change doesn't look to be a practical option.

---
 tools/libs/devicemodel/Makefile              | 2 +-
 tools/libs/devicemodel/libxendevicemodel.map | 6 +++++-
 2 files changed, 6 insertions(+), 2 deletions(-)
tools/libs/devicemodel/Makefile +1 -1
index 500de7adc5..3e50ff6d90 100644
@@ -2,7 +2,7 @@ XEN_ROOT = $(CURDIR)/../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
 MAJOR    = 1
-MINOR    = 3
+MINOR    = 4
 
 SRCS-y                 += core.c
 SRCS-$(CONFIG_Linux)   += common.c
tools/libs/devicemodel/libxendevicemodel.map +5 -1
index a0c30125de..733549327b 100644
@@ -32,10 +32,14 @@ VERS_1.2 {
 	global:
 		xendevicemodel_relocate_memory;
 		xendevicemodel_pin_memory_cacheattr;
-		xendevicemodel_set_irq_level;
 } VERS_1.1;
 
 VERS_1.3 {
 	global:
 		xendevicemodel_modified_memory_bulk;
 } VERS_1.2;
+
+VERS_1.4 {
+	global:
+		xendevicemodel_set_irq_level;
+} VERS_1.3;
Signature · 1 line
2.11.0
#1 lore raw

On 04.02.21 17:58, Andrew Cooper wrote:

Hi Andrew

Quoted 15 lines

It is not permitted to edit the VERS clause for a version in a release of Xen.

Revert xendevicemodel_set_irq_level()'s inclusion in .so.1.2 and bump the the library minor version to .so.1.4 instead.

Fixes 5d752df85f ("xen/dm: Introduce xendevicemodel_set_irq_level DM op")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Oleksandr Tyshchenko <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Chen <[email protected]>

Quoted 1 line

Critical to include in 4.15, as this is an ABI breakage.

I am sorry for the breakage, I admit I didn't know that
"It is not permitted to edit the VERS clause for a version in a release of Xen."

Quoted 40 lines

Reverting the broken
change doesn't look to be a practical option.

---
  tools/libs/devicemodel/Makefile              | 2 +-
  tools/libs/devicemodel/libxendevicemodel.map | 6 +++++-
  2 files changed, 6 insertions(+), 2 deletions(-)
tools/libs/devicemodel/Makefile +1 -1
index 500de7adc5..3e50ff6d90 100644
@@ -2,7 +2,7 @@ XEN_ROOT = $(CURDIR)/../../..
  include $(XEN_ROOT)/tools/Rules.mk
 
  MAJOR    = 1
-MINOR    = 3
+MINOR    = 4
 
  SRCS-y                 += core.c
  SRCS-$(CONFIG_Linux)   += common.c
tools/libs/devicemodel/libxendevicemodel.map +5 -1
index a0c30125de..733549327b 100644
@@ -32,10 +32,14 @@ VERS_1.2 {
  	global:
  		xendevicemodel_relocate_memory;
  		xendevicemodel_pin_memory_cacheattr;
-		xendevicemodel_set_irq_level;
  } VERS_1.1;
 
  VERS_1.3 {
  	global:
  		xendevicemodel_modified_memory_bulk;
  } VERS_1.2;
+
+VERS_1.4 {
+	global:
+		xendevicemodel_set_irq_level;
+} VERS_1.3;
Signature · 3 lines
Regards,

Oleksandr Tyshchenko
#2 lore raw
Quoted 23 lines · Oleksandr

On 04.02.21 17:58, Andrew Cooper wrote:

Hi Andrew

Quoted 18 lines

It is not permitted to edit the VERS clause for a version in a release of Xen.

Revert xendevicemodel_set_irq_level()'s inclusion in .so.1.2 and bump the the
library minor version to .so.1.4 instead.

Fixes 5d752df85f ("xen/dm: Introduce xendevicemodel_set_irq_level DM

op")

---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
CC: Oleksandr Tyshchenko <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Chen <[email protected]>

Quoted 4 lines
Quoted 1 line

Critical to include in 4.15, as this is an ABI breakage.

I am sorry for the breakage, I admit I didn't know that "It is not permitted to edit the VERS clause for a version in a release of Xen."

To be honest, its not Xen specific.  Its any shared object with a stable API/ABI.

It is explicitly fine to bump the minor version to add new things, but you must never change the ABI of one which has been released.

~Andrew

Reviewed-by on v1 1/1
#3 lore raw
In reply to Andrew Cooper

Andrew Cooper writes ("[PATCH for-4.15] libs/devicemodel: Fix ABI breakage from xendevicemodel_set_irq_level()"):

Quoted 7 lines

It is not permitted to edit the VERS clause for a version in a release of Xen.

Revert xendevicemodel_set_irq_level()'s inclusion in .so.1.2 and bump the the library minor version to .so.1.4 instead.

Fixes 5d752df85f ("xen/dm: Introduce xendevicemodel_set_irq_level DM op")

Sorry for not spotting this earlier.