Re: [Qemu-devel] [PATCH 02/11] Add migrate-set-capabilities and query-migrate-capabilities

2012-08-06 Thread Eric Blake
nCapabilitiesStatus > +# > +# Since: 1.2 > +## > +{ 'command': 'query-migrate-capabilities', 'returns': > ['MigrationCapabilityStatus']} ...and 'query-migrate-capabilities' return the same information. So we don't need two comma

Re: [Qemu-devel] [PATCH 03/11] Add XBZRLE documentation

2012-08-06 Thread Eric Blake
ram-duplicate: A kbytes > +transferred ram-normal: B kbytes > +transferred ram-xbrle: C kbytes > +overflow ram-xbrle: D pages > +cache-miss ram-xbrle: E pages Names such as 'ram-xbrle' do not match the code in the remainder of this series; make sure this example is accurate. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 08/11] Add migrate_set_cache_size command

2012-08-06 Thread Eric Blake
+Example: > + > +-> { "execute": "query-migrate-cache-size" } > +<- { "return": { "size":"67108864" } } ...this example is returning a JSON object '{"size":"67108864"}' instead of an int '67108864

Re: [Qemu-devel] [PATCH 09/11] Add migration accounting for normal and duplicate pages

2012-08-06 Thread Eric Blake
gt; > @@ -2152,7 +2166,10 @@ Examples: > "ram":{ > "transferred":123, > "remaining":123, > -"total":246 > +"total":246, > +"duplicate":123, > +"normal":123, > +"normal-bytes":123456 Again, need total-time. > } >} > } > @@ -2166,7 +2183,10 @@ Examples: > "ram":{ > "total":1057024, > "remaining":1053304, > -"transferred":3720 > +"transferred":3720, > +"duplicate":123, > +"normal":123, > +"normal-bytes":123456 and again. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 10/11] Add XBZRLE statistics

2012-08-06 Thread Eric Blake
_pages; > +uint64_t xbzrle_bytes; > +uint64_t xbzrle_pages; > +uint64_t xbzrle_cache_miss; > uint64_t iterations; > +uint64_t xbzrle_overflows; Any reason you stagger where these stats are stored, rather than piling them all at the end? -- Eric Blake ebl..

Re: [Qemu-devel] [PATCH 02/11] Add migrate-set-capabilities and query-migrate-capabilities

2012-08-06 Thread Eric Blake
On 08/06/2012 10:04 AM, Orit Wasserman wrote: > On 08/06/2012 05:26 PM, Eric Blake wrote: >> On 08/05/2012 03:13 AM, Orit Wasserman wrote: >>> The management can enable/disable a capability for the next migration by >>> using >>> migrate-set-apabilities QMP

Re: [Qemu-devel] [PATCH 08/12] Add migrate_set_cache_size command

2012-08-06 Thread Eric Blake
I think this should be: { "return": 67108864 } That's based solely off my reading of the schema, and not of the code itself, so please actually execute your code, to see what really came over the wire. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 10/12] Change total_time to total-time in MigrationStats

2012-08-06 Thread Eric Blake
are fixing an unreleased naming glitch). Also, I would suggest rebasing this to occur before 9/11. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 02/11] Add migrate-set-capabilities and query-migrate-capabilities

2012-08-06 Thread Eric Blake
s already being discarded via your query-migrate-supported-capabilities command). That is, your implementation for query-migrate-capabilities is sufficient to satisfy both class of users, without needing query-migrate-supported-capabilities. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 00/12] Migration next v12

2012-08-06 Thread Eric Blake
al and duplicate pages > Add XBZRLE statistics We've been through the wringer on this one, but I'm now comfortable giving a series: Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 11/12] qemu-iotests: Be more flexible with image creation options

2012-08-06 Thread Eric Blake
nsions will probably result in a noisy testsuite failure rather than silent disk corruption, I'm okay overlooking this non-portable aspect for now. (Not to mention that you're not the first offender, seeing that cluster_size earlier in the context also used \+.) -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 11/12] qemu-iotests: Be more flexible with image creation options

2012-08-06 Thread Eric Blake
On 08/06/2012 03:54 PM, Eric Blake wrote: > On 08/06/2012 02:44 PM, Kevin Wolf wrote: >> qemu-iotests already filters out image creation options that may be >> present or not in order to get the same output in both cases. However, >> often it only considers the default value

