From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCH RFC 0/2] virtio-pci: polling mode support Date: Wed, 2 Nov 2011 21:02:42 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org Cc: Anthony Liguori , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Jan Kiszka , virtualization@lists.linux-foundation.org, Blue Swirl , Stefan Weil , Avi Kivity , Richard Henderson List-Id: virtualization@lists.linuxfoundation.org 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