virtio: support setting memory region based host notifier
commit6f80e6170ede13605817e5c0ca73db0de7bdf261
authorTiwei Bie <tiwei.bie@intel.com>
Thu, 12 Apr 2018 15:12:30 +0000 (12 23:12 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 14:01:54 +0000 (23 17:01 +0300)
treeedcba467d4b332f7edd1b2776cfdbb503745caf8
parent1f3a4519b1c107b5db2434b30638353978366b4d
virtio: support setting memory region based host notifier

This patch introduces the support for setting memory region
based host notifiers for virtio device. This is helpful when
using a hardware accelerator for a virtio device, because
hardware heavily depends on the notification, this will allow
the guest driver in the VM to notify the hardware directly.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c
hw/virtio/virtio.c
include/hw/virtio/virtio-bus.h
include/hw/virtio/virtio.h