Re: [Qemu-devel] [RFC] usb and s390

2012-08-07 Thread Eric Blake
ype=pseries,?' to see what options the given machine has, and preferably through a QMP interface rather than through the command line. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v7 2/6] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-07 Thread Eric Blake
re not closed until @refcount is zero, > +#and either @in_use is false or @removed is true. > +# > +## > +{ 'command': 'query-fdsets', 'returns': ['FdsetInfo'] } > diff --git a/qerror.c b/qerror.c > index 92c4eff..63a0aa1 100644 > ---

Re: [Qemu-devel] For all targets and machine types: "start to monitor" smoke test

2012-08-07 Thread Eric Blake
f both options can be used together, but cannot both be omitted, then this style works: { -foo [ -bar ] | -bar } Mutually exclusive options, but where omission is okay, would then be: [ { -foo | -bar } ] or even this variant, to express the default when both are omitted: { -foo | [ -bar ] }

Re: [Qemu-devel] [RFC V2 03/10] quorum: Add quorum_open().

2012-08-07 Thread Eric Blake
same character as the separator (whether you end up with : or , as the separator)? If you support a larger quorum (whether always n/(2n-1) or whether fully configurable n/m), rather than hard-coded 2/3, then you also need a way to specify how many quorum members will follow. -- Eric Blake ebl...@

Re: [Qemu-devel] [PATCH v7 2/6] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-07 Thread Eric Blake
ually find useful, once I complete some counterpart libvirt patches. If libvirt can get by without any extra information and without needing to hack things from procfs, then it's not worth you spending the effort coding something that will be ignored; conversely, if a piece of info is so important that I end up hacking procfs anyways, that says we have a hole in QMP. I'm okay waiting for now. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 0/5] support guest agent general command

2012-08-08 Thread Eric Blake
elp in implementing Daiki's patchset for calling an arbitrary command and knowing whether to block on expecting a response rather than forcing the user to know which magic --timeout values to use. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [libvirt] [PATCH v7 2/6] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-09 Thread Eric Blake
fact, even nicer than returning a markup of O_RDONLY - if the management app cares about knowing details on an fd, such as whether it is read-only, then an opaque string tied to the fd in the fdset becomes very useful. The string needs to be optional on add-fd. (Libvirt might even use an xml-like string like "", but of course, being an opaque string, qemu doesn't have to care what the string contains.) -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] qemu-iotests: Save some sed processes

2012-08-09 Thread Eric Blake
On 08/09/2012 09:01 AM, Kevin Wolf wrote: > Instead of building a huge pipeline, just pass all expressions to a > single sed process. > > Suggested-by: Eric Blake > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/common.rc | 20 ++-- > 1 file

Re: [Qemu-devel] [PATCH 2/4] qmp: emit the WAKEUP event when the guest is put to run

2012-08-09 Thread Eric Blake
the event arrives may break if the event arrives after the guest > is already running. Yeah, no problem with that semantic change from libvirt. > +WAKEUP > +-- > + > +Emitted when the guest has been waken up from S3 and is running. grammar: s/has been waken/has woken/ o

Re: [Qemu-devel] [PATCH 3/4] qmp: qmp-events.txt: put events in alphabetical order

2012-08-09 Thread Eric Blake
? I'm assuming those were blank lines, and that spacing is more consistent now, but it's nicer to see a code motion patch with matching diffstat. Reviewed-by: Eric Blake > > diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt > index b8afedb..e37a04e 100644 > --- a/QMP/qmp-

Re: [Qemu-devel] [PATCH 5/5] qmp: add SUSPEND_DISK event

2012-08-09 Thread Eric Blake
uot;: { "seconds": 1344456160, "microseconds": 309119 } } > + > +Note: QEMU shutdowns when entering S4 state. s/shutdowns/shuts down/ Is that true when you use the -no-shutdown flag? Do you get this event if you did not use the -no-shutdown flag? -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 4/4] qmp: qmp-events.txt: add missing doc for the SUSPEND event

2012-08-09 Thread Eric Blake
On 08/09/2012 11:28 AM, Luiz Capitulino wrote: > Signed-off-by: Luiz Capitulino > --- > QMP/qmp-events.txt | 12 > 1 file changed, 12 insertions(+) Reviewed-by: Eric Blake > > diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt > index e37a04e..2001a71 1

Re: [Qemu-devel] [PATCH v3] Support 'help' as a synonym for '?' in command line options

