Block patches for 2.5.0-rc3
The following changes since commit 9d7b969ea6d9663a94760c6c131481b366f4d38a:
Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20151201' into staging (2015-12-02 10:16:53 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.git tags/for-upstream
for you to fetch changes up to ab7fe3a29ab1c6f5a1fff864e455d6d53dde62b5:
Merge remote-tracking branch 'mreitz/tags/pull-block-for-kevin-2015-12-02' into queue-block (2015-12-02 16:38:03 +0100)
----------------------------------------------------------------
Block layer patches
----------------------------------------------------------------
Kevin Wolf (2):
qcow2: Fix potential qemu-img check crash on 32 bit hosts
Merge remote-tracking branch 'mreitz/tags/pull-block-for-kevin-2015-12-02' into queue-block
Michael S. Tsirkin (1):
blkdebug: silence warning under qtest
block/blkdebug.c | 9 +++++++-- block/qcow2-refcount.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-)
[Qemu-devel] [PULL 1/2] qcow2: Fix potential qemu-img check crash on 32 bit hosts
This crash was caught with qemu-iotests test case 138.
Commit b6d36de already fixed a few 32 bit truncation bugs that could cause qemu-img check to allocate too little memory and consequently it would segfault. On 32 bit hosts, there is one more place that needs to be fixed because size_t was involved in the calculation and is a 32 bit type there.
--- block/qcow2-refcount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/qcow2-refcount.c +1 -1
@@ -1244,7 +1244,7 @@ fail:/* refcount checking functions */ -static size_t refcount_array_byte_size (BDRVQcow2State *s,uint64_t entries) +static uint64_t refcount_array_byte_size (BDRVQcow2State *s,uint64_t entries) {/* This assertion holds because there is no way we can address more than * 2^(64 - 9) clusters at once (with cluster size 512 = 2^9, and because
Signature · 1 line
1.8.3.1
[Qemu-devel] [PULL 2/2] blkdebug: silence warning under qtest
In reply to Kevin WolfFrom: "Michael S. Tsirkin" <[email protected]>
make check always outputs warnings, this
is not nice. Disable blkdebug warnings under qtest.
Message-id: [email protected]
--- block/blkdebug.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
block/blkdebug.c +7 -2
@@ -30,6 +30,7 @@#include "qapi/qmp/qdict.h" #include "qapi/qmp/qint.h" #include "qapi/qmp/qstring.h" +#include "sysemu/qtest.h" typedef struct BDRVBlkdebugState { int state;
@@ -583,9 +584,13 @@ static void suspend_request(BlockDriverState *bs, BlkdebugRule *rule)remove_rule (rule);QLIST_INSERT_HEAD (&s->suspended_reqs, &r, next); -printf ("blkdebug: Suspended request '%s'\n" , r.tag); +if (!qtest_enabled ()) { +printf ("blkdebug: Suspended request '%s'\n" , r.tag); + }qemu_coroutine_yield (); -printf ("blkdebug: Resuming request '%s'\n" , r.tag); +if (!qtest_enabled ()) { +printf ("blkdebug: Resuming request '%s'\n" , r.tag); + }QLIST_REMOVE (&r, next);g_free (r.tag);
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 22 lines · Kevin Wolf
The following changes since commit
9d7b969ea6d9663a94760c6c131481b366f4d38a:Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20151201' into staging (2015-12-02 10:16:53 +0000)
are available in the git repository at:
git://repo.or.cz/qemu/kevin.gittags/for-upstreamfor you to fetch changes up to
ab7fe3a29ab1c6f5a1fff864e455d6d53dde62b5:Merge remote-tracking branch 'mreitz/tags/pull-block-for-kevin-2015-12-02' into queue-block (2015-12-02 16:38:03 +0100)
----------------------------------------------------------------
Block layer patches
----------------------------------------------------------------
Kevin Wolf (2):
qcow2: Fix potential qemu-img check crash on 32 bit hosts
Merge remote-tracking branch 'mreitz/tags/pull-block-for-kevin-2015-12-02' into queue-block
Quoted 6 lines
Michael S. Tsirkin (1):
blkdebug: silence warning under qtestblock/blkdebug.c | 9 +++++++-- block/qcow2-refcount.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-)
Applied, thanks.
-- PMM