virtio-pci: don't poll masked vectors
commit89d62be9f4fb538db7f919a2be7df2544ffc02c5
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 18 Dec 2012 12:02:46 +0000 (18 14:02 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 26 Dec 2012 09:49:29 +0000 (26 11:49 +0200)
tree5a19bad2746869cf396e85f55c196bddf660244b
parent70f8ee395afda6d96b15cb9a5b311af7720dded0
virtio-pci: don't poll masked vectors

At the moment, when irqfd is in use but a vector is masked,
qemu will poll it and handle vector masks in userspace.
Since almost no one ever looks at the pending bits,
it is better to defer this until pending bits
are actually read.
Implement this optimization using the new poll notifier.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-pci.c