2012-08-09 Thread Eric Blake
ather go through QMP than any new syntax when talking to newer qemu (that is, I'm okay if we completely lose the spelling as long as we don't lose the feature). > > Any suggestions for what the sane syntax for these options would be? > (ie the analogous change to having '?

Re: [Qemu-devel] [PATCH v8 2/7] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-09 Thread Eric Blake
comma > + "fds": [ > + { > + "fd": 21, JSON does not permit trailing commas. > + }, > + { > + "fd": 23, and again > + } > + ], > + }, > + { > + "fdset-id": 2 missing a comma > + "fds": [ > + { > + "fd": 22, trailing comma Also, it might be nice to include something like: "opaque":"rdonly:/path/to/file" in one of the examples to give a hint to the reader how to use opaque. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v8 7/7] block: Enable qemu_open/close to work with fd sets

2012-08-09 Thread Eric Blake
if (fd == -1) { > +return -1; > +} > + > +ret = monitor_fdset_dup_fd_add(fdset_id, dupfd); > +if (ret == -1) { > +return -1; Leaks dupfd (admittedly only on a corner-case failure, but still worth addressing). -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v8 7/7] block: Enable qemu_open/close to work with fd sets

2012-08-10 Thread Eric Blake
the list of dup'd fds that are tied to the set until a call to qemu_close. That is, a set must remain alive as long as there is either an add-fd that has not yet been removed, or there is at least one dup'd fd that has not been qemu_close()d. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/7] qapi: mark QOM commands stable

2012-08-10 Thread Eric Blake
> @@ -1382,10 +1380,7 @@ > # Returns: a list of @ObjectPropertyInfo that describe the properties of the > # object. > # > -# Since: 1.1 > -# > -# Notes: This command is experimental. It's syntax may change in future Yay, getting rid of bad grammar in the proces

Re: [Qemu-devel] [PATCH 28/35] error: drop unused functions

2012-08-10 Thread Eric Blake
On 08/10/2012 11:44 AM, Luiz Capitulino wrote: > Besides of being unused, they operate on the current error format, s/ of// > which is going to be replaced soon. > -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org sign

Re: [Qemu-devel] [PATCH v9 2/7] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-11 Thread Eric Blake
"fds": [ > + { > + "fd": 30, > + "opaque": "rdonly:/path/to/file" > + }, > + { > + "fd": 24, > + "opaque": "rdwr:/path/to/file" > + } > +

Re: [Qemu-devel] [PATCH v9 6/7] block: Enable qemu_open/close to work with fd sets

2012-08-11 Thread Eric Blake
ntees a reasonable errno, and even if it does, close() can corrupt errno. I think that prior to returning here, you either need an explicit errno=ENOMEM, or fix monitor_fdset_dup_fd to guarantee a nice errno, plus a save and restore of errno here. Unless no one cares about errno on failure, in which case yo

Re: [Qemu-devel] [PATCH 1/7] migration: move total_time from ram stats to migration info

2012-08-13 Thread Eric Blake
p-commands.hx for the examples (but your cover letter mentioned that). Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC 0/7] Migration stats

2012-08-13 Thread Eric Blake
gt; > - luiz added in case he has QMP commets. > > - erik added for libvirt comments. Eric, actually. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/7] migration: store end_time in a local variable

2012-08-13 Thread Eric Blake
On 08/13/2012 04:50 AM, Juan Quintela wrote: > Signed-off-by: Juan Quintela > --- > migration.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http:/

Re: [Qemu-devel] [PATCH 3/7] migration: print total downtime for final phase of migration

