From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, Fam Zheng <famz@redhat.com>
Cc: "Benoît Canet" <benoit.canet@irqsave.net>,
pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 2/2] qapi: Change BlockDirtyInfo to list
Date: Wed, 13 Nov 2013 13:37:23 -0700 [thread overview]
Message-ID: <5283E303.6060302@redhat.com> (raw)
In-Reply-To: <20131113141924.GF2633@dhcp-200-207.str.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2207 bytes --]
On 11/13/2013 07:19 AM, Kevin Wolf wrote:
>> #
>> -# @dirty: #optional dirty bitmap information (only present if the dirty
>> -# bitmap is enabled)
>> +# @dirty-bitmaps: #optional dirty bitmaps information (only present if the
>> +# driver has one or more dirty bitmaps)
>> #
>> # @io-status: #optional @BlockDeviceIoStatus. Only present if the device
>> # supports it and the VM is configured to stop on errors
>> @@ -963,7 +963,7 @@
>> 'data': {'device': 'str', 'type': 'str', 'removable': 'bool',
>> 'locked': 'bool', '*inserted': 'BlockDeviceInfo',
>> '*tray_open': 'bool', '*io-status': 'BlockDeviceIoStatus',
>> - '*dirty': 'BlockDirtyInfo' } }
>> + '*dirty-bitmaps': ['BlockDirtyInfo'] } }
>>
>> ##
>> # @query-block:
>
> I believe this is of limited use; if you ever have more than one dirty
> bitmap, we're lacking information to associate it with the job it
> belongs to. One option would be to extend BlockDirtyInfo to indicate
> this, but another might be to actually extend other commands like
> query-block-jobs to return information on the dirty bitmap associated
> with a specific job.
>
> I've applied it to block-next anyway, we still have some time to
> reconsider for 1.8.
Indeed, expanding the per-job query output to list a single dirty bitmap
tied to that job is probably more useful than listing all dirty bitmaps
without context here. Since it's output-only, and marked optional, we
can still withdraw this output even after 1.8 if we decide we don't like
it and no one has reported wanting to use it.
I was going to suggest _always_ outputting dirty-bitmaps, even if it is
an empty array, if that makes it easier to detect that yes, this is a
version of qemu new enough to have per-job dirty bitmaps but there are
no jobs at the moment; on the other hand, doing that would mean the
field is not marked optional, and then we would always have to output it
for back-compat reasons. So keeping the field marked optional makes sense.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
next prev parent reply other threads:[~2013-11-13 20:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 10:29 [Qemu-devel] [PATCH v3 0/2] block: per caller dirty bitmap Fam Zheng
2013-11-13 10:29 ` [Qemu-devel] [PATCH v3 1/2] " Fam Zheng
2013-11-13 14:33 ` Fam Zheng
2013-11-13 14:36 ` Kevin Wolf
2013-11-13 10:29 ` [Qemu-devel] [PATCH v3 2/2] qapi: Change BlockDirtyInfo to list Fam Zheng
2013-11-13 14:19 ` Kevin Wolf
2013-11-13 14:40 ` Paolo Bonzini
2013-11-13 14:40 ` Fam Zheng
2013-11-14 2:13 ` Wenchao Xia
2013-11-14 2:22 ` Fam Zheng
2013-11-13 20:37 ` Eric Blake [this message]
2013-11-13 20:44 ` Eric Blake
2013-11-14 2:33 ` [Qemu-devel] [PATCH] qapi: Add (Since 1.8) to BlockInfo.dirty-bitmaps Fam Zheng
2013-11-14 12:19 ` Kevin Wolf
2013-11-14 1:31 ` [Qemu-devel] [PATCH v3 2/2] qapi: Change BlockDirtyInfo to list Wenchao Xia
2013-11-14 1:39 ` Fam Zheng
2013-11-14 2:03 ` Eric Blake
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=5283E303.6060302@redhat.com \
--to=eblake@redhat.com \
--cc=benoit.canet@irqsave.net \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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).