qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] vhost-user-blk: live resize additional APIs
@ 2023-10-06 20:20 Vladimir Sementsov-Ogievskiy
  2023-10-06 20:20 ` [PATCH 1/4] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change Vladimir Sementsov-Ogievskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2023-10-06 20:20 UTC (permalink / raw)
  To: qemu-block
  Cc: qemu-devel, eblake, dave, armbru, eduardo, berrange, pbonzini,
	hreitz, kwolf, raphael.norwitz, mst, yc-core, vsementsov,
	den-plotnikov, daniil.tatianin

In vhost-user protocol we have VHOST_USER_BACKEND_CONFIG_CHANGE_MSG,
which backend may send to notify Qemu, that we should re-read the
config, and notify the guest.

Still that's not always convenient: backend may not support this
message. Also, having QMP command to force config sync is more reliable
than waiting for notification from external program. It also may be
helpful for debug/restore: if we have changed disk size, but guest
doesn't see that, it's good to have a separate QMP command to trigger
resync of the config.

So, the series proposes two experimental APIs:

1. x-device-sync-config command, to trigger config synchronization

2. X_CONFIG_READ event, which notify management tool that guest read the
updated config. Of course, that can't guarantee that the guest correctly
handled the updated config, but it's still better than nothing: for sure
guest will not show new disk size until it read the updated config. So,
management tool may wait for this event to report success to the user.


The series is based on "[PATCH v8 0/4] pci hotplug tracking": it doesn't
depend on it, but just modify same files, so I just to avoid extra
conflicts.
Based-on: <20231005092926.56231-1-vsementsov@yandex-team.ru>

Vladimir Sementsov-Ogievskiy (4):
  vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change
  qapi: introduce device-sync-config
  qapi: device-sync-config: check runstate
  qapi: introduce CONFIG_READ event

 hw/block/vhost-user-blk.c | 32 ++++++++++++++---------
 hw/virtio/virtio-pci.c    | 18 +++++++++++++
 include/hw/qdev-core.h    |  3 +++
 include/monitor/qdev.h    |  1 +
 include/sysemu/runstate.h |  1 +
 monitor/monitor.c         |  1 +
 qapi/qdev.json            | 36 ++++++++++++++++++++++++++
 softmmu/qdev-monitor.c    | 53 +++++++++++++++++++++++++++++++++++++++
 softmmu/runstate.c        |  5 ++++
 9 files changed, 138 insertions(+), 12 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2023-10-23  9:32 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-06 20:20 [PATCH 0/4] vhost-user-blk: live resize additional APIs Vladimir Sementsov-Ogievskiy
2023-10-06 20:20 ` [PATCH 1/4] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change Vladimir Sementsov-Ogievskiy
2023-10-23  9:31   ` Raphael Norwitz
2023-10-06 20:20 ` [PATCH 2/4] qapi: introduce device-sync-config Vladimir Sementsov-Ogievskiy
2023-10-17 14:57   ` Markus Armbruster
2023-10-17 15:32     ` Vladimir Sementsov-Ogievskiy
2023-10-18  6:08       ` Markus Armbruster
2023-10-06 20:20 ` [PATCH 3/4] qapi: device-sync-config: check runstate Vladimir Sementsov-Ogievskiy
2023-10-06 20:20 ` [PATCH 4/4] qapi: introduce CONFIG_READ event Vladimir Sementsov-Ogievskiy
2023-10-17 15:00   ` Markus Armbruster
2023-10-17 15:44     ` Vladimir Sementsov-Ogievskiy
2023-10-18  6:47       ` Markus Armbruster
2023-10-18  8:51         ` Vladimir Sementsov-Ogievskiy
2023-10-18 10:36           ` Markus Armbruster
2023-10-18 10:51             ` Michael S. Tsirkin
2023-10-18 10:59               ` Daniel P. Berrangé
2023-10-18 12:02                 ` Markus Armbruster
2023-10-18 12:07                   ` Daniel P. Berrangé
2023-10-18 14:33                     ` Dr. David Alan Gilbert
2023-10-19  7:05                       ` Markus Armbruster
2023-10-19  7:10                     ` Markus Armbruster
2023-10-18 12:39                   ` Vladimir Sementsov-Ogievskiy
2023-10-19  7:01                     ` Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).