aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2010-10-06 15:20:17 +0200
committerMichael S. Tsirkin <mst@redhat.com>2010-10-07 12:19:47 +0200
commit54dd932128ae08d6a5a6668551508e30520b0f86 (patch)
treef6126186157f59ddb28daffeb3b47001d8bcfdd8 /hw/virtio.h
parent010ec6293409f10b88631c36145944b9c3277ce1 (diff)
downloadqemu-54dd932128ae08d6a5a6668551508e30520b0f86.zip
qemu-54dd932128ae08d6a5a6668551508e30520b0f86.tar.gz
qemu-54dd932128ae08d6a5a6668551508e30520b0f86.tar.bz2
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>
Diffstat (limited to 'hw/virtio.h')
-rw-r--r--hw/virtio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio.h b/hw/virtio.h
index 96514e6..02fa312 100644
--- a/hw/virtio.h
+++ b/hw/virtio.h
@@ -93,7 +93,7 @@ typedef struct {
int (*load_config)(void * opaque, QEMUFile *f);
int (*load_queue)(void * opaque, int n, QEMUFile *f);
unsigned (*get_features)(void * opaque);
- int (*set_guest_notifier)(void * opaque, int n, bool assigned);
+ int (*set_guest_notifiers)(void * opaque, bool assigned);
int (*set_host_notifier)(void * opaque, int n, bool assigned);
} VirtIOBindings;