From: Markus Armbruster <armbru@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: qemu-block@nongnu.org, raphael@enfabrica.net, mst@redhat.com,
kwolf@redhat.com, hreitz@redhat.com, pbonzini@redhat.com,
berrange@redhat.com, eduardo@habkost.net, dave@treblig.org,
eblake@redhat.com, qemu-devel@nongnu.org,
yc-core@yandex-team.ru
Subject: Re: [PATCH v2 6/6] qapi: introduce CONFIG_READ event
Date: Thu, 07 Mar 2024 11:01:04 +0100 [thread overview]
Message-ID: <87cys6cqe7.fsf@pond.sub.org> (raw)
In-Reply-To: <20240301171143.809835-7-vsementsov@yandex-team.ru> (Vladimir Sementsov-Ogievskiy's message of "Fri, 1 Mar 2024 20:11:43 +0300")
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> writes:
> Send a new event when guest reads virtio-pci config after
> virtio_notify_config() call.
>
> That's useful to check that guest fetched modified config, for example
> after resizing disk backend.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
[...]
> diff --git a/qapi/qdev.json b/qapi/qdev.json
> index 6ece164172..ffc5e3be18 100644
> --- a/qapi/qdev.json
> +++ b/qapi/qdev.json
> @@ -179,3 +179,29 @@
> { 'command': 'device-sync-config',
> 'features': [ 'unstable' ],
> 'data': {'id': 'str'} }
> +
> +##
> +# @VIRTIO_CONFIG_READ:
> +#
> +# Emitted whenever guest reads virtio device config after config change.
Let's not abbreviate "configuration" to "config".
> +#
> +# @device: device name
> +#
> +# @path: device path
> +#
> +# Features:
> +#
> +# @unstable: The event is experimental.
> +#
> +# Since: 9.0
> +#
> +# Example:
> +#
> +# <- { "event": "VIRTIO_CONFIG_READ",
> +# "data": { "device": "virtio-net-pci-0",
> +# "path": "/machine/peripheral/virtio-net-pci-0" },
> +# "timestamp": { "seconds": 1265044230, "microseconds": 450486 } }
> +##
As for PATCH 4, I'd like to see some guidance on intended use.
> +{ 'event': 'VIRTIO_CONFIG_READ',
> + 'features': [ 'unstable' ],
> + 'data': { '*device': 'str', 'path': 'str' } }
[...]
next prev parent reply other threads:[~2024-03-07 10:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 17:11 [PATCH v2 0/6] vhost-user-blk: live resize additional APIs Vladimir Sementsov-Ogievskiy
2024-03-01 17:11 ` [PATCH v2 1/6] vhost-user-blk: simplify and fix vhost_user_blk_handle_config_change Vladimir Sementsov-Ogievskiy
2024-03-01 17:11 ` [PATCH v2 2/6] qdev-monitor: fix error message in find_device_state() Vladimir Sementsov-Ogievskiy
2024-03-07 9:17 ` Markus Armbruster
2024-03-01 17:11 ` [PATCH v2 3/6] qdev-monitor: add option to report GenericError from find_device_state Vladimir Sementsov-Ogievskiy
2024-03-07 9:46 ` Markus Armbruster
2024-03-07 10:03 ` Vladimir Sementsov-Ogievskiy
2024-03-15 12:51 ` Markus Armbruster
2024-03-15 13:34 ` Vladimir Sementsov-Ogievskiy
2024-03-07 14:58 ` Vladimir Sementsov-Ogievskiy
2024-03-01 17:11 ` [PATCH v2 4/6] qapi: introduce device-sync-config Vladimir Sementsov-Ogievskiy
2024-03-07 9:54 ` Markus Armbruster
2024-03-07 10:06 ` Vladimir Sementsov-Ogievskiy
2024-03-01 17:11 ` [PATCH v2 5/6] qapi: device-sync-config: check runstate Vladimir Sementsov-Ogievskiy
2024-03-07 9:57 ` Markus Armbruster
2024-03-07 11:41 ` Vladimir Sementsov-Ogievskiy
2024-03-01 17:11 ` [PATCH v2 6/6] qapi: introduce CONFIG_READ event Vladimir Sementsov-Ogievskiy
2024-03-07 10:01 ` Markus Armbruster [this message]
2024-03-07 11:42 ` Vladimir Sementsov-Ogievskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cys6cqe7.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=dave@treblig.org \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=raphael@enfabrica.net \
--cc=vsementsov@yandex-team.ru \
--cc=yc-core@yandex-team.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.