vhost-user: add new vhost user messages to support virtio config space
authorChangpeng Liu <changpeng.liu@intel.com>
Thu, 4 Jan 2018 01:53:31 +0000 (09:53 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Jan 2018 19:52:37 +0000 (21:52 +0200)
commit4c3e257b5e6ccba6bd34f780fab8008e0d79680a
tree30483268b49b9826d8387f443b88d19e9a58a5f5
parent1bcf209154445a5837a8fc0fc9d88200fedb25b2
vhost-user: add new vhost user messages to support virtio config space

Add VHOST_USER_GET_CONFIG/VHOST_USER_SET_CONFIG messages which can be
used for live migration of vhost user devices, also vhost user devices
can benefit from the messages to get/set virtio config space from/to the
I/O target. For the purpose to support virtio config space change,
VHOST_USER_SLAVE_CONFIG_CHANGE_MSG message is added as the event notifier
in case virtio config space change in the slave I/O target.

Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.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
hw/virtio/vhost.c
include/hw/virtio/vhost-backend.h
include/hw/virtio/vhost.h