From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBkbX-0006tU-69 for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBkbS-0004vt-Bz for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:45:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41102) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBkbS-0004vK-68 for qemu-devel@nongnu.org; Tue, 29 Nov 2016 10:45:54 -0500 References: <20161124151225.GA11963@stefanha-x1.localdomain> <20161129103236.GE15786@lemon> <14abb3dd-b639-3c31-cade-073fff209ca6@redhat.com> <20161129132354.GF15786@lemon> <04fa01e1-0613-fc14-527b-e3432c6fec1a@redhat.com> <20161129141746.GA2043@lemon> <20161129152428.4w6c6fuate4eouc5@kamzik.brq.redhat.com> From: Paolo Bonzini Message-ID: <7e91172b-8b82-8eaf-1c96-e792aec36a99@redhat.com> Date: Tue, 29 Nov 2016 16:45:47 +0100 MIME-Version: 1.0 In-Reply-To: <20161129152428.4w6c6fuate4eouc5@kamzik.brq.redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Linux kernel polling for QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Jones , Fam Zheng Cc: Eliezer Tamir , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Jens Axboe , Christian Borntraeger , Stefan Hajnoczi , Davide Libenzi , Christoph Hellwig On 29/11/2016 16:24, Andrew Jones wrote: > While we have a ppoll audience, another issue with the current polling > is that we can block with an infinite timeout set (-1), and it can > actually end up being infinite, i.e. vcpus will never run again. I'm > able to exhibit this with kvm-unit-tests. This should only happen outside the big QEMU lock, otherwise it's a bug. Paolo > For these rare cases where > no other timeout has been selected, shouldn't we have a default timeout? > Anyone want to pick a number? I have a baseless compulsion to use 10 ms...