qemu-patch-raspberry4/hw/virtio
Maxime Coquelin 1c3e5a2617 vhost-user: back SET/GET_CONFIG requests with a protocol feature
Without a dedicated protocol feature, QEMU cannot know whether
the backend can handle VHOST_USER_SET_CONFIG and
VHOST_USER_GET_CONFIG messages.

This patch adds a protocol feature that is only advertised by
QEMU if the device implements the config ops. Vhost user init
fails if the device support the feature but the backend doesn't.

The backend should only send VHOST_USER_SLAVE_CONFIG_CHANGE_MSG
requests if the protocol feature has been negotiated.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Changpeng Liu <changpeng.liu@intel.com>
2018-04-09 17:35:46 +03:00
..
Makefile.objs
trace-events vhost: Huge page align and merge 2018-03-20 16:40:37 +02:00
vhost-backend.c
vhost-stub.c
vhost-user.c vhost-user: back SET/GET_CONFIG requests with a protocol feature 2018-04-09 17:35:46 +03:00
vhost-vsock.c hw: use "qemu/osdep.h" as first #include in source files 2017-12-18 17:07:02 +03:00
vhost.c vhost-user-blk: set config ops before vhost-user init 2018-04-09 17:35:45 +03:00
virtio-balloon.c qapi: Empty out qapi-schema.json 2018-03-02 13:45:50 -06:00
virtio-bus.c virtio: remove event notifier cleanup call on de-assign 2018-02-08 21:06:26 +02:00
virtio-crypto-pci.c
virtio-crypto.c cryptodev: add vhost support 2018-03-01 18:26:17 +02:00
virtio-mmio.c
virtio-pci.c virtio-pci: trivial fixes in error message 2018-03-01 16:25:36 +02:00
virtio-pci.h vhost-user-blk: introduce a new vhost-user-blk host device 2018-01-18 21:52:37 +02:00
virtio-rng.c
virtio.c virtio: improve virtio devices initialization time 2018-02-08 21:06:40 +02:00