Skip to contentSkip to conversation

physdev: hide compatibility definitions for new enough interface version

PATCH Superseded Jan Beulich 2 participants 3 messages Jan 15, 2015 – Jan 19, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 physdev: hide compatibility definitions for new enough interface version

There's no point in continuing to expose those.

xen/include/public/physdev.h +2 -0
@@ -344,6 +344,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_
  */
 #define PHYSDEVOP_IRQ_UNMASK_NOTIFY      4
 
+#if __XEN_INTERFACE_VERSION__ < 0x00030202
 /*
  * These all-capitals physdev operation names are superceded by the new names
  * (defined above) since interface version 0x00030202.
@@ -357,6 +358,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_
 #define PHYSDEVOP_FREE_VECTOR            PHYSDEVOP_free_irq_vector
 #define PHYSDEVOP_IRQ_NEEDS_UNMASK_NOTIFY XENIRQSTAT_needs_eoi
 #define PHYSDEVOP_IRQ_SHARED             XENIRQSTAT_shared
+#endif
 
 #if __XEN_INTERFACE_VERSION__ < 0x00040200
 #define PHYSDEVOP_pirq_eoi_gmfn PHYSDEVOP_pirq_eoi_gmfn_v1

physdev: hide compatibility definitions for new enough interface version

There's no point in continuing to expose those.

xen/include/public/physdev.h +2 -0
@@ -344,6 +344,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_
  */
 #define PHYSDEVOP_IRQ_UNMASK_NOTIFY      4
 
+#if __XEN_INTERFACE_VERSION__ < 0x00030202
 /*
  * These all-capitals physdev operation names are superceded by the new names
  * (defined above) since interface version 0x00030202.
@@ -357,6 +358,7 @@ DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_
 #define PHYSDEVOP_FREE_VECTOR            PHYSDEVOP_free_irq_vector
 #define PHYSDEVOP_IRQ_NEEDS_UNMASK_NOTIFY XENIRQSTAT_needs_eoi
 #define PHYSDEVOP_IRQ_SHARED             XENIRQSTAT_shared
+#endif
 
 #if __XEN_INTERFACE_VERSION__ < 0x00040200
 #define PHYSDEVOP_pirq_eoi_gmfn PHYSDEVOP_pirq_eoi_gmfn_v1

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 1 line · Jan Beulich

There's no point in continuing to expose those.

There's a chance someone might have been using them for __XEN_INTERFACE_VERSION__ >= 0x00030202, I think.

Given that we missed the opportunity to gate these when the change was made we should probably use the current/next version to actually remove them, with a comment to explain.

Unless we are certain noone in the wild is actually using them.

Ian.

#2 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 19.01.15 at 11:36, <[email protected]> wrote:
Quoted 1 line · Jan Beulich

There's no point in continuing to expose those.

Quoted 8 lines

There's a chance someone might have been using them for __XEN_INTERFACE_VERSION__ >= 0x00030202, I think.

Given that we missed the opportunity to gate these when the change was made we should probably use the current/next version to actually remove them, with a comment to explain.

Unless we are certain noone in the wild is actually using them.

I guess you're right, will change.

Jan