From patchwork Tue Jun 27 23:57:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9813261 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D674560383 for ; Wed, 28 Jun 2017 00:03:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCFD326E46 for ; Wed, 28 Jun 2017 00:03:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE48B2817F; Wed, 28 Jun 2017 00:03:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ED44B26E46 for ; Wed, 28 Jun 2017 00:03:04 +0000 (UTC) Received: from localhost ([::1]:58641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQ0Rk-0004mk-2J for patchwork-qemu-devel@patchwork.kernel.org; Tue, 27 Jun 2017 20:03:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQ0Pn-0004Je-4h for qemu-devel@nongnu.org; Tue, 27 Jun 2017 20:01:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQ0Ph-0003gq-Pl for qemu-devel@nongnu.org; Tue, 27 Jun 2017 20:01:02 -0400 Received: from mail-dm3nam03on0060.outbound.protection.outlook.com ([104.47.41.60]:35324 helo=NAM03-DM3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dQ0Ph-0003gG-DO; Tue, 27 Jun 2017 20:00:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=U3zqMIBJO6OWQzZGvA66HUD6LheUjaKPjBgJ85TpUbU=; b=f8ERjA/+2TA3PWSmUAq+mYSUcUko0MrorkNY53oLKeh3rxDqEVMVOo4s2YtdRa14XhLhu8KsdUg6ENwtDVt+3J7nz9Mr02lyOi13j7zAswe9QgjKbgHCiWKOSVrO8hja/+tbYohj3a2IzHyC451rSFslWkA+Cwkum7/EsCPM4gg= Received: from BLUPR0201CA0022.namprd02.prod.outlook.com (10.163.116.32) by MWHPR02MB2687.namprd02.prod.outlook.com (10.175.49.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Wed, 28 Jun 2017 00:00:53 +0000 Received: from CY1NAM02FT035.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::202) by BLUPR0201CA0022.outlook.office365.com (2a01:111:e400:52e7::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Wed, 28 Jun 2017 00:00:53 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT035.mail.protection.outlook.com (10.152.75.186) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9 via Frontend Transport; Wed, 28 Jun 2017 00:00:52 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1dQ0Pc-0005Ru-0i; Tue, 27 Jun 2017 17:00:52 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1dQ0Pb-0000Kl-Sh; Tue, 27 Jun 2017 17:00:51 -0700 Received: from [172.19.2.220] (helo=localhost.localdomain) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1dQ0Pa-0000Kh-5w; Tue, 27 Jun 2017 17:00:50 -0700 From: Alistair Francis To: , , Date: Tue, 27 Jun 2017 16:57:49 -0700 Message-ID: <4b48ca3f3c45bee1103bcb50d87e6d5cadc88d6f.1498607452.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23160.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39400400002)(39410400002)(39850400002)(39840400002)(39450400003)(2980300002)(438002)(199003)(189002)(9170700003)(47776003)(50986999)(38730400002)(8676002)(76176999)(305945005)(36756003)(8936002)(2950100002)(50226002)(189998001)(39060400002)(9786002)(4326008)(2201001)(33646002)(54906002)(106466001)(81166006)(63266004)(77096006)(118296001)(5660300001)(36386004)(2906002)(48376002)(478600001)(50466002)(5003940100001)(356003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR02MB2687; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; MLV:ovrnspm; A:1; MX:1; PTR:unknown-60-83.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT035; 1:sReRA1NgEN60rgFeihVkR129VUlrsT8BuaP7wHCNe69t+rqmzmhF9kBaxFgN2CJL682m7C05pF+JqAopVPffmRxjCcMQGqSQB00wULJAmrlPwW141wFUWxbznqI/QZwDnIKCzs6WQ5h15RQPuy8ecqw7LI26f3Nj7Gbpmx6A0x/VsDwFCRTdhZPWn8UKyOayAGImi7sFkUzMmjZa/EWiQG/DjCNWUmj98AXsZUpjpVpgi5cPWmIARSpMAWe7wPjYwI1FN0tvwvZ3YwbWxkp/IA8Pwiyxi+hiPmcqqTRqk9B0ZlapcXClIPofM/VjsNQ6E6sAStfpEi3OAUirPQ+J3LlDvN0uW+UdG0kGWiS9coD8QJ4YTnWguCy6NN9iAzJijmJtnaNc082PfJ37EmpsQrp/FFe6zsIialy/O7PRZgay3xJ/Zxu/InMMfV1M5lwcAzNdeNwhR88/bdGBCXB3yytNHDONcf8BRFrN9f3r8icObripn+csPLUrkJCy9LSdktWT+oxe1tVjM174hB4IqqEXErbFGCpTdNb2i/sA3PYHItW1izTbMZf/dLn2O//fFn2LdA30ToFNipJzfPdun5Mq49UL2PKAFmmVqfgO0PEwOOXkWNNToroeuEMds5ApCb4lE33t/j3CX9796ngBbXyKKIO3dL7+7sEr+f6uW95IfKgI1sIXX28pX986HxA4dKVYW+l9NgCx/3yXGNhTkpJFydDcvIqTIwkEiGTo0eNfXkVOaoMqXaCc2sM1Jw2FmTJvwUXrXV8mhn+R/s2ef377cfKHGP41RUM7fPjNqjslT1uG0yhpcWhNlrsOYOveMY6O5NHiKOJYFwb03pmKWLis5m3HA+LrhfvYTLkHUR1h5jKNoQCAvDfzLAAWtz6d MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40f49c74-5464-49b7-424f-08d4bdb8be3e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(8251501002)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506069)(300135500095); SRVR:MWHPR02MB2687; X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2687; 3:QlrkT25zHNCrAomPMnttd+LwqwqoF1ZgSoVN3qdoFPzAt7e+2YgPIOBRCrfP69PsVGUR3UzRMyTzS4i5Go2/TARVHLCeI7pwdY95LcXi99oRmE0mQdoQ1fNnWvzG8tVhbEXXfJ0iMEc4GYJOofFJTTxHgnRRJscCBU+A4P2f+6GQ4EqyatJhE2SZF7jbqP2clPbjZbeZPdwdVV4Mjc6wv/+0nbXMScwSQiezEafVHUWXtTmrLOsuUX5GvxtksXY5OhkslPiM0Qves+aucBuO+BbufB+IIAuQY0KAtOao9lw+BPs0p7DhCwBRoW7e2CDUoohICxd5s5b1J1EH818kKO6+y41v6LrduyD/XmI3oaOIDzwbBUXr9JprOaYBbiP8khDXz+tgTqGx3M47aoLo1j/86BKOZNyyic+sxRbBd6eSZKW5hhxT8av7OYI57cA7TYbUfCjabn0i3uLWgU4Dv3HKMXFH0W/zhjO3z+B54KyHFaWNBN16rPl/p8XTcAPhgqq36RAu00FjcmtvZQ2QwShhIjHZdbecoms6lhTpbFaxc1lZQHts3FlTXxyo7KcIoSXJZTp1z0hQjrMx/QD/2PgspFOGiSqaKqq0XonWPZdyX22VQKz3fcA5zArKLD5ER54HEFhZE4zVCKiNdEhbpvYuTwQeG/0ejPMrx9noQtqXLlQGk9vz/SqL26QYZICicvUW7Qs8rnCXKfoGNymocFyFYaIaAv5BWuUypa8Z0alIp5t8qur2KE6yasxe+OzWu96BskMJ72SIKyGA0GYUWeluxsiY/e4V55/yEb53t0CDXb0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H/1P6zEwDwaKvDyCFBWuKUmqIEHBOQescxxMliFE2Rey8kxQ2uFtoUKA4W25VS7oU+5M13yLiQV6PfxPVLECdjeF5dSDCuH1W/h7YDhUfuMHLVGe1sSCXbsmqDtaKp0aL2UFJ/hvzG5s+ZpU3wgYKqFCwp3HopkeV3LZ4ppqmmQM8u6TAlb8BoWxIdcgXn3V8RapOpw72aE9XTWc+l2Uck6UEHwUoZodT1tH0hAGPZ93jAXy3jedogpA700tlC9RDJKtvJuNeP X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(192813158149592)(225559137633274)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(3002001)(93006095)(93004095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR02MB2687; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR02MB2687; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR02MB2687; 4:PH5Nyq2jthbcO80orAOlWIW8LJ4nAkNjmam8+n3BAg?= =?us-ascii?Q?N4WW1UC+o8RrtChOoM/YzRgddmYxbT3yb8XfYPKEDM/ywNPPi2EonK8+fpPx?= =?us-ascii?Q?gY3ovlF6Jq6vsTsS5K1n1U7bHO0LFWJ8sQAYfpyXTKxtE2pZd363xY45xbk2?= =?us-ascii?Q?FJXKem+Fujp1igRY4cheeYCmaJHzNV8zGL8JxTDFspFVtnf03fW1as0i7PaT?= =?us-ascii?Q?1VNV1DG/ucIQfQuMKRccWTp4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?= =?us-ascii?Q?Dw38RDfGs/h0NSk65Gjcg5WiGvidA2EH4k6nWbzp1HgsBPXGcPbsiyyYYLAy?= =?us-ascii?Q?AT6pb+Wq7fhEE0enG/HqHMZ+/b+USrLRAUZmOk8c4nYhyEWfG2nG0YIRq8oZ?= =?us-ascii?Q?mgXQOgedWjm6tZepme7eDVozpfAtlmegYgTDMhpxmNsjIXRoKtfhI8pxqodK?= =?us-ascii?Q?n1bPo78LmIKbG9sViFfIpmggXqtkR3zlYuTwq65i+Fa9P9/7oExyWbb8lw1J?= =?us-ascii?Q?osfA=3D=3D?= X-Forefront-PRVS: 03524FBD26 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR02MB2687; 23:NoR5BO/EE9frs67CKCgZvbVKdiMQ50GRW7sNeDVyw?= =?us-ascii?Q?+fMrRqzt+pePYwh6z4DY2efuSCJXFTIfu3brc7SAd0ZVwYFtTH/5gMb0jUvb?= =?us-ascii?Q?0FzLpyXUcmevLbLlaKVRH3wLwk+HMC4hrSWAR5eL58xr/tKVtROaIceP1CGu?= =?us-ascii?Q?dCxRMWsJdNpuByvRAlvrkI+vrbqxl/jo7OrDAiEuZk3Gtv1oDF6MVb4wa0LY?= =?us-ascii?Q?EvEmhmxaPCE+9zCM85soMkZ5Jpwo+blQYDenLMd4fp862dok6A3SDU90FtX/?= =?us-ascii?Q?PUgBgB2M0V7CuphLq0d0EEneLHJRez/cEQYA3Ncj11f1QgnPhL5aWIjQVWPZ?= =?us-ascii?Q?f+anxY4I7opDKqHLzZp76oOKipfkKN3ZylQ+XxDeDOpEMz2rSO44cgz90jez?= =?us-ascii?Q?9tsEBZD+ZME4mDMIgnjhDZkixj5YfhFFCwZkTw5CkhiJeny8L0wNj4d2CjsB?= =?us-ascii?Q?gt2hxXxC5mO4jbz9PUECtdCneVPQwcjDl86Mg5sAgC2OzeQCBLl0ZwKNJgZS?= =?us-ascii?Q?p1fUvJ2EfNbYvBCZIyhjub6JZfFCGsj0aJjstoG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1zqwY99ChkxiWq12hsADgH7DKvXAQi8HRryPpB5mipbDDr/FDlmg07KXsWj5RZTav+I7LOjAGU/Dkbf1IHo1V0R0OKTt/GQEGF41qY3OzuD3oPK84xvOEDmeNjbkfl1EC0P0kFM0c3lU5F1rGLxX2sjbbpy++dVsooe1bKi55/nX1ajjzjKj2JKquyOPgOuOiBkb493O35bwnNPd/yPoPUCDYDGBbq/T7GdPBHJyvpCZmHF5AnqG5EHXs1k+FJMkW1hbxn2Uu+01x+Y1+4zcbqJGtRqM7dHoNF6U7Kn7+/MYSC25ZijMf1hMzv7aGtAkYQkY= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2017 00:00:52.6340 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2687 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.41.60 Subject: [Qemu-devel] [RFC v1 4/4] util/oslib-win32: Recursivly pass the timeout X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, alistair23@gmail.com, qemu-block@nongnu.org, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Alistair Francis Acked-by: Edgar E. Iglesias --- util/oslib-win32.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/util/oslib-win32.c b/util/oslib-win32.c index a015e1ac96..3630e46499 100644 --- a/util/oslib-win32.c +++ b/util/oslib-win32.c @@ -432,10 +432,10 @@ static int poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles, } } - /* If no timeout and polling several handles, recurse to poll - * the rest of them. + /* We only found one and we are waiting on more then one. Let's try + * again. */ - if (timeout == 0 && nhandles > 1) { + if (nhandles > 1) { /* Remove the handle that fired */ int i; if ((ready - WAIT_OBJECT_0) < nhandles - 1) { @@ -444,7 +444,20 @@ static int poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles, } } nhandles--; - recursed_result = poll_rest(FALSE, handles, nhandles, fds, nfds, 0); + + /* If we just had a very small timeout let's increase it when we + * recurse to ensure we don't just busy wait. This ensures we let + * the Windows threads block at least a little. If we previously + * had some wait let's set it to zero to avoid blocking for too + * long. + */ + if (timeout < 10) { + timeout = timeout + 1; + } else { + timeout = 0; + } + recursed_result = poll_rest(FALSE, handles, nhandles, fds, + nfds, timeout); return (recursed_result == -1) ? -1 : 1 + recursed_result; } return 1;