2012-08-13 Thread Eric Blake
PRIu64 " milliseconds\n", > info->total_time); > +if (strcmp(info->status, "completed") == 0) { > +monitor_printf(mon, "downtime: %" PRIu64 " milliseconds\n", > + info->downt

Re: [Qemu-devel] [PATCH 3/7] migration: print total downtime for final phase of migration

2012-08-13 Thread Eric Blake
On 08/13/2012 09:02 AM, Eric Blake wrote: > On 08/13/2012 04:50 AM, Juan Quintela wrote: >> Signed-off-by: Juan Quintela >> --- >> hmp.c| 4 >> migration.c | 5 - >> migration.h | 1 + >> qapi-schema.json | 6 +- &

Re: [Qemu-devel] [PATCH 4/7] migration: rename expected_time to expected_downtime

2012-08-13 Thread Eric Blake
't transferred anything this round, force > + * expected_downtime to a a very high value, but without s/a a/a/ Latent typo, but the reformatting exposes it more. With that fixed, Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualiz

Re: [Qemu-devel] [PATCH 5/7] migration: export migration_get_current()

2012-08-13 Thread Eric Blake
On 08/13/2012 04:50 AM, Juan Quintela wrote: > Signed-off-by: Juan Quintela > --- > migration.c | 2 +- > migration.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualizati

Re: [Qemu-devel] [PATCH 6/7] migration: print expected downtime in info migrate

2012-08-13 Thread Eric Blake
Should this field be marked optional? That is, it makes sense to expose the field while migration is ongoing, but when reporting the stats after migration is complete, there is no longer any expected downtime. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library

Re: [Qemu-devel] [PATCH 7/7] migration: Add dirty_pages_rate to query migrate output

2012-08-13 Thread Eric Blake
d by second by the > +#guest. (since 1.2) Inconsistent on whether we have a '.' prior to the (since 1.2) marking. Since HMP only prints this stat when it is non-zero, should this field be marked optional? Then again, once you have dirty page tracking, I suspect this would ne

Re: [Qemu-devel] [RFC 0/7] Migration stats

2012-08-13 Thread Eric Blake
for this information. I guess with XBZRLE, you _do_ have a count of how many cache hits you had, which is somewhat related (a cache hit implies sending a page more than once). -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v9 6/7] block: Enable qemu_open/close to work with fd sets

2012-08-13 Thread Eric Blake
ther than failing with ENOMEM)? And the more I think about it, the more I think that qemu_open MUST provide a sane errno value on exit, so you need to make sure that all exit paths out of qemu_open have a sensible errno (whether or not the helper functions also have to leave errno sane is a matter o

Re: [Qemu-devel] [PATCH 7/7] migration: Add dirty_pages_rate to query migrate output

2012-08-13 Thread Eric Blake
o don't let libvirt hold up the inclusion of this useful information on the qemu side of things. Maybe another option would be to return [U]INT_MAX when there is not enough data to yet provide a valid number, where having a non-zero value at least lets people know that the stat will be available in

Re: [Qemu-devel] [PATCH v9 6/7] block: Enable qemu_open/close to work with fd sets

2012-08-13 Thread Eric Blake
we have in v10 if that's ok. The problems of reading my inbox in FIFO order - I see now that v10 landed before my comments on v9 :) Yes, what you did in v10 is probably fine. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v10 0/7] file descriptor passing using fd sets

2012-08-13 Thread Eric Blake
; block: Enable qemu_open/close to work with fd sets > monitor: Clean up fd sets on monitor disconnect Hooray - I think we're there! Series: Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 06/13] Add spent time for migration

2012-08-13 Thread Eric Blake
gt; info->ram->transferred = ram_bytes_transferred(); >> info->ram->remaining = ram_bytes_remaining(); >> info->ram->total = ram_bytes_total(); >> +info->ram->total_time = qemu_get_clock_ms(rt_clock) >> +

Re: [Qemu-devel] [PATCH v8] kvm: notify host when the guest is panicked

2012-08-13 Thread Eric Blake
ncy). > - It works as early as serial console output does (panics before > that should be rare). > - It allows you to see why the guest panicked. I think your arguments for a serial console have already been made and refuted in earlier versions of this patch series, which is WHY this series

Re: [Qemu-devel] [PATCH] xbzrle: fix compilation on ppc32

2012-08-14 Thread Eric Blake
6: error: overflow in implicit constant conversion > > Fix this by making the cast explicit, rather than implicit. > > Signed-off-by: Alexander Graf > --- > savevm.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Reviewed-by: Eric Blake > > dif

Re: [Qemu-devel] [RFC V3 3/9] quorum: Add quorum_open() and quorum_close().

2012-08-14 Thread Eric Blake
names[i] = '\0'; > +s->filenames[j] = names + i + 1; > +j += 1; Isn't this usually written 'j++'? > +} > + > +if (!escape && names[i] == '\\') { > +escape = 1;

Re: [Qemu-devel] [RFC V3 4/9] quorum: Add quorum_getlength().

