Re: [Qemu-devel] [PATCH v3 1/7] bootindex: add modify_boot_device_path function

2014-07-26 Thread 陈梁
Hi > +if (bootindex >= 0) { > +node = g_malloc0(sizeof(FWBootEntry)); > +node->bootindex = bootindex; > +if (suffix) { > +node->suffix = g_strdup(suffix); > +} else if (old_entry) { > +node->suffix = g_strdup(old_entry->suffix); > +

[Qemu-devel] [PATCH alt 3/7] qemu-img: Fix insignifcant memleak

2014-07-26 Thread Max Reitz
As soon as options is set in img_amend(), it needs to be freed before the function returns. This leak is rather insignifcant, as qemu-img will exit subsequently anyway, but there's no point in not fixing it. Signed-off-by: Max Reitz --- qemu-img.c | 4 +++- 1 file changed, 3 insertions(+), 1 del

[Qemu-devel] [PATCH alt 2/7] qemu-img: Add progress output for amend

2014-07-26 Thread Max Reitz
Now that bdrv_amend_options() supports a status callback, use it to display a progress report. Signed-off-by: Max Reitz --- qemu-img.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 90d6b79..a06f425 100644 --- a/qemu-

[Qemu-devel] [PATCH alt 7/7] iotests: Expand test 061

2014-07-26 Thread Max Reitz
Add some tests for progress output to 061. Signed-off-by: Max Reitz --- tests/qemu-iotests/061 | 27 +++ tests/qemu-iotests/061.out | 32 tests/qemu-iotests/group | 2 +- 3 files changed, 60 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH alt 1/7] block: Add status callback to bdrv_amend_options()

2014-07-26 Thread Max Reitz
Depending on the changed options and the image format, bdrv_amend_options() may take a significant amount of time. In these cases, a way to be informed about the operation's status is desirable. Since the operation is rather complex and may fundamentally change the image, implementing it as AIO or

[Qemu-devel] [PATCH alt 6/7] block/qcow2: Simplify shared L2 handling in amend

2014-07-26 Thread Max Reitz
Currently, we have a bitmap for keeping track of which clusters have been created during the zero cluster expansion process. This was necessary because we need to properly increase the refcount for shared L2 tables. However, now we can simply take the L2 refcount and use it for the cluster allocat

[Qemu-devel] [PATCH alt 4/7] block/qcow2: Implement status CB for amend

2014-07-26 Thread Max Reitz
The only really time-consuming operation potentially performed by qcow2_amend_options() is zero cluster expansion when downgrading qcow2 images from compat=1.1 to compat=0.10, so report status of that operation and that operation only through the status CB. For this, approximate the progress as th

[Qemu-devel] [PATCH alt 5/7] block/qcow2: Make get_refcount() global

2014-07-26 Thread Max Reitz
Reading the refcount of a cluster is an operation which can be useful in all of the qcow2 code, so make that function globally available. Signed-off-by: Max Reitz --- block/qcow2-refcount.c | 23 --- block/qcow2.h | 2 ++ 2 files changed, 14 insertions(+), 11 deleti

[Qemu-devel] [PATCH alt 0/7] block/qcow2: Improve zero cluster expansion

2014-07-26 Thread Max Reitz
The main purpose of this series is to add a progress report to qemu-img amend. This is achieved by adding a callback function to bdrv_amend_options() - the reasons for this choice are explained in patch 1. While adapting qcow2's expand_zero_clusters_in_l1() accordingly, I noticed a way to simplify

[Qemu-devel] Possible null-ptr dereference

2014-07-26 Thread mateusz.krzywicki
Hey, Found a little bug in latest qemu: In function: static int blk_send_response_one(struct ioreq *ioreq) File: qemu\hw\block\xen_disk.c Code: default:dst = NULL;}memcpy(dst, &resp, sizeof(resp)); Just add simple check for dst and it will be all cool ;-) Best regards,Mateusz K

Re: [Qemu-devel] [PATCH 3/3] intel-iommu: add Intel IOMMU emulation to q35 and add a machine option "vtd" as a switch

2014-07-26 Thread Jan Kiszka
On 2014-07-22 17:47, Le Tan wrote: > Add Intel IOMMU emulation to q35 chipset and expose it to the guest. > 1. Add a machine option. Users can use "-machine vtd=on|off" in the command > line to enable/disable Intel IOMMU. The default is off. Better call it "iommu". We could once reuse the switch w

Re: [Qemu-devel] [PATCH for-2.1] target-arm: Fix bit test in sp_el0_access

2014-07-26 Thread Peter Maydell
On 26 July 2014 08:26, Stefan Weil wrote: > Static code analyzers complain about a dubious & operation used for a > boolean value. The code does not test the PSTATE_SP bit as it should. > > Cc: Peter Maydell > Signed-off-by: Stefan Weil > --- > > Hello Peter, > > I'm not sure whether the "!" is

Re: [Qemu-devel] [PATCH] [RFC] Add machine type pc-1.0-qemu-kvm for live migrate compatibility with qemu-kvm

2014-07-26 Thread Paolo Bonzini
Il 25/07/2014 18:01, Alex Bligh ha scritto: > ping: anyone got any views on this one? Just wait for 2.1 to get out of the door. :) Paolo > On 22 Jul 2014, at 19:43, Alex Bligh wrote: > >> Add a machine type pc-1.0-qemu-kvm for live migrate compatibility >> with qemu-kvm version 1.0. >> >> Sign

[Qemu-devel] [PATCH for-2.1] target-arm: Fix bit test in sp_el0_access

2014-07-26 Thread Stefan Weil
Static code analyzers complain about a dubious & operation used for a boolean value. The code does not test the PSTATE_SP bit as it should. Cc: Peter Maydell Signed-off-by: Stefan Weil --- Hello Peter, I'm not sure whether the "!" is correct at all, because code and comment don't seem to match

[Qemu-devel] [PULL for-2.1] Trivial patch for 2014-07-26

2014-07-26 Thread Michael Tokarev
There's just one trivial patch this time, fixing another occurence of "allows to" in help text. Please consider applying for 2.1. Thanks, /mjt The following changes since commit c60a57ff497667780132a3fcdc1500c83af5d5c0: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into st

[Qemu-devel] [PULL] qemu-options: fix another allows-to for -net l2tpv3

2014-07-26 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- qemu-options.hx |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index 9e54686..1549625 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1437,7 +1437,7 @@ DEF("net", HAS_ARG, QEMU_OPTION_net, "-n

Re: [Qemu-devel] [PATCH for-2.1 0/2] Fix migration failure due to ACPI tables size changes

2014-07-26 Thread Paolo Bonzini
Il 25/07/2014 18:17, Laszlo Ersek ha scritto: > In favor of your idea OTOH, as you explained, it would work for all > possible ACPI configurations, and not break for a random few ones like > Paolo's approach (talking about patch #2 of that set, the procedural > _PRT is great in any case). Note tha