Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030818AbXFHP7V (ORCPT ); Fri, 8 Jun 2007 11:59:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967312AbXFHP7O (ORCPT ); Fri, 8 Jun 2007 11:59:14 -0400 Received: from saraswathi.solana.com ([198.99.130.12]:37368 "EHLO saraswathi.solana.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764103AbXFHP7N (ORCPT ); Fri, 8 Jun 2007 11:59:13 -0400 Date: Fri, 8 Jun 2007 11:56:03 -0400 From: Jeff Dike To: Linus Torvalds Cc: Alan Cox , Davide Libenzi , Linux Kernel Mailing List , Andrew Morton , Ulrich Drepper , Ingo Molnar , Eric Dumazet Subject: Re: [patch 7/8] fdmap v2 - implement sys_socket2 Message-ID: <20070608155603.GA8058@c2.user-mode-linux.org> References: <20070606235906.72439d16@the-village.bc.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1458 Lines: 36 On Thu, Jun 07, 2007 at 01:10:23PM -0700, Linus Torvalds wrote: > HOWEVER. > > I think we could introduce a *single* new system call, which does > basically a "run the specified system call with the following flags". As long as we are considering indirecting system calls, how about reviving your proposal to run a system call in a different address space: http://www.ussg.iu.edu/hypermail/linux/kernel/0212.3/0502.html UML could make good use of the ability to remotely manipulate address spaces. I never liked any of the proposed interfaces very much, including mm_indirect. However, if my tastebuds are defective, and indirecting system calls is the way to solve a family of problems, then we should look at fitting in mm_indirect. > It has the disadvantage that it would need some per-architecture setup to > load the actual real arguments from memory: the system call would probably > look something like > > syscall_indirect(unsigned long flags, sigset_t *, > int syscall, unsigned long args[6]); mm_indirect would need a file descriptor to the other address space, which we would presumably get from a new get_mm() system call. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/