Received: from eggs.gnu.org ([2001:4830:134:3::10]:42062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBO4T-0004sH-Mz for qemu-devel@nongnu.org; Mon, 28 Nov 2016 10:42:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBO4O-00032a-Rp for qemu-devel@nongnu.org; Mon, 28 Nov 2016 10:42:21 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:32774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBO4O-000323-M0 for qemu-devel@nongnu.org; Mon, 28 Nov 2016 10:42:16 -0500 Received: by mail-wj0-f195.google.com with SMTP id kp2so14574242wjc.0 for ; Mon, 28 Nov 2016 07:42:16 -0800 (PST) Sender: Paolo Bonzini References: <20161124151225.GA11963@stefanha-x1.localdomain> <325f739a-05bd-c437-b9a2-e371a8cbf50d@linux.intel.com> <20161128152921.GA11196@stefanha-x1.localdomain> From: Paolo Bonzini Message-ID: <73fa904a-7064-d692-6e8d-39161eaa8786@redhat.com> Date: Mon, 28 Nov 2016 16:41:13 +0100 MIME-Version: 1.0 In-Reply-To: <20161128152921.GA11196@stefanha-x1.localdomain> 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: Stefan Hajnoczi , Eliezer Tamir Cc: Willem de Bruijn , Fam Zheng , Eric Dumazet , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Jens Axboe , Christian Borntraeger , Davide Libenzi , Christoph Hellwig On 28/11/2016 16:29, Stefan Hajnoczi wrote: > Thanks for sharing the link. I'll let you know before embarking on an > effort to make epoll support busy_loop. > > At the moment I'm still evaluating whether the good results we've gotten > from polling in QEMU userspace are preserved when polling is shifted to > the kernel. > > FWIW I've prototyped ioctl(EVENTFD_SET_POLL_INFO) but haven't had a > chance to test it yet: > https://github.com/stefanha/linux/commit/133e8f1da8eb5364cd5c5f7162decbc79175cd13 This would add a system call every time the main loop processes a vring, wouldn't it? Paolo