compat.h: drop COMPAT_HANDLE_PARAM()
authorJan Beulich <jbeulich@suse.com>
Thu, 2 Feb 2017 14:49:42 +0000 (15:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 2 Feb 2017 14:49:42 +0000 (15:49 +0100)
The need for 8844ed299a ("x86/dmop: Fix compat_dm_op() ABI") has made
clear that its presence is actively dangerous. At the hypercall entry
points XEN_GUEST_HANDLE_PARAM() should be used anyway (regardless of
whether these are native or compat entry points), and passing around
handles internally shouldn't use their compat representation either.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/include/xen/compat.h

index 08683505f55ba7e9cc024e50fb505b3a8d83cef8..ce6245c10feb7c6617e57a9e9404b368ddfe2745 100644 (file)
@@ -25,9 +25,6 @@
     __DEFINE_COMPAT_HANDLE(name, name)
 #define COMPAT_HANDLE(name)          __compat_handle_ ## name
 
-/* NB: it is assumed that if an arch uses the compat layer it does not
- * distinguish handles from parameter handles. */
-#define COMPAT_HANDLE_PARAM(name)    __compat_handle_ ## name
 /* Is the compat handle a NULL reference? */
 #define compat_handle_is_null(hnd)        ((hnd).c == 0)