Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhKid-0000Z5-It for qemu-devel@nongnu.org; Tue, 16 Feb 2010 05:31:51 -0500 Received: from [199.232.76.173] (port=57853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhKic-0000Yt-PJ for qemu-devel@nongnu.org; Tue, 16 Feb 2010 05:31:50 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhKiZ-0004Rl-29 for qemu-devel@nongnu.org; Tue, 16 Feb 2010 05:31:50 -0500 Received: from mail-vw0-f45.google.com ([209.85.212.45]:53792) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhKiY-0004RZ-QA for qemu-devel@nongnu.org; Tue, 16 Feb 2010 05:31:46 -0500 Received: by vws17 with SMTP id 17so211519vws.4 for ; Tue, 16 Feb 2010 02:31:45 -0800 (PST) Sender: Michael Casadevall From: Michael Casadevall Date: Tue, 16 Feb 2010 05:31:18 -0500 Message-Id: <1266316280-28271-1-git-send-email-mcasadevall@ubuntu.com> Subject: [Qemu-devel] [PATCH 0/2] support for pselect in linux-user List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Casadevall The attached patches here add support for pselect call emulation in linux-user and also add the proper entry to the ARM architecture syscall lists. There is some code duplication between do_select() and do_pselect() to handle copying the file descriptors over from the target to host; this could be refactored into two common functions; if desired, I'll resubmit the patch with said refactoring in place. Michael Casadevall (2): This patch adds support for the pselect syscall in linux-user emulation and also adds several support functions required to translate the timespec structs between the target and the host. Add the syscall id for pselect6 on ARM as this is now supported in newer linux kernels. linux-user/arm/syscall_nr.h | 2 +- linux-user/syscall.c | 119 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+), 1 deletions(-)