From: Eric Blake <eblake@redhat.com>
To: Brian Steffens <briansteffens@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/1] block: add block device shared field
Date: Fri, 1 Sep 2017 15:21:10 -0500 [thread overview]
Message-ID: <832e1069-c74c-cb20-bb7b-65032df8eabe@redhat.com> (raw)
In-Reply-To: <20170901201054.11738-1-briansteffens@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1504 bytes --]
On 09/01/2017 03:10 PM, Brian Steffens wrote:
> This adds a boolean option called 'shared' to block devices. It defaults
> to off/false. When enabled for a particular block device, the 'shared' option
> causes the block migration code to skip over syncing of that device. This
> allows controlling exactly which block devices get synced during a migration.
>
> Signed-off-by: Brian Steffens <briansteffens@gmail.com>
> ---
> block.c | 7 +++++++
> block/qapi.c | 2 ++
> include/block/block.h | 1 +
> include/block/block_int.h | 3 +++
> migration/block.c | 4 ++++
> qapi/block-core.json | 2 +-
> 6 files changed, 18 insertions(+), 1 deletion(-)
>
> +++ b/qapi/block-core.json
> @@ -365,7 +365,7 @@
> '*bps_wr_max_length': 'int', '*iops_max_length': 'int',
> '*iops_rd_max_length': 'int', '*iops_wr_max_length': 'int',
> '*iops_size': 'int', '*group': 'str', 'cache': 'BlockdevCacheInfo',
> - 'write_threshold': 'int' } }
> + 'write_threshold': 'int', 'shared': 'bool' } }
Missing documentation, which should include '(since 2.11)'. The new
parameter should be optional on input; but it looks like you've only
modified a structure that is present on output - so you're missing a
QAPI edit that mirrors the command-line edit.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]
next prev parent reply other threads:[~2017-09-01 20:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-01 20:10 [Qemu-devel] [PATCH 1/1] block: add block device shared field Brian Steffens
2017-09-01 20:21 ` Eric Blake [this message]
2017-09-05 9:56 ` Stefan Hajnoczi
2017-09-05 15:10 ` Brian Steffens
2017-09-06 14:16 ` Stefan Hajnoczi
2017-09-06 5:58 ` Fam Zheng
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=832e1069-c74c-cb20-bb7b-65032df8eabe@redhat.com \
--to=eblake@redhat.com \
--cc=briansteffens@gmail.com \
--cc=qemu-devel@nongnu.org \
/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 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).