Received: from eggs.gnu.org ([2001:4830:134:3::10]:52291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEQKd-0005Jb-3b for qemu-devel@nongnu.org; Sat, 18 Jun 2016 20:11:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEQKb-0003lv-5x for qemu-devel@nongnu.org; Sat, 18 Jun 2016 20:11:17 -0400 Received: from pearsoncomputing.net ([192.119.205.242]:54430 helo=mail.pearsoncomputing.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEQKb-0003lq-09 for qemu-devel@nongnu.org; Sat, 18 Jun 2016 20:11:17 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.pearsoncomputing.net (Postfix) with ESMTP id BFE63640DFB for ; Sat, 18 Jun 2016 19:11:16 -0500 (CDT) Received: from mail.pearsoncomputing.net ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id irU-pYGY73a4 for ; Sat, 18 Jun 2016 19:11:16 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.pearsoncomputing.net (Postfix) with ESMTP id 54D9E640E6F for ; Sat, 18 Jun 2016 19:11:16 -0500 (CDT) Received: from mail.pearsoncomputing.net ([127.0.0.1]) by localhost (vali.starlink.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zskRl5fG7O6R for ; Sat, 18 Jun 2016 19:11:16 -0500 (CDT) Received: from [192.168.3.54] (apollo.starlink.edu [192.168.3.54]) by mail.pearsoncomputing.net (Postfix) with ESMTP id 27F63640DFB for ; Sat, 18 Jun 2016 19:11:16 -0500 (CDT) Message-ID: <5765E324.7090901@raptorengineeringinc.com> Date: Sat, 18 Jun 2016 19:11:16 -0500 From: Timothy Pearson MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 3/7] Pass select() arguments directly to do_select() on x86 platforms List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This matches the calling conventions in the Linux kernel and resolves select() hangs on i386/x86_64 guests. Signed-off-by: Timothy Pearson --- linux-user/syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 2968b57..644a490 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4785,6 +4785,7 @@ static abi_long do_ioctl(int fd, int cmd, abi_long arg) void *argptr; ie = ioctl_entries; + for(;;) { if (ie->target_cmd == 0) { gemu_log("Unsupported ioctl: cmd=0x%04lx\n", (long)cmd); @@ -7899,7 +7900,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, break; #if defined(TARGET_NR_select) case TARGET_NR_select: -#if defined(TARGET_S390X) || defined(TARGET_ALPHA) +#if defined(TARGET_S390X) || defined(TARGET_ALPHA) || defined(TARGET_I386) || defined(TARGET_X86_64) ret = do_select(arg1, arg2, arg3, arg4, arg5); #else { -- 2.1.4