2012-08-14 Thread Eric Blake
this implementation right? Shouldn't this be a quorum decision, where all s->bs[...] elements have to agree on the same size, or even where they can differ on size, as long as all files with larger size have unallocated holes past the size of the smaller member? -- Eric Blake e

Re: [Qemu-devel] [RFC] snapshot_tree.py a tool to help build graph of QEMU snapshots

2012-08-14 Thread Eric Blake
t; script > use it. > Would an additional -json option to qemu-img info be welcome ? Yes, please. See also: https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg03835.html -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.

Re: [Qemu-devel] [PATCH 16/20] qidl: Add documentation

2012-08-14 Thread Eric Blake
_t ier;// interrupt enable register > + > +int _derived int_pending; // whether we have a pending queued > interrupt > +CharDriverState _immutable *chr; Now you've changed the example; before it used QIDL(immutable). > +Variable Sized, Fixed Ca

Re: [Qemu-devel] [PATCH] let qemu-img info genereate json output

2012-08-15 Thread Eric Blake
short option of '-j' even if the long option is spelled '--format', even if it means a theoretical addition of '--format=xml' would map to the odd-looking '-j xml'. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2] Makefile: Avoid explicit list of directories in clean target

2012-08-15 Thread Eric Blake
-exec' rather than unsafe 'find | xargs' > or unportable 'find -print0 | xargs -0'. > > Makefile | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virt

Re: [Qemu-devel] Hard freeze for 1.2 today

2012-08-15 Thread Eric Blake
Jeff - where do we stand on block-commit and friends? https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg04293.html Libvirt would really love to target these commands in qemu 1.2; I'm more than willing to do some speedy reviews before the hard freeze deadline if you have rebased series rea

Re: [Qemu-devel] Hard freeze for 1.2 today

2012-08-15 Thread Eric Blake
> If there are existing patches and/or pull requests on the mailing list > that you think should be in 1.2, please respond to the email with a > pointer to the mail. I think the latest block patches should be marked for-1.2: https://lists.gnu.org/archive/html/qemu-devel/2012-08/msg02836.

Re: [Qemu-devel] Hard freeze for 1.2 today

2012-08-15 Thread Eric Blake
On 08/15/2012 08:51 AM, Jeff Cody wrote: > On 08/15/2012 10:36 AM, Eric Blake wrote: >> On 08/15/2012 08:22 AM, anth...@codemonkey.ws wrote: >>> >>> Hi, >>> >>> Today is the hard freeze for 1.2. If you have any pull requests and/or >>> patc

Re: [Qemu-devel] [PATCH 2/3] qapi: Add ImageInfo.

2012-08-15 Thread Eric Blake
Should this be #optional, in the case where there are no snapshots? > +# > +# Since: 1.3 So no way it will make 1.2 hard freeze today :) -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 3/3] qemu-img: Add json output option to the info command.

2012-08-15 Thread Eric Blake
{"help", no_argument, 0, 'h'}, > +{"format", required_argument, 0, 'f'}, > +{"machine", required_argument, 0, 'm'}, > +{0, 0, 0, 0} > +}; > +c = getopt_long(argc, argv, "f

Re: [Qemu-devel] [PATCH 06/11] Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

2012-08-15 Thread Eric Blake
.html and it's already in the ppc PULL request: https://lists.gnu.org/archive/html/qemu-devel/2012-08/msg02755.html -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] Hard freeze for 1.2 today

2012-08-15 Thread Eric Blake
m qemu-img in 1.2: https://lists.gnu.org/archive/html/qemu-devel/2012-08/msg02864.html -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/3] qapi: Add ImageInfo.

2012-08-15 Thread Eric Blake
On 08/15/2012 10:17 AM, Eric Blake wrote: > On 08/15/2012 08:54 AM, BenoƮt Canet wrote: >> Signed-off-by: Benoit Canet >> --- >> qapi-schema.json | 33 + >> 1 file changed, 33 insertions(+) >> +# @ImageInfo: >> +# &g

Re: [Qemu-devel] [PATCH 1/3] qapi: Add SnapshotInfo.

2012-08-15 Thread Eric Blake
e for the VM clock? Is that additional precision available for querying? I have no problem if you want to squash patches 1 and 2 together into a single commit. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH for-1.2 v2 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Eric Blake
r propagation, ctxt->err must be freed seperately */ s/seperately/separately/ -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 13/18] qapi: Convert savevm

