Re: [Qemu-devel] [PATCH] virtio-scsi Fix some endian bugs with virtio-scsi

2012-11-22 Thread Paolo Bonzini
Il 23/11/2012 06:08, David Gibson ha scritto: > The virtio-scsi specification does not specify the correct endianness for > fields in the request structure. It's therefore best to assume that it is > "guest native" endian since that's the (stupid and poorly defined) norm in > virtio. Indeed. > H

Re: [Qemu-devel] [PATCH 1/5] RFC: Efficient VM backup for qemu (v1)

2012-11-22 Thread Dietmar Maurer
> In short, the idea is that you can stick filters on top of a > BlockDriverState, so > that any read/writes (and possibly more requests, if necessary) are routed > through the filter before they are passed to the block driver of this BDS. > Filters would be implemented as BlockDrivers, i.e. you c

Re: [Qemu-devel] [PATCH 1/5] RFC: Efficient VM backup for qemu (v1)

2012-11-22 Thread Dietmar Maurer
> > Yup, it's already not too bad. I haven't looked into it in much > > detail, but I'd like to reduce it even a bit more. In particular, the > > backup_info field in the BlockDriverState feels wrong to me. In the > > long term the generic block layer shouldn't know at all what a backup > > is, and

[Qemu-devel] [PATCH V6 00/10] replace QEMUOptionParameter with QemuOpts parser

2012-11-22 Thread Dong Xu Wang
Patch 1-3 are from Luiz, added Markus's comments, discussion could be found here: http://lists.nongnu.org/archive/html/qemu-devel/2012-07/msg02716.html Patch 3 was changed according Paolo's comments. Patch 4-5: because qemu_opts_create can not fail while id is null, so create function qemu_opts_c

[Qemu-devel] [PATCH V6 02/10] qemu-option: qemu_opts_validate(): fix duplicated code

2012-11-22 Thread Dong Xu Wang
Use opts_accepts_any() and find_desc_by_name(). Signed-off-by: Luiz Capitulino Signed-off-by: Dong Xu Wang --- qemu-option.c | 14 +++--- 1 files changed, 3 insertions(+), 11 deletions(-) diff --git a/qemu-option.c b/qemu-option.c index 375daaa..74321bb 100644 --- a/qemu-option.c +++

[Qemu-devel] [PATCH V6 05/10] use qemu_opts_create_nofail

2012-11-22 Thread Dong Xu Wang
We will use qemu_opts_create_nofail function, it can make code more readable. Signed-off-by: Dong Xu Wang --- blockdev.c |2 +- hw/watchdog.c |2 +- qemu-config.c |4 ++-- qemu-img.c |2 +- qemu-sockets.c | 16 vl.c | 12 +--- 6 fi

[Qemu-devel] [PATCH V6 03/10] qemu-option: qemu_opt_set_bool(): fix code duplication

2012-11-22 Thread Dong Xu Wang
It will set opt->str in qemu_opt_set_bool, without opt->str, there will be some potential bugs. These are uses of opt->str, and what happens when it isn't set: * qemu_opt_get(): returns NULL, which means "not set". Bug can bite when value isn't the default value. * qemu_opt_parse(): passes NU

[Qemu-devel] [PATCH V6 01/10] qemu-option: opt_set(): split it up into more functions

2012-11-22 Thread Dong Xu Wang
The new functions are opts_accepts_any() and find_desc_by_name(), which are also going to be used by qemu_opts_validate() (see next commit). This also makes opt_set() slightly more readable. Signed-off-by: Luiz Capitulino Signed-off-by: Dong Xu Wang --- qemu-option.c | 40 +++

[Qemu-devel] [PATCH V6 09/10] Use QemuOpts support in block layer

2012-11-22 Thread Dong Xu Wang
This patch will use QemuOpts related functions in block layer, add a member bdrv_create_options to BlockDriver struct, it will return a QemuOptsList pointer, which includes the image format's create options. And create options's primary consumer is block creating related functions, so modify them

<    1   2   3