virtio: move common ioeventfd handling out of virtio-pci
commitb1f416aa8d870fab71030abc9401cfc77b948e8e
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jul 2012 15:16:29 +0000 (5 17:16 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 12 Jul 2012 11:08:11 +0000 (12 14:08 +0300)
tree85ce6fbf099085dcb82a1dbddd52d18585c989c6
parent6bf819f0a2a77dc8504651f369293f0efac54fe5
virtio: move common ioeventfd handling out of virtio-pci

All transports can use the same event handler for the ioeventfd, though
the exact setup (address/memory region) will be specific.

This lets virtio use event_notifier_set_handler.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/virtio-pci.c
hw/virtio.c
hw/virtio.h