2012-08-15 Thread Eric Blake
ve", "arguments": { "name": "my_snapshot" } } > +<- { "return": {} } Again, you need to return the id of the just-created snapshot. > @@ -2176,21 +2174,20 @@ void do_savevm(Monitor *mon, const QDict *qdict) > } > > /* Delete old snapshots of the same name */ > -if (name && del_existing_snapshots(name, NULL) < 0) { > +if (has_name && del_existing_snapshots(name, errp) < 0) { Here's hoping later in the series updates this to make saner decisions. (Maybe I should peruse the entire series before commenting on individual patches?) -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH for-1.2 v3 1/3] qlist: add qlist_size()

2012-08-15 Thread Eric Blake
On 08/15/2012 12:45 PM, Michael Roth wrote: > Signed-off-by: Michael Roth > --- > qlist.c | 13 + > qlist.h |1 + > 2 files changed, 14 insertions(+) No cover-letter? Reviewed-by: Eric Blake -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt

Re: [Qemu-devel] [PATCH for-1.2 v3 2/3] json-parser: don't replicate tokens at each level of recursion

2012-08-15 Thread Eric Blake
h valgrind, make check, and QMP. > > Signed-off-by: Michael Roth > --- > json-parser.c | 230 > +++-- > 1 file changed, 142 insertions(+), 88 deletions(-) I'm not the most familiar with this code, so take my review with a grain of salt, but I read through i

Re: [Qemu-devel] [PATCH 14/18] qapi: Convert loadvm

2012-08-15 Thread Eric Blake
+# > +# Set the whole virtual machine to the snapshot identified by the tag > +# 'tag' or the unique snapshot ID 'id'. > +# > +# @name: tag or id of existing snapshot > +# > +# Returns: Nothing on success > +# If an error occurs, GenericError with error m

Re: [Qemu-devel] [PATCH 14/18] qapi: Convert loadvm

2012-08-15 Thread Eric Blake
On 08/15/2012 09:31 PM, Eric Blake wrote: > >> + >> +## >> +# @vm-snapshot-load: >> +# >> +# Set the whole virtual machine to the snapshot identified by the tag >> +# 'tag' or the unique snapshot ID 'id'. >> +# >> +# @name:

Re: [Qemu-devel] [PATCH 16/18] qapi: Convert info snapshots

2012-08-15 Thread Eric Blake
to load offline snapshots, it might be worth an additional field in the JSON that says whether a snapshot is online or offline, to make it easier for the parsing application to determine whether it can be loaded or must go through qemu-img while the guest is offline (then again, keeping vm-state-si

Re: [Qemu-devel] [PATCH 17/18] hmp: allow "bool" parameter to be optional

2012-08-15 Thread Eric Blake
val = 0; > +} else if (*typestr == '?') { > +typestr++; > +break; > } else { > monitor_printf(mon, "Expected 'on' or 'off'\n"); >

Re: [Qemu-devel] [PATCH 18/18] vm-snapshot-save: add force parameter

2012-08-15 Thread Eric Blake
ed on the JSON below, this needs an #optional marking, as well as mentioning that the default is false. > # > # Returns: Nothing on success > # If an error occurs, GenericError with error message Knowing that a creation failed due to a snapshot already existing by the same name or id might be worth a distinct error class (do we already have an error class that we could reuse?) -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] Documentation: Warn against qemu-img on active image

2012-08-16 Thread Eric Blake
erations. Also, be aware that querying an image that is being modified by another process may encounter inconsistent state. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] Documentation: Warn against qemu-img on active image

2012-08-16 Thread Eric Blake
On 08/16/2012 07:35 AM, Kevin Wolf wrote: > Am 16.08.2012 14:56, schrieb Eric Blake: >> On 08/16/2012 04:00 AM, Peter Maydell wrote: >>> On 16 August 2012 10:00, Kevin Wolf wrote: >>>> People have repeatedly expected that you can do things like snapshotting >&

[Qemu-devel] For 1.2: Re: [PATCH 3/8] migration: move total_time from ram stats to migration info

2012-08-18 Thread Eric Blake
7;type': 'MigrationInfo', >'data': {'*status': 'str', '*ram': 'MigrationStats', > '*disk': 'MigrationStats', > - '*xbzrle-cache': 'XBZRLECacheStats'} } > + '*xbzrle-cache': 'XBZRLECacheStats', > + 'total-time': 'int'} } Anthony - are you planning on taking this series for 1.2? If we don't get this patch in on time, then taking this for 1.3 would result in changing released QMP interface (right now, there has been no release with the field in the wrong type). -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 5/8] migration: print total downtime for final phase of migration

