virtio-pci: guest notifier mask without non-irqfd
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Mar 2013 19:37:08 +0000 (21:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Mar 2013 19:02:16 +0000 (21:02 +0200)
commita38b2c49bfd3f1cfc2aadd08cd049af16a342b1e
tree52993ec5cce2d6142a1831b0397885294cafa74b
parentf8f7c533e20d1681feeb665109301151bdb739b4
virtio-pci: guest notifier mask without non-irqfd

non-irqfd setups are currently broken with vhost:
we start up masked and nothing unmasks the interrupts.
Fix by using mask notifiers, same as the irqfd path.

Sharing irqchip/non irqchip code is always a good thing,
in this case it will help non irqchip benefit
from backend masking optimization.

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