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] Remove unused and unnecessary gnttab ioctl.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove unused and unnecessary gnttab ioctl.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Nov 2005 13:00:10 +0000
Delivery-date: Tue, 08 Nov 2005 13:00:34 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 1470a9d40072546c390f0dfa89c7cb22d99018c8
# Parent  33b2e15c2adef5ef1445a69bbad66cce3c4e28bb
Remove unused and unnecessary gnttab ioctl.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 33b2e15c2ade -r 1470a9d40072 
linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c     Tue Nov  8 11:17:53 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/gnttab.c     Tue Nov  8 11:25:09 2005
@@ -337,53 +337,7 @@
 #ifdef CONFIG_PROC_FS
 
 static struct proc_dir_entry *grant_pde;
-
-static int
-grant_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
-           unsigned long data)
-{
-       int                     ret;
-       privcmd_hypercall_t     hypercall;
-
-       /*
-        * XXX Need safety checks here if using for anything other
-        *     than debugging.
-        */
-       return -ENOSYS;
-
-       if ( cmd != IOCTL_PRIVCMD_HYPERCALL )
-               return -ENOSYS;
-
-       if ( copy_from_user(&hypercall, (void *)data, sizeof(hypercall)) )
-               return -EFAULT;
-
-       if ( hypercall.op != __HYPERVISOR_grant_table_op )
-               return -ENOSYS;
-
-#ifdef __ia64__
-       ret = HYPERVISOR_grant_table_op(hypercall.arg[0], (void 
*)hypercall.arg[1], hypercall.arg[2]);
-#else
-       /* hypercall-invoking asm taken from privcmd.c */
-       __asm__ __volatile__ (
-               "pushl %%ebx; pushl %%ecx; pushl %%edx; "
-               "pushl %%esi; pushl %%edi; "
-               "movl  4(%%eax),%%ebx ;"
-               "movl  8(%%eax),%%ecx ;"
-               "movl 12(%%eax),%%edx ;"
-               "movl 16(%%eax),%%esi ;"
-               "movl 20(%%eax),%%edi ;"
-               "movl   (%%eax),%%eax ;"
-               TRAP_INSTR "; "
-               "popl %%edi; popl %%esi; popl %%edx; popl %%ecx; popl %%ebx"
-               : "=a" (ret) : "0" (&hypercall) : "memory" );
-#endif
-
-       return ret;
-}
-
-static struct file_operations grant_file_ops = {
-       ioctl:  grant_ioctl,
-};
+static struct file_operations grant_file_ops;
 
 static int
 grant_read(char *page, char **start, off_t off, int count, int *eof,

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove unused and unnecessary gnttab ioctl., Xen patchbot -unstable <=