ioctl32() compat plumbing for xen calls
Subsystems (2)
RFC PATCH 1/1 ioctl32() compat plumbing for xen calls
changeset: 30726:2a6fda4e7dde1a0a5d29a62303e85bcea868eb47 tag: tip user: Jimi Xenidis <[email protected]> date: Thu Jul 13 11:51:38 2006 -0400 files: drivers/xen/privcmd/Makefile drivers/xen/privcmd/compat_privcmd.c fs/compat_ioctl.c include/xen/public/privcmd.h
description:
[ppc] ioctl32() compat plumbing for xen calls
The following patch deals with xen ioctl32() data structures that contain pointer that are consumed _by_ Linux and not Xen.
Snuck in a few struct/typedef fixes that were missed before.
drivers/xen/privcmd/Makefile +2 -2
@@ -1,2 +1,2 @@ - -obj-$(CONFIG_XEN_PRIVCMD) := privcmd.o +compat_obj-y := compat_privcmd.o +obj-$(CONFIG_XEN_PRIVCMD) := privcmd.o $(compat_obj-$(CONFIG_COMPAT))
fs/compat_ioctl.c +2 -0
@@ -2986,6 +2986,8 @@ COMPATIBLE_IOCTL(LPGETFLAGS) COMPATIBLE_IOCTL(LPGETFLAGS) HANDLE_IOCTL(LPSETTIMEOUT, lp_timeout_trans) +HANDLE_IOCTL(IOCTL_PRIVCMD_MMAP_32, privcmd_ioctl_32) +HANDLE_IOCTL(IOCTL_PRIVCMD_MMAPBATCH_32, privcmd_ioctl_32) COMPATIBLE_IOCTL(IOCTL_PRIVCMD_HYPERCALL) COMPATIBLE_IOCTL(IOCTL_EVTCHN_BIND_VIRQ) COMPATIBLE_IOCTL(IOCTL_EVTCHN_BIND_INTERDOMAIN)
include/xen/public/privcmd.h +34 -8
69 lines not on this page · raw message
drivers/xen/privcmd/compat_privcmd.c new file +52 -0
52 lines not on this page · raw message
drivers/xen/privcmd/Makefile Thu Jul 13 11:51:38 2006 -0400 line 2
Quoted 9 lines · Jimi Xenidis
diff -r
dd6f9da2ed0bcf52deb9f48e24ae56b470e1afc6-r2a6fda4e7dde1a0a5d29a62303e85bcea868eb47drivers/xen/privcmd/Makefiledrivers/xen/privcmd/Makefile Thu Jul 13 11:51:38 2006 -0400 renamed from drivers/xen/privcmd/Makefile Thu Jul 13 11:40:56 2006 -0400 +2
-2@@ -1,2 +1,2 @@ - -obj-$(CONFIG_XEN_PRIVCMD) := privcmd.o +compat_obj-y := compat_privcmd.o +obj-$(CONFIG_XEN_PRIVCMD) := privcmd.o $(compat_obj-$(CONFIG_COMPAT))
That's a curious use of CONFIG_XEN_PRIVCMD... I think it would make more sense to use it in the parent directory:
drivers/xen/Makefile Thu Jul 13 11:33:30 2006 -0500 renamed from drivers/xen/Makefile Thu Jun 29 13:04:30 2006 -0400 +1 -1
@@ -1,7 +1,7 @@ obj-y += core/ obj-y += core/ obj-y += console/ obj-y += evtchn/ -obj-y += privcmd/ +obj-$(CONFIG_XEN_PRIVCMD) += privcmd/ obj-y += xenbus/ obj-$(CONFIG_XEN_UTIL) += util.o
drivers/xen/privcmd/Makefile Thu Jul 13 11:37:18 2006 -0500 renamed from drivers/xen/privcmd/Makefile Thu Jun 29 13:04:30 2006 -0400 +2 -1
@@ -1,2 +1,3 @@ -obj-$(CONFIG_XEN_PRIVCMD) := privcmd.o +obj-y := privcmd.o +obj-$(CONFIG_COMPAT) += privcmd.o
There's no point in recursing into the directory in the first place if the config variable isn't set...
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center
Quoted 2 lines · Hollis Blanchard
That's a curious use of
CONFIG_XEN_PRIVCMD... I think it would make more sense to use it in the parent directory:
I agree, the dir fix below should go in independent to the CONFIG_COMPAT part.
Quoted 35 lines
diff -r
72c8bc5d88f4drivers/xen/Makefiledrivers/xen/Makefile Thu Jul 13 11:33:30 2006 -0500 renamed from drivers/xen/Makefile Thu Jun 29 13:04:30 2006 -0400 +1
-1@@ -1,7 +1,7 @@ obj-y += core/ obj-y += core/ obj-y += console/ obj-y += evtchn/ -obj-y += privcmd/ +obj-$(CONFIG_XEN_PRIVCMD) += privcmd/ obj-y += xenbus/ obj-$(CONFIG_XEN_UTIL) += util.odiff -r
72c8bc5d88f4drivers/xen/privcmd/Makefiledrivers/xen/privcmd/Makefile Thu Jul 13 11:37:18 2006 -0500 renamed from drivers/xen/privcmd/Makefile Thu Jun 29 13:04:30 2006 -0400 +2
-1@@ -1,2 +1,3 @@ -obj-$(CONFIG_XEN_PRIVCMD) := privcmd.o +obj-y := privcmd.o +obj-$(CONFIG_COMPAT) += privcmd.oThere's no point in recursing into the directory in the first place if the config variable isn't set...
Signature · 8 lines
Hollis Blanchard IBM Linux Technology Center _______________________________________________ Xen-ppc-devel mailing list [email protected] http://lists.xensource.com/xen-ppc-devel