2012-08-18 Thread Eric Blake
formation (in bytes): > - "transferred": amount transferred (json-int) > @@ -2279,6 +2281,7 @@ Examples: >"remaining":123, >"total":246, >"total-time":12345, > + "expected-downtime&q

Re: [Qemu-devel] [PATCH 8/8] migration: print expected downtime in info migrate

2012-08-18 Thread Eric Blake
t;status" is "active", it is a json-object with the >following RAM information (in bytes): > - "transferred": amount transferred (json-int) > @@ -2305,6 +2308,7 @@ Examples: > "remaining":123, > "total":246, >

Re: [Qemu-devel] [PATCH v7 0/6] convert sendkey to qapi

2012-08-20 Thread Eric Blake
On 08/19/2012 10:39 PM, Amos Kong wrote: > This series converted 'sendkey' command to qapi. The raw value > in hexadecimal format is not supported by 'send-key' of qmp. Are we still trying to get this into 1.2, or have we missed that deadline? -- Eric Blake ebl..

[Qemu-devel] For 1.2: Re: [PATCH] qapi: add 'query-target' command to return target arch/bit size

2012-08-20 Thread Eric Blake
even better, since mixing 'e.g.' and 'etc.' in the same sentence sounds stupid, just go with the much simpler: @arch: the name of the target architecture (such as "x86_64" or "i686") > +# @bits: number of bits in physical address (eg 32 or 64) Ditto. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC V4 3/9] quorum: Add quorum_open() and quorum_close().

2012-08-20 Thread Eric Blake
\ escapes itself (although admittedly : is more likely than \ in a file name needing escaping). -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

[Qemu-devel] For 1.2: Re: [PATCH v2] qemu-ga: report success-response field in guest-info

2012-08-21 Thread Eric Blake
pi-schema-guest.json > +++ b/qapi-schema-guest.json > @@ -91,10 +91,14 @@ > # > # @enabled: whether command is currently enabled by guest admin > # > +# @success-response: whether command report success response or not. > +# See 'uest-shutdown' command

Re: [Qemu-devel] For 1.2: Re: [PATCH v2] qemu-ga: report success-response field in guest-info

2012-08-21 Thread Eric Blake
On 08/21/2012 06:17 AM, Eric Blake wrote: > On 08/21/2012 06:03 AM, Michal Privoznik wrote: >> This is a useful hint for users (or libvirt) whether a command returns >> anything success and hence wait for reply or not. >> +++ b/qapi-schema-guest.json >> @@ -91,10 +91

Re: [Qemu-devel] [PATCH] spice: increase the verbosity of spice section in "qemu --help"

2012-08-21 Thread Eric Blake
n this information from QMP commands than from scraping -help output. Can we get at all of this information from QMP? -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 0/5] support guest agent general command

2012-08-21 Thread Eric Blake
t; Have I got it right? Yes - if the user is going to issue arbitrary guest agent commands, and we know the command won't reply on success, we should still wait a reasonable amount of time for an error, but we should also return control to the caller to allow them to detect the command

Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests current hostname

2012-08-21 Thread Eric Blake
mainGetHostname). > Cheers > -- Guido Still, this feels like a new feature and not a bug fix, so > + > +## > +# @guest-get-hostname: > +# > +# Get the guest's hostname > +# > +# Returns: The guest's hostname > +# > +# Since: 1.2 ...this should probably b

Re: [Qemu-devel] [PATCH V4 1/2] qapi: Add SnapshotInfo and ImageInfo.

2012-08-22 Thread Eric Blake
f the backing file > +# > +# @full-backing-filename: #optional full path of the backing file > +# > +# @backing-filename-format: #optional the format of the backing file > +# > +# @snapshots: #optional list of VM snapshots > +# > +# Since: 1.2 Again, 1.3. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V4 2/2] qemu-img: Add json output option to the info command.

2012-08-22 Thread Eric Blake
name, backing_filename2) != 0) { > -printf(" (actual path: %s)", backing_filename2); > -} > -putchar('\n'); > + > +if (json) { > +collect_snapshots(bs, info); > +dump_json_image_info(info); > } > -dump_snapshots(bs); > + > +qapi_free_ImageInfo(info); ...you will end up with no output. You want to default to human output for back-compat to older usage. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] For 1.2: Re: [PATCH 3/8] migration: move total_time from ram stats to migration info

