[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/9] mirror: implement mirror_change method
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v3 5/9] mirror: implement mirror_change method |
Date: |
Wed, 18 Oct 2023 11:38:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Fiona Ebner <f.ebner@proxmox.com> writes:
> which allows switching the @copy-mode from 'background' to
> 'write-blocking'.
>
> This is useful for management applications, so they can start out in
> background mode to avoid limiting guest write speed and switch to
> active mode when certain criteria are fulfilled.
>
> In presence of an iothread, the copy_mode member is now shared between
> the iothread and the main thread, so turn accesses to it atomic.
>
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
[...]
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index c6f31a9399..01427c259a 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -3044,6 +3044,17 @@
> { 'command': 'block-job-finalize', 'data': { 'id': 'str' },
> 'allow-preconfig': true }
>
> +##
> +# @BlockJobChangeOptionsMirror:
> +#
> +# @copy-mode: Switch to this copy mode. Currenlty, only the switch
Typo: Currently
Also, two spaces between sentences for consistency, please.
> +# from 'background' to 'write-blocking' is implemented.
> +#
> +# Since: 8.2
> +##
> +{ 'struct': 'BlockJobChangeOptionsMirror',
> + 'data': { 'copy-mode' : 'MirrorCopyMode' } }
> +
> ##
> # @BlockJobChangeOptions:
> #
> @@ -3058,7 +3069,7 @@
> { 'union': 'BlockJobChangeOptions',
> 'base': { 'id': 'str', 'type': 'JobType' },
> 'discriminator': 'type',
> - 'data': {} }
> + 'data': { 'mirror': 'BlockJobChangeOptionsMirror' } }
>
> ##
> # @block-job-change:
- [PATCH v3 1/9] blockjob: introduce block-job-change QMP command, (continued)
- [PATCH v3 3/9] block/mirror: move dirty bitmap to filter, Fiona Ebner, 2023/10/13
- [PATCH v3 8/9] blockjob: query driver-specific info via a new 'query' driver method, Fiona Ebner, 2023/10/13
- [PATCH v3 4/9] block/mirror: determine copy_to_target only once, Fiona Ebner, 2023/10/13
- [PATCH v3 6/9] qapi/block-core: use JobType for BlockJobInfo's type, Fiona Ebner, 2023/10/13
- [PATCH v3 5/9] mirror: implement mirror_change method, Fiona Ebner, 2023/10/13
[PATCH v3 9/9] mirror: return mirror-specific information upon query, Fiona Ebner, 2023/10/13
Re: [PATCH v3 0/9] mirror: allow switching from background to active mode, Markus Armbruster, 2023/10/18
Re: [PATCH v3 0/9] mirror: allow switching from background to active mode, Kevin Wolf, 2023/10/19