From: "Jan Beulich" Subject: [PATCH v2] physdev: hide compatibility definitions for new enough interface version Date: Mon, 19 Jan 2015 15:14:58 +0000 Message-ID: <54BD2D82020000780005683E@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartFCC91862.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YDE2h-0003uE-Ix for xen-devel@lists.xenproject.org; Mon, 19 Jan 2015 15:15:03 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Campbell , Keir Fraser , Ian Jackson , Tim Deegan List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartFCC91862.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline There's no point in continuing to expose those. Signed-off-by: Jan Beulich --- v2: Gate on version < 4.6, as people may have been using them despite being deprecated (pointed out by Ian C), which in turn calls for bumping __XEN_LATEST_INTERFACE_VERSION__. --- a/xen/include/public/physdev.h +++ b/xen/include/public/physdev.h @@ -344,9 +344,11 @@ DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_ */ #define PHYSDEVOP_IRQ_UNMASK_NOTIFY 4 =20 +#if __XEN_INTERFACE_VERSION__ < 0x00040600 /* * These all-capitals physdev operation names are superceded by the new = names - * (defined above) since interface version 0x00030202. + * (defined above) since interface version 0x00030202. The guard above = was + * added post-4.5 only though and hence shouldn't check for 0x00030202. */ #define PHYSDEVOP_IRQ_STATUS_QUERY PHYSDEVOP_irq_status_query #define PHYSDEVOP_SET_IOPL PHYSDEVOP_set_iopl @@ -357,6 +359,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 =20 #if __XEN_INTERFACE_VERSION__ < 0x00040200 #define PHYSDEVOP_pirq_eoi_gmfn PHYSDEVOP_pirq_eoi_gmfn_v1 --- 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__ =20 -#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040400 +#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040600 =20 #if defined(__XEN__) || defined(__XEN_TOOLS__) /* Xen is built with matching headers and implements the latest interface.= */ --=__PartFCC91862.1__= Content-Type: text/plain; name="physdev-hide-old.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="physdev-hide-old.patch" physdev: hide compatibility definitions for new enough interface version=0A= =0AThere's no point in continuing to expose those.=0A=0ASigned-off-by: Jan = Beulich =0A---=0Av2: Gate on version < 4.6, as people = may have been using them despite=0A being deprecated (pointed out by = Ian C), which in turn calls for=0A bumping __XEN_LATEST_INTERFACE_VERSIO= N__.=0A=0A--- a/xen/include/public/physdev.h=0A+++ b/xen/include/public/phy= sdev.h=0A@@ -344,9 +344,11 @@ DEFINE_XEN_GUEST_HANDLE(physdev_dbgp_op_=0A = */=0A #define PHYSDEVOP_IRQ_UNMASK_NOTIFY 4=0A =0A+#if __XEN_INTERFACE= _VERSION__ < 0x00040600=0A /*=0A * These all-capitals physdev operation = names are superceded by the new names=0A- * (defined above) since = interface version 0x00030202.=0A+ * (defined above) since interface = version 0x00030202. The guard above was=0A+ * added post-4.5 only though = and hence shouldn't check for 0x00030202.=0A */=0A #define PHYSDEVOP_IRQ_S= TATUS_QUERY PHYSDEVOP_irq_status_query=0A #define PHYSDEVOP_SET_IOPL = PHYSDEVOP_set_iopl=0A@@ -357,6 +359,7 @@ DEFINE_XEN_GUEST_HAN= DLE(physdev_dbgp_op_=0A #define PHYSDEVOP_FREE_VECTOR PHYSDEVOP_= free_irq_vector=0A #define PHYSDEVOP_IRQ_NEEDS_UNMASK_NOTIFY XENIRQSTAT_nee= ds_eoi=0A #define PHYSDEVOP_IRQ_SHARED XENIRQSTAT_shared=0A+#en= dif=0A =0A #if __XEN_INTERFACE_VERSION__ < 0x00040200=0A #define PHYSDEVOP_= pirq_eoi_gmfn PHYSDEVOP_pirq_eoi_gmfn_v1=0A--- a/xen/include/public/xen-com= pat.h=0A+++ b/xen/include/public/xen-compat.h=0A@@ -27,7 +27,7 @@=0A = #ifndef __XEN_PUBLIC_XEN_COMPAT_H__=0A #define __XEN_PUBLIC_XEN_COMPAT_H__= =0A =0A-#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040400=0A+#define = __XEN_LATEST_INTERFACE_VERSION__ 0x00040600=0A =0A #if defined(__XEN__) || = defined(__XEN_TOOLS__)=0A /* Xen is built with matching headers and = implements the latest interface. */=0A --=__PartFCC91862.1__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartFCC91862.1__=--