From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxG0T-0000Ln-3c for qemu-devel@nongnu.org; Tue, 14 Feb 2012 05:53:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxG0O-00048R-D1 for qemu-devel@nongnu.org; Tue, 14 Feb 2012 05:53:09 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:64207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxG0O-000488-8J for qemu-devel@nongnu.org; Tue, 14 Feb 2012 05:53:04 -0500 From: Paul Brook Date: Tue, 14 Feb 2012 10:52:53 +0000 References: <201202102334.40125.paul@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201202141052.55100.paul@codesourcery.com> Subject: Re: [Qemu-devel] [PATCH v3 6/6] qemu_calculate_timeout: increase minimum timeout to 1h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , "xen-devel@lists.xensource.com" , "avi@redhat.com" , Paolo Bonzini , Stefano Stabellini > Yes, you are right. Also considering that we are only calling > slirp_update_timeout if CONFIG_SLIRP is defined, there is no need for > the !CONFIG_SLIRP dummy version of the function. Looks reasonable to me. Unfortunately I can't remember which combination of headless VM and timer configs caused hangs when this was originally added. If anyone has a setup that suffered timeout-related hangs last time we made this change, please retest with this patch. Otherwise I guess we apply the patch and hope we didn't miss anything. > Author: Stefano Stabellini > Date: Mon Feb 13 11:25:03 2012 +0000 > > main_loop_wait: block indefinitely > > - remove qemu_calculate_timeout; > > - explicitly size timeout to uint32_t; > > - introduce slirp_update_timeout; > > - pass NULL as timeout argument to select in case timeout is the > maximum value; > > Signed-off-by: Stefano Stabellini Acked-by: Paul Brook