From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLg4H-0001Si-44 for qemu-devel@nongnu.org; Wed, 02 Nov 2011 15:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLg4G-0000tv-4C for qemu-devel@nongnu.org; Wed, 02 Nov 2011 15:01:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLg4F-0000tk-N6 for qemu-devel@nongnu.org; Wed, 02 Nov 2011 15:01:44 -0400 Date: Wed, 2 Nov 2011 21:02:42 +0200 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH RFC 0/2] virtio-pci: polling mode support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anthony Liguori , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Jan Kiszka , Rusty Russell , Alexander Graf , virtualization@lists.linux-foundation.org, Blue Swirl , Stefan Weil , Avi Kivity , Richard Henderson 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? -- 1.7.5.53.gc233e