qapi: introduce device-sync-config
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Fri, 20 Sep 2024 09:49:36 +0000 (12:49 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Nov 2024 21:03:24 +0000 (16:03 -0500)
commit3f98408e2e4fb1792102aed2cd5425aa0e34cc9c
tree51a19cf1e74936d1c3e40a19c6aa5a356d578dfa
parent4dfa12731439c4a3cbfd9d1767acddfbf79549fd
qapi: introduce device-sync-config

Add command to sync config from vhost-user backend to the device. It
may be helpful when VHOST_USER_SLAVE_CONFIG_CHANGE_MSG failed or not
triggered interrupt to the guest or just not available (not supported
by vhost-user server).

Command result is racy if allow it during migration. Let's not allow
that.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Raphael Norwitz <raphael@enfabrica.net>
Message-Id: <20240920094936.450987-4-vsementsov@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/vhost-user-blk.c
hw/virtio/virtio-pci.c
include/hw/qdev-core.h
qapi/qdev.json
system/qdev-monitor.c