From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLoLc-0008SY-7r for qemu-devel@nongnu.org; Wed, 02 Nov 2011 23:52:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLoLa-00016J-RL for qemu-devel@nongnu.org; Wed, 02 Nov 2011 23:52:12 -0400 Received: from ozlabs.org ([203.10.76.45]:59690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLoLa-00016B-BE for qemu-devel@nongnu.org; Wed, 02 Nov 2011 23:52:10 -0400 From: Rusty Russell In-Reply-To: References: Date: Thu, 03 Nov 2011 11:26:23 +1030 Message-ID: <878vnyt45k.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH RFC 0/2] virtio-pci: polling mode support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Anthony Liguori , qemu-devel@nongnu.org, Jan Kiszka , Alexander Graf , virtualization@lists.linux-foundation.org, Blue Swirl , Stefan Weil , Avi Kivity , Richard Henderson On Wed, 2 Nov 2011 21:02:42 +0200, "Michael S. Tsirkin" wrote: > MSIX spec requires that device can be operated with > all vectors masked, by polling. > > So the following patchset (lightly tested) adds this > ability: when driver reads ISR, the device > recalls a pending notification, and returns > pending status in the ISR register. > > The polling driver can operate as follows: > - map all VQs and config to the same vector > - poll ISR to get status - this also flushes VQ updates to memory > - handle config change or VQ event depending on ISR > > Comments? This seems sane to me... Cheers, Rusty.