WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-3.2-testing] XEN_GUEST_HANDLE_00030205() compat mac

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] XEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 02 May 2008 06:30:27 -0700
Delivery-date: Fri, 02 May 2008 06:30:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1209734587 -3600
# Node ID 9733f681d5c5b81f003acb4a75d90aa5028361fb
# Parent  561fe1c610da1f2304777b8a4fca8a23231b3ac7
XEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and
open-code an alternative at its two invocation sites.

Based on a patch by Jan Beulich.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   16778:491c283207945c5acdad8f9bc1f64c76511d83b6
xen-unstable date:        Tue Jan 22 10:18:58 2008 +0000
---
 xen/include/public/physdev.h    |    6 +++++-
 xen/include/public/xen-compat.h |    7 -------
 xen/include/public/xen.h        |    6 +++++-
 3 files changed, 10 insertions(+), 9 deletions(-)

diff -r 561fe1c610da -r 9733f681d5c5 xen/include/public/physdev.h
--- a/xen/include/public/physdev.h      Thu May 01 13:48:15 2008 +0100
+++ b/xen/include/public/physdev.h      Fri May 02 14:23:07 2008 +0100
@@ -81,7 +81,11 @@ DEFINE_XEN_GUEST_HANDLE(physdev_set_iopl
 #define PHYSDEVOP_set_iobitmap           7
 struct physdev_set_iobitmap {
     /* IN */
-    XEN_GUEST_HANDLE_00030205(uint8) bitmap;
+#if __XEN_INTERFACE_VERSION__ >= 0x00030205
+    XEN_GUEST_HANDLE(uint8) bitmap;
+#else
+    uint8_t *bitmap;
+#endif
     uint32_t nr_ports;
 };
 typedef struct physdev_set_iobitmap physdev_set_iobitmap_t;
diff -r 561fe1c610da -r 9733f681d5c5 xen/include/public/xen-compat.h
--- a/xen/include/public/xen-compat.h   Thu May 01 13:48:15 2008 +0100
+++ b/xen/include/public/xen-compat.h   Fri May 02 14:23:07 2008 +0100
@@ -41,11 +41,4 @@
 #error "These header files do not support the requested interface version."
 #endif
 
-/* Fields defined as a Xen guest handle since 0x00030205. */
-#if __XEN_INTERFACE_VERSION__ >= 0x00030205
-#define XEN_GUEST_HANDLE_00030205(type) XEN_GUEST_HANDLE(type)
-#else
-#define XEN_GUEST_HANDLE_00030205(type) type *
-#endif
-
 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */
diff -r 561fe1c610da -r 9733f681d5c5 xen/include/public/xen.h
--- a/xen/include/public/xen.h  Thu May 01 13:48:15 2008 +0100
+++ b/xen/include/public/xen.h  Fri May 02 14:23:07 2008 +0100
@@ -245,7 +245,11 @@ struct mmuext_op {
         /* SET_LDT */
         unsigned int nr_ents;
         /* TLB_FLUSH_MULTI, INVLPG_MULTI */
-        XEN_GUEST_HANDLE_00030205(void) vcpumask;
+#if __XEN_INTERFACE_VERSION__ >= 0x00030205
+        XEN_GUEST_HANDLE(void) vcpumask;
+#else
+        void *vcpumask;
+#endif
     } arg2;
 };
 typedef struct mmuext_op mmuext_op_t;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] XEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and, Xen patchbot-3.2-testing <=