[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] XEN_GUEST_HANDLE_00030205() compat macro is broken. Remove it and
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |