Re: [Qemu-devel] [PATCH 1/2] qga: add windows implementation for guest-get-time

2013-03-08 Thread Eric Blake
low, but only so many years into the future that it's beyond our lifetime, so I don't mind leaving it as is. Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V8 02/20] build: add block/qapi.c

2013-03-08 Thread Eric Blake
ile at a time, but with contents instead of being a stub (for example, merge patch 1 and 3, and merge patch 2 and 6). It just feels like you have subdivided this series too far. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.

Re: [Qemu-devel] [PATCH V8 01/20] build: add block/snapshot.c

2013-03-08 Thread Eric Blake
yright notice is a no-no. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-08 Thread Eric Blake
low. Better would be: if (time_ns < 0 || time_ns / 100 > INT64_MAX - W32_FT_OFFSET) { error ... } time = time_ns / 100 + W32_FT_OFFSET; -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V8 05/20] qemu-img: remove unused parameter in collect_image_info()

2013-03-08 Thread Eric Blake
On 03/06/2013 11:07 PM, Wenchao Xia wrote: > Parameter *fmt was not used, so remove it. > > Reviewed-by: Eric Blake > > Signed-off-by: Wenchao Xia Typically, these annotations should be kept in chronological order. That is, the first line should always be a Signed-off-by (yo

Re: [Qemu-devel] [PATCH V8 03/20] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-08 Thread Eric Blake
an accurate code motion patch. But see my comments earlier in the series about merging this with 1/20. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V8 06/20] block: move collect_snapshots() and collect_image_info() to block/qapi.c

2013-03-08 Thread Eric Blake
^-//p' patch) <(sed -n 's/^\+//p' patch) It's okay to have differences (such as 'static void collect_image_info' becoming exported 'void bdrv_collect_image_info', and to see reindentation to line up to the new function name), but the differences should

Re: [Qemu-devel] [PATCH V8 07/20] block: add snapshot info query function bdrv_query_snapshot_info_list()

2013-03-08 Thread Eric Blake
block layer API. > > Signed-off-by: Wenchao Xia > --- > block/qapi.c | 52 + > include/block/qapi.h |4 ++- > qemu-img.c |4 ++- > 3 files changed, 45 insertions(+), 15 deletions(-) Reviewed-by: Eri

Re: [Qemu-devel] [PATCH V8 08/20] block: add filter for vm snapshot in bdrv_query_snapshot_info_list()

2013-03-08 Thread Eric Blake
it be smarter to have the function return bool (true for valid vm snapshot, false if the image snapshot is not usable as a vm snapshot)? Also, it might be nicer to name it snapshot_valid_for_vm, as in: if (vm_snapshot && !snapshot_valid_for_vm(...)) { continue; } -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V8 09/20] block: add image info query function bdrv_query_image_info()

2013-03-08 Thread Eric Blake
napshot info. > > Signed-off-by: Wenchao Xia > --- > block/qapi.c | 39 --- > include/block/qapi.h |7 +++ > qemu-img.c |7 ++- > 3 files changed, 37 insertions(+), 16 deletions(-) Reviewed-by: Eric Blake

Re: [Qemu-devel] [PATCH V8 10/20] qmp: add interface query-snapshots

2013-03-08 Thread Eric Blake
ing) > +- "name": internal snapshot name (json-string) > +- "vm-state-size": size of the VM state in bytes (json-int) > +- "date-sec": UTC date of the snapshot in seconds (json-int) > +- "date-nsec": fractional part in nano seconds to be used wi

Re: [Qemu-devel] [PATCH V8 01/20] build: add block/snapshot.c

2013-03-09 Thread Eric Blake
ld be added? The copyright of the .c file should be copied to the .h file then. EVERY file needs a copyright, not just one of a pair of files. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC 1/8] block: add virtual_size to query-block QMP output

2013-03-11 Thread Eric Blake
#x27;iops_rd': 'int', 'iops_wr': 'int', > +'virtual_size': 'int' } } I was about to suggest 'virtual-size' instead of 'virtual_size', since we prefer '-' over '_' in QMP; but since this command has pre-existing uses of '_', keeping consistency within the struct trumps consistency with the rest of QMP. The idea makes sense, and my only complaint was a trivial documentation matter; so feel free to add this when re-posting without the RFC: Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-11 Thread Eric Blake
tion itself is correct, without a maintainer chiming in on whether your licensing is appropriate or needs an adjustment. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/2] qga: add windows implementation for guest-set-time

2013-03-12 Thread Eric Blake
"guest-set-time failed: %d", GetLastError()); > +error_setg_errno(errp, errno, "Failed to set time to guest"); > +return; > +} > +} > + > int64_t qmp_guest_file_open(const char *path, bool has_mode, const char > *mode, Error **err) > { > error_set(err, QERR_UNSUPPORTED); > -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC][PATCH 2/9] add a function to find non-zero content in a buffer

2013-03-12 Thread Eric Blake
gt; + > +/* > * Checks if a buffer is all zeroes > * > * Attention! The len must be a multiple of 4 * sizeof(long) due to oh, probably because of copy and paste. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC][PATCH 4/9] buffer_is_zero: use vector optimizations if possible

2013-03-12 Thread Eric Blake
return buffer_find_nonzero_offset(buf, len)==len; > +} > + > size_t i; > long d0, d1, d2, d3; > const long * const data = buf; -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC][PATCH 6/9] migration: use XBZRLE only after bulk stage

2013-03-12 Thread Eric Blake
cs, memdups and frees s/unneccssary/unnecessary/ > are saved. Earlier, I asked you for some benchmark numbers, and you provided some. Mentioning them in the commit message will make an even stronger argument for including this patch. -- Eric Blake eblake redhat com+1-919

Re: [Qemu-devel] [RFC][PATCH 7/9] bitops: use vector algorithm to optimize find_next_bit()

2013-03-12 Thread Eric Blake
instead of magic 8. > + unsigned long tmp2 = > + buffer_find_nonzero_offset(p, ((size/BITS_PER_BYTE) & > ~(8*sizeof(VECTYPE)-1))); Spaces around binary operators. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC][PATCH 0/9] live migration/buffer_is_zero optimizations

2013-03-12 Thread Eric Blake
t these patches. > > Thanks, > Peter > > Peter Lieven (9): Your patches were not properly threaded, which makes it hard to review this series. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC][PATCH 4/9] buffer_is_zero: use vector optimizations if possible

2013-03-12 Thread Eric Blake
ot BITS_PER_BYTE or CHAR_BITS its the number of > vectors in one loop in buffer_find_nonzero_offset(). I will add > a constant for this to make it clearer. Indeed, now I see it - 8 is the unroll factor. Well, all the more evidence that a named constant makes the code easier to read, compared to

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-12 Thread Eric Blake
On 03/11/2013 11:01 PM, Wenchao Xia wrote: > 于 2013-3-12 1:49, Eric Blake 写道: >> On 03/11/2013 05:23 AM, Wenchao Xia wrote: >>>This patch adds block/snapshot.c and then moves the function >>> there. It also fixes small code style errors reported by check script

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-12 Thread Eric Blake
tead of having to call two commands to build up the complete picture. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-12 Thread Eric Blake
On 03/12/2013 10:15 AM, Eric Blake wrote: > As far as I can tell, there is nothing wrong with leaving the file as > BSD licensed instead of trying to insist that it be LGPL. The block > layer will still be [L]GPL because of other files linked together, but > there is nothing inherentl

Re: [Qemu-devel] [PATCH 15/19] [fixup] vc

2013-03-12 Thread Eric Blake
); > break; > #endif > +case CHARDEV_BACKEND_KIND_VC: > +chr = vc_init(backend->vc); > +break; > default: > error_setg(errp, "unknown chardev backend (%d)", backend->kind); > break; > -- Eric Blake eblake redhat com

Re: [Qemu-devel] [PATCH V9 04/14] block: move collect_snapshots() and collect_image_info() to block/qapi.c

2013-03-12 Thread Eric Blake
what the resolution is for 1/14, you should do the same thing here. Everything else looks okay, but I'm reluctant to add reviewed-by without the license issue sorted. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC][PATCH 8/9] migration: do not sent zero_pages in bulk stage

2013-03-12 Thread Eric Blake
bytes_sent += 1; > } else if (!ram_bulk_stage && migrate_use_xbzrle()) { > current_addr = block->offset + offset; -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V9 06/14] block: add check for VM snapshot in bdrv_query_snapshot_info_list()

2013-03-12 Thread Eric Blake
will be ignored in > + load_vmstate(). */ > +while ((bs1 = bdrv_next(bs1))) { > +if (bdrv_can_snapshot(bs1) && bs1 != bs) { Minor optimization - you could rearrange the conjunct and check 'bs1 != bs' first, to avoid the overhead of bdrv_can_snapshot on

Re: [Qemu-devel] [PATCH V9 08/14] qmp: add interface query-snapshots

2013-03-12 Thread Eric Blake
p-commands.hx | 55 > ++ > 3 files changed, 87 insertions(+), 0 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V9 09/14] qmp: add interface query-images

2013-03-12 Thread Eric Blake
eed, without you having to add filtering into the qmp code. HMP can do filtering, since it is supposed to be human-friendly, but I don't see a reason to make QMP give reduced information. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/9] qapi_c_arrays.diff

2013-03-13 Thread Eric Blake
str(Visitor *v, char **obj, const char *name, Error **errp); > void visit_type_number(Visitor *v, double *obj, const char *name, Error > **errp); > +void visit_start_carray(Visitor *v, void **obj, const char *name, > + size_t elem_count, size_t elem_size, Error **err

Re: [Qemu-devel] [PATCH 0/2 v4] Add Windows support for time resync by qemu-ga

2013-03-13 Thread Eric Blake
ommand implementation has already > been accepted, the reference link: Series: Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V9 00/14] qmp/hmp interfaces for internal snapshot info

2013-03-13 Thread Eric Blake
I want to see data on image.raw, as well as on snapshots a, b, and c, all in one command. For my example, 'images' would be a three-element array, with element 0 describing top.qcow2 and its two internal snapshots, element 1 describing middle.qcow2 and its snapshot, and element 2 descr

Re: [Qemu-devel] [PATCH V9 01/14] block: move bdrv_snapshot_find() to block/snapshot.c

2013-03-13 Thread Eric Blake
lders. You don't have to ask anyone to exercise it. Cool - I like that explanation. In that case, my concern has been answered, and you are free to add: Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org sig

Re: [Qemu-devel] [PATCH V9 04/14] block: move collect_snapshots() and collect_image_info() to block/qapi.c

2013-03-13 Thread Eric Blake
On 03/12/2013 01:41 PM, Eric Blake wrote: > On 03/11/2013 05:23 AM, Wenchao Xia wrote: >> This patch adds block/qapi.c and moves the functions there. To avoid >> conflict and tip better, macro in header file is BLOCK_QAPI_H instead >> of QAPI_H. The moving is for making

Re: [Qemu-devel] [PATCH V9 12/14] block: move dump_human_image_info() to block/qapi.c

2013-03-13 Thread Eric Blake
e/block/qapi.h |1 + > qemu-img.c | 69 > +- > 3 files changed, 69 insertions(+), 68 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.or

Re: [Qemu-devel] [PATCH] Introduce query-cpu-max QMP command and cpu_max HMP counterpart

2013-03-13 Thread Eric Blake
x | 14 ++ > hmp.c| 15 +++ > hmp.h| 1 + > qapi-schema.json | 11 +++ > qmp-commands.hx | 22 ++ > vl.c | 5 + > 6 files changed, 68 insertions(+) Reviewed-by: Eric Blake -- Eric Bl

Re: [Qemu-devel] [PATCH 6/9] asn1_output-visitor.diff

2013-03-13 Thread Eric Blake
} > + } > + > +while (shift >= 0) { > +buf[2+c] = (val >> shift); Another case of spaces around binary operator (I didn't look closely, so you may want to scrub the entire patch for more instances than what I saw on a casual quick read) -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 7/9] asn1_input-visitor.diff

2013-03-13 Thread Eric Blake
gt; +case 0x40: > +num.mpn.sign = ((number.first & 0x1) != 0); > +num.mpn.biased_exponent = ~0; > +num.mpn.mantissa_low = 0; > +num.mpn.mantissa_high = 0; > +*obj = num.v_double; Is this really portable enough? In other words, do we rea

Re: [Qemu-devel] [PATCH 9/9] update_maintainers.diff

2013-03-13 Thread Eric Blake
++ > 1 file changed, 8 insertions(+) > +++ b/MAINTAINERS > +F: include/qapi/ber* > \ No newline at end of file Fix that. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] Problems with live migration

2013-03-13 Thread Eric Blake
asking on the libvirt list, be sure to mention what version of libvirtd is running on nova-compute-lnx001. Meanwhile, when libvirtd gets in a stuck lock state, you can often restart libvirtd to get past that point, with no negative consequences to your running qemu guests. -- Eric Blake

Re: [Qemu-devel] [PATCH 3/9] two new file wrappers

2013-03-13 Thread Eric Blake
nstead of size_t for offset; and size_t instead of int for size (which implies ssize_t for return value)? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PULL v4 00/20] chardev: qapi conversion continued

