virtio: change set guest notifier to per-device
commit7c763827a58ad8a399ff22b6f9f0e1a825e58bd1
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 6 Oct 2010 13:20:17 +0000 (6 15:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 12 Oct 2010 21:09:52 +0000 (12 16:09 -0500)
tree3afcfeaa9ec80b23facf72b1af170732b56e3a9d
parente74f86377a6184326be13f1c7a6c7f9c218b1798
virtio: change set guest notifier to per-device

When using irqfd with vhost-net to inject interrupts,
a single evenfd might inject multiple interrupts.
Implementing this is much easier with a single
per-device callback to set guest notifiers.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 54dd932128ae08d6a5a6668551508e30520b0f86)
hw/vhost.c
hw/virtio-pci.c
hw/virtio.h