vhost-user: support registering external host notifiers
commit44866521bd6ea8e5152a87664dea1eee90c9438b
authorTiwei Bie <tiwei.bie@intel.com>
Thu, 24 May 2018 10:33:34 +0000 (24 18:33 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 May 2018 18:14:11 +0000 (24 21:14 +0300)
tree5fbb2d5030f33c7a9aa9a9b408b7d63154ed95d7
parent4d0cf552d3a9585f380e8abdc313e4d416a56aa0
vhost-user: support registering external host notifiers

This patch introduces VHOST_USER_PROTOCOL_F_HOST_NOTIFIER.
With this feature negotiated, vhost-user backend can register
memory region based host notifiers. And it will allow the guest
driver in the VM to notify the hardware accelerator at the
vhost-user backend 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>
docs/interop/vhost-user.txt
hw/virtio/vhost-user.c
include/hw/virtio/vhost-user.h