2013-03-14 Thread Eric Blake
On 03/14/2013 02:57 AM, Gerd Hoffmann wrote: > Hi, > > v5 if the series, completing the chardev convwersion to qapi. v4 in subject, v5 in contents - hope Anthony's scripts don't get confused... -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtuali

Re: [Qemu-devel] [PATCH 07/13] qcow2: Allow lazy refcounts to be enabled on the command line

2013-03-14 Thread Eric Blake
eader flags that were set when creating the > image. Question - how would I get at the lazy_refcounts option when hotplugging a drive after the fact? In other words, we need to wire up access to per-format options into QMP, to match what we have done on the command line. -- Eric Blake eblake

Re: [Qemu-devel] [PATCH] block: drop bs_snapshots global variable

2013-03-14 Thread Eric Blake
Stefan Hajnoczi > --- > block.c | 28 > include/block/block.h | 1 - > savevm.c | 19 +++ > 3 files changed, 15 insertions(+), 33 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-326

Re: [Qemu-devel] [PATCH v14 4/4] pvevent: add document to describe the usage

2013-03-14 Thread Eric Blake
specifying `-device pv-event' in the qemu command > + line. > + > +2. load pvevent device driver in guest OS. Missing is a sentence stating that the management app then has the option of waiting for GUEST_PANICKED events, and/or polling for guest-panicked RunState, to learn when

Re: [Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-14 Thread Eric Blake
- do you need to update other locations (such as BlockJobInfo's @type, and in QMP/qmp-events.txt under BLOCK_JOB_CANCELLED/BLOCK_JOB_COMPLETED @type) to call out what string is used for the new job type? For that matter, is it finally time to introduce a new enum type for all valid block job

Re: [Qemu-devel] [RFC 4/8] block: add block_backup QMP command

2013-03-14 Thread Eric Blake
time). The concept is indeed useful; more so if we can wire this into 'transaction' to capture multiple disks at the same point in time. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [libvirt] [PATCH v8 0/3] DEVICE_DELETED event

2013-03-14 Thread Eric Blake
f-by: Michael S. Tsirkin Series: Reviewed-by: Eric Blake > > If there are no more comments I'll stick this on my > pci branch. Of course, libvirt still has to still add a patch to start using this event, but I think we have reached a good design, including consideration for distr

Re: [Qemu-devel] [libvirt] [PATCH v6 1/3] qdev: DEVICE_DELETED event

2013-03-14 Thread Eric Blake
, I didn't know that. >> >> Just to make sure: does this automatic removal completion send >> DEVICE_DELETED events? > > With my patch, it does. Good. That is the best behavior, if libvirt is going to start relying on the event as a means to avoid polling on all but l

Re: [Qemu-devel] [PATCH 0/2 v7] Add Windows support for time resync by qemu-ga

2013-03-15 Thread Eric Blake
been accepted, the reference link: > > http://article.gmane.org/gmane.comp.emulators.qemu/198472 > > Notes: > Now It was tested on Windows XP SP3 and Windows 7. > Please comment! Series: Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtu

Re: [Qemu-devel] [PATCH] QMP: TPM QMP and man page documentation updates

2013-03-15 Thread Eric Blake
On 03/15/2013 11:17 AM, Corey Bryant wrote: > Signed-off-by: Corey Bryant > --- > qemu-options.hx | 3 ++- > qmp-commands.hx | 59 > + > 2 files changed, 61 insertions(+), 1 deletion(-) Reviewed-by: Eric Blake -- E

Re: [Qemu-devel] [PATCH 0/2] documentation fixups for the qga schema

2013-03-15 Thread Eric Blake
, 15 insertions(+), 3 deletions(-) Series: Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] Is is a bug? (window scale)

2013-03-18 Thread Eric Blake
e (green > arrow). Is it a bug? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2] exec: Fix non-power-of-2 sized accesses

2013-08-16 Thread Eric Blake
sb of x. >> >> l = 5, we want 4, not 1. Thanks, > > It still doesn't require a loop. > > l = 1 << (31 - clz32(l)); or even pow2floor() declared in qemu-common.h and implemented in cutils.c. No need to reinvent what we already have. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2 4/7] smbios: Make multiple -smbios type= accumulate sanely

2013-08-17 Thread Eric Blake
"Invalid release"); As in v1, I'm not a fan of using sscanf for integer parsing (it has undefined behavior if the user provides a value that overflows the destination type); but as this is code motion, it does not invalidate my review. -- Eric Blake eblake redhat com+1-919-

Re: [Qemu-devel] [PATCH v2 0/7] smbios cleanup & nicer defaults for type 1

2013-08-17 Thread Eric Blake
w still stands. The series looks good to me. > > (And I don't have the slightest clue why it hasn't been merged after > your Reviewed-by; it was posted, and reviewed, and pinged, before the > hard freeze for 1.6) I have no idea what happened either. -- Eric Bla

Re: [Qemu-devel] [PATCH] qcow2: Change default for new images to compat=1.1

2013-08-19 Thread Eric Blake
rmats when needed; that should land in libvirt before qmeu 1.7, so from that point of view, I have no objection to this. Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] Fixup some dynamic casts in the Qemu device tree to correspond to the QOM type-checking system. These patches change from using Linux kernel style upcasts to typesafe object o

2013-08-19 Thread Eric Blake
On 08/19/2013 12:33 PM, Mike Day wrote: Your subject line is atrociously long. Please put a blank line between the summary (ca. 60 characters or less) and the rest of your commit message. 'git shortlog -30' will give you a hint on typical summary naming. -- Eric Blake eblake

Re: [Qemu-devel] [PATCH v2] monitor: print the invalid char in error message

2013-08-20 Thread Eric Blake
changed, 7 insertions(+), 3 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2 2/2] osdep: warn if opening a file O_DIRECT on tmpfs fails

2013-08-21 Thread Eric Blake
Shetty > Signed-off-by: Stefan Hajnoczi > --- > util/osdep.c | 19 +++ > 1 file changed, 19 insertions(+) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 11/18] migration: introduce capability localhost

2013-08-21 Thread Eric Blake
se 'local:...' are rejected unless you first use migrate-set-capabilities to turn on localhost migration support. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] vl: allow "cont" from panicked state

2013-08-21 Thread Eric Blake
e question that the behavior is machine-type dependent (-M pc-1.5 behaves differently than -M pc-1.6). > > I suggest that this patch be included in an 1.6.1 release as soon as > possible, and perhaps in the 1.5 branch too. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Paolo Bo

Re: [Qemu-devel] [RFC PATCH v2 0/3] Start fixing the pvpanic mess

2013-08-21 Thread Eric Blake
the status quo (the tag is effectively ignored because without pvpanic device, there is no way for libvirt to learn if a guest panicked). Or does it mean we expose a new sub-element of , similar to how we have a subelement that controls whether the memballoon device is show to the guest, and j

Re: [Qemu-devel] [RFC PATCH v2 0/3] Start fixing the pvpanic mess

2013-08-21 Thread Eric Blake
> may be fine, but it doesn't seem very user-friendly. No less friendly than having a device, and certainly automatable via libosinfo integration into virt-install. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC PATCH 1/4] block/backup: delete target after completion callback

2013-08-21 Thread Eric Blake
-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC PATCH 3/4] qmp: Add "snapshot=" option to nbd-server-add

2013-08-21 Thread Eric Blake
permission to create temp files. Does that mean that libvirt still has to use the long-hand pre-creation rather than this new shorthand? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [RFC PATCH 3/4] qmp: Add "snapshot=" option to nbd-server-add

2013-08-21 Thread Eric Blake
', '*writable': > 'bool'} } > +{ 'command': 'nbd-server-add', 'data': {'device': 'str', '*writable': 'bool', > +'*snapshot': 'bool'} } When documenting the new option,

Re: [Qemu-devel] [PATCH v2 2/2] osdep: warn if opening a file O_DIRECT on tmpfs fails

2013-08-21 Thread Eric Blake
asty races in unlinking a just-created file. I'm starting to think Dan's suggestion has merit after all, if done correctly. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PULL 08/11] add "test-int128" and "test-bitops" to .gitignore

2013-08-21 Thread Eric Blake
h myself, nor to care if you end up keeping the split .gitignore, but if I did care, I'd be consolidating in the opposite direction (move tests/.gitignore to the toplevel). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V8 01/11] NUMA: add NumaOptions, NumaNodeOptions and NumaMemOptions

2013-08-21 Thread Eric Blake
HMP are already capable of converting shorthand like 1G into proper byte counts for use in QAPI). > + > +## > +# @NumaMemOptions > +# > +# Set memory information of guest NUMA node. > +# > +# @nodeid: #optional NUMA node ID > +# > +# @size: #optional memory size of t

Re: [Qemu-devel] [PATCH V8 01/11] NUMA: add NumaOptions, NumaNodeOptions and NumaMemOptions

2013-08-21 Thread Eric Blake
atory (here, and in NumaNodeOptions)? > > The defaults are all consistent with original behaviour. If nodeid is > omitted, the option will be assigned node by node from node0. What will be assigned? If I omit both nodeid and size, there's nothing left in the object I'm pas

Re: [Qemu-devel] [PATCH ] qemu-help: add category headlines

2013-08-22 Thread Eric Blake
aped -help output, changing it to use stdout would be an incompatible change. But now that libvirt uses QMP, I would also welcome a change to use stdout (but also fall in the category of "not enough of a bother for ME to fix it). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V8 01/11] NUMA: add NumaOptions, NumaNodeOptions and NumaMemOptions

2013-08-22 Thread Eric Blake
tp://thread.gmane.org/gmane.comp.emulators.qemu/225678/focus=225714 My fault for coming into the conversation late, but a note to that effect in the commit log, and/or in the description of why this type is listed in the qapi document, would be handy. -- Eric Blake eblake redhat com+1-919-301-3266 L

Re: [Qemu-devel] [PATCH 2/2] osdep: warn if open(O_DIRECT) on fails with EINVAL

2013-08-22 Thread Eric Blake
rying about guarantees for synchronous I/O). But enough of that side diversion - that one #define of O_DIRECT is not related to the file you are touching. I like the elegance of your patch (nicer than the race in my double-open attempt). Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH 2/2] osdep: warn if open(O_DIRECT) on fails with EINVAL

2013-08-22 Thread Eric Blake
On 08/22/2013 01:31 PM, Alex Bligh wrote: > > > --On 22 August 2013 11:57:56 -0600 Eric Blake wrote: > >> # define O_DIRECT 0 >> >> so that the rest of the code can just blindly use open(...,|O_DIRECT) >> (provided, of course, that not having O_DIRECT semant

Re: [Qemu-devel] [PATCHv4] add qemu-img convert -C option (skip target volume creation)

2013-08-22 Thread Eric Blake
ser can add -C as a synonym for -n (at least, until upstream DOES add a -C with different semantics), or rewrite their scripts. I too would like to reuse -n for consistency. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [libvirt] pvpanic plans?

2013-08-22 Thread Eric Blake
On 08/22/2013 01:41 PM, Laszlo Ersek wrote: > On 08/22/13 21:19, Paolo Bonzini wrote: >> Il 22/08/2013 19:15, Laszlo Ersek ha scritto: 2) On all versions, will only work if the element is there. >>> >>> I like this, because, if on_crash doesn't work without panic_notifier >>> *at all*, then w

Re: [Qemu-devel] [PATCH] slirp/arp_table.c: Avoid shifting into sign bit of signed integers

2013-08-23 Thread Eric Blake
Peter Maydell > --- > slirp/arp_table.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH] block/qcow2.h: Avoid "1LL << 63" (shifts into sign bit)

2013-08-23 Thread Eric Blake
AG > definitions to use the ULL suffix rather than LL, though only the > shift by 63 is undefined behaviour. > > Signed-off-by: Peter Maydell > --- > block/qcow2.h |6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Eric Blake -- Eric Blake

Re: [Qemu-devel] [PATCH v2] target-i386: Fix segment cache dump

2013-08-23 Thread Eric Blake
B_MASK || env->hflags & HF_LMA_MASK) +? "DS " : "DS16"); -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH V18 24/25] qapi: query-command-line-options outputs def_value_str

2013-08-27 Thread Eric Blake
r, 1.6 is already released, so this should now be: @default #optional string representation of the default used if the option is omitted (since 1.7). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2 7/7] smbios: Set system manufacturer, product & version by default

2013-08-27 Thread Eric Blake
can provide better defaults: >> manufacturer QEMU, product & version taken from QEMUMachine desc and >> name. >> >> Take care to do this only for new machine types, of course. >> >> Signed-off-by: Markus Armbruster >> Reviewed-by: Eric Blake >

Re: [Qemu-devel] [PATCH V2 1/3] qemu-iotests: add unix socket help program

2013-08-27 Thread Eric Blake
uot;, > +strerror(errno)); > +return 1; > +} > +fd = strtol(argv[2], NULL, 10); > +if (errno) { > +fprintf(stderr, "Failed in strtol for fd to send, reason: %s.\n", > +strerror(errno)); > +r

Re: [Qemu-devel] [PATCH v2] qcow2: Change default for new images to compat=1.1

2013-08-27 Thread Eric Blake
of using the new format outweigh the pain. > > qemu-iotests already runs with compat=1.1 by default. > > Signed-off-by: Kevin Wolf > --- > block/qcow2.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake

Re: [Qemu-devel] [libvirt] [PATCH v2] kvm: warn if num cpus is greater than num recommended

2013-08-27 Thread Eric Blake
commended max, or the larger kernel absolute max? Which of the two values does the QMP 'MachineInfo' type return in its 'cpu-max' field during the 'query-machines' command? Should we be modifying QMP to return both values, so that libvirt can also expose the logic to the

Re: [Qemu-devel] [PATCH 1/3] block: Image file option amendment

2013-08-28 Thread Eric Blake
nificant amount of time; please consider adding support for -p (progress meter) as part of this addition. (I'm already bothered by the fact that the 'commit' operation lacks a progress meter; and even 'check' might have cases where it could be long-running) -- Eric Blake eb

Re: [Qemu-devel] [libvirt] [PATCH v2] kvm: warn if num cpus is greater than num recommended

2013-08-28 Thread Eric Blake
implies touching the stack (because someone, somewhere in the stack, will have good reason for setting policy different than the lowest layer); fix the maximum instead, and the whole stack complies without having to worry about policy. IMO, this is a case where fewer knobs is better. -- Eric Blak

Re: [Qemu-devel] [PATCH V18 01/25] qemu-option: add def_value_str in QemuOptDesc struct and rewrite qemu_opts_print

2013-08-28 Thread Eric Blake
t would be skipped. > > v17->v18: > 1) print opt->value.uint directly while type is QEMU_OPT_SIZE. When making a change to a previously-reviewed patch, unrelated to the reviewer's comments... > > Reviewed-by: Eric Blake > Signed-off-by: Dong Xu Wang ...it is prob

Re: [Qemu-devel] [PATCH V18 02/25] qemu-option: avoid duplication of default value in QemuOpts

2013-08-28 Thread Eric Blake
n NULL. > > Signed-off-by: Dong Xu Wang > Reviewed-by: Eric Blake > > v13->v14: > 1) change code style. > 2) assert errors. > > Signed-off-by: Dong Xu Wang > > Conflicts: > util/qemu-option.c > --- Awkward. You should never have a 'C

Re: [Qemu-devel] [RFC][PATCH 4/6] qmp: add 'cpu-del' command support

2013-08-29 Thread Eric Blake
> ## > { 'command': 'cpu-add', 'data': {'id': 'int'} } > > +# @cpu-del > + > +# Deletes CPU with specified ID > +# > +# @id: ID of CPU to be deleted, valid values [0..max_cpus) > +# > +# Returns: Nothing on success >

Re: [Qemu-devel] [PATCH] qcow2-refcount: Snapshot update for zero clusters

2013-08-29 Thread Eric Blake
fixing) -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2 1/3] block: Image file option amendment

2013-08-29 Thread Eric Blake
ename}. Only the format @code{qcow2} supports this. We might add support for other file formats in the future; we'd have to remember to update this sentence at that time. Could you use a more generic statement, such as "not all file formats support this", so we don't end up with stale docs if we forget to touch it down the road? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v2 2/3] qcow2: Implement bdrv_amend_options

2013-08-29 Thread Eric Blake
an error will at least alert someone to the fact that they need to add some (potentially complicated) code here? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v4 17/21] docs, qapi: document qemu-img map

2013-08-29 Thread Eric Blake
On 08/29/2013 08:00 AM, Paolo Bonzini wrote: > Eric Blake also requested including the output in qapi-schema.json, > so that it is published through the introspection mechanism. > > Signed-off-by: Paolo Bonzini > --- > qapi-schema.json | 29 + >

Re: [Qemu-devel] [PATCH 02/18] qapi-types.py: Implement 'base' for unions

2013-08-29 Thread Eric Blake
Any downstreamers that plans to backport blockdev-add would also backport this as part of their efforts. I don't see that as any different from any other backport effort that includes requiring multiple non-contiguous pre-req patches. We don't need it on the 1.6 stable tree, and do

Re: [Qemu-devel] [PATCH v4 04/21] block: keep bs->total_sectors up to date even for growable block devices

2013-08-29 Thread Eric Blake
t; v4: use cache in bdrv_getlength > block.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [Qemu-devel] [PATCH v4 05/21] block: make bdrv_co_is_allocated static

2013-08-29 Thread Eric Blake
> Reviewed-by: Eric Blake > Signed-off-by: Paolo Bonzini Here (and on others in the series where you carried forward a prior review), the reviewed-by tag is still valid. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signa

Re: [Qemu-devel] [PATCH v4 06/21] block: do not use ->total_sectors in bdrv_co_is_allocated

2013-08-29 Thread Eric Blake
On 08/29/2013 08:00 AM, Paolo Bonzini wrote: > This is more robust when the device has removable media. > > Signed-off-by: Paolo Bonzini > --- > block.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat

Re: [Qemu-devel] [PATCH v4 08/21] block: expect errors from bdrv_co_is_allocated

2013-08-29 Thread Eric Blake
ite loops. > > Fix the callers to always look for errors. > > Cc: qemu-sta...@nongnu.org > Reviewed-by: Eric Blake > Signed-off-by: Paolo Bonzini > --- > v4: also fix bdrv_commit, cow_read, img_convert, alloc_f Hmm - the v4 changelog implies things changed since my rev

<    2   3   4   5   6   7   8   9   10   11   >