2012-08-22 Thread Eric Blake
would result in >> changing released QMP interface (right now, there has been no release >> with the field in the wrong type). > > Ack. We need to preserve compat with the 1.2 interface. Yes, this particular patch 3 is a bug fix in order to prevent a future regression when 1.

Re: [Qemu-devel] [PATCH V4 1/2] qapi: Add SnapshotInfo and ImageInfo.

2012-08-22 Thread Eric Blake
nd fraction, for the same reasoning? My point is that we have two different bike shed colors showing in this one API, but I would prefer we be consistent and pick just one (as to _which_ color, I can be persuaded either way). -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtua

Re: [Qemu-devel] [PATCH] qapi: add 'query-target' command to return target arch/bit size (v2)

2012-08-22 Thread Eric Blake
+# Information describing the QEMU target. > +# > +# @arch: the target architecture (eg "x86_64", "i386", etc) Missed my v1 comment that 'eg' is misspelled (would be 'e.g.'), and with my recommendation for an alternate wording: @arch: the tar

Re: [Qemu-devel] [PATCH] boards: add a 'none' machine type to all platforms

2012-08-22 Thread Eric Blake
fall back to -help scraping (since older versions won't be further modifying their -help output now that they are released). I like the idea, although I'm not familiar enough with this part of the code to know if my review counts for anything: Reviewed-by: Eric Blake -- Eric Blake

Re: [Qemu-devel] [PATCH 3/6] QAPI: Introduce memchar_write QMP command

2012-08-22 Thread Eric Blake
+++ b/qapi-schema.json > @@ -235,6 +235,34 @@ > ## > { 'command': 'query-chardev', 'returns': ['ChardevInfo'] } > > +{ 'enum': 'DataFormat' > + 'data': [ 'utf8', 'base64' ] } Missing do

Re: [Qemu-devel] [PATCH 4/6] QAPI: Introduce memchar_read QMP command

2012-08-22 Thread Eric Blake
'size': 'int', '*format': 'DataFormat'}, > + 'returns': 'str' } While writing can default to UTF-8, I'm worried about reading - does encoding in UTF-8 allow transmission of NUL bytes through JSON, or do you have to use base64 to allow full binary data through? What happens if the data read includes a NUL byte that can't be encoded back into the requested DataFormat? -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 5/6] Fix enumeration typo error

2012-08-22 Thread Eric Blake
ossibly for 1.2, since it improves documentation? -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V5 2/2] qemu-img: Add json output option to the info command.

2012-08-23 Thread Eric Blake
eems okay for 1.3 from my viewpoint. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] spice: increase the verbosity of spice section in "qemu --help"

2012-08-27 Thread Eric Blake
On 08/26/2012 12:38 AM, Yonit Halperin wrote: > On 08/21/2012 03:31 PM, Eric Blake wrote: >> On 08/21/2012 04:54 AM, Yonit Halperin wrote: >>> Added all spice options to the help string. This can be used by libvirt >>> to determine which spice related features are s

Re: [Qemu-devel] [PATCH V6 0/2] Add JSON output to qemu-img info

2012-08-27 Thread Eric Blake
is now mandatory on the command line. This statement is not true, but doesn't affect the series itself. > in v6: > > Blue Swirl: -Add missing const in getopt structure declaration. > > Eric Blake: -Remove spurious undef. > -Use an enum instead of two boolean.

Re: [Qemu-devel] [RFC V5 03/11] quorum: Add quorum_open() and quorum_close().

2012-08-27 Thread Eric Blake
rum files "img,test.raw", "img2.raw" > and "img3.raw" invocation look like: > > -drive file=quorum:2/3:img\\,,test.raw,,img2.raw,,img3.raw > (note the double ,, and \\) Yes, that's what I'm worried about. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC V5 09/11] quorum: Add quorum_getlength().

2012-08-27 Thread Eric Blake
ncy, does reading the contents beyond the end of the shorter files consider the contents to be okay if the longer files have only NUL bytes in the extra length? I'm worried that you haven't fully thought through all the scenarios here. -- Eric Blake ebl...@redhat.com+1-919-301-

  1   2   3   4   5   6   7   8   9   10   >