[Qemu-block] [PATCH v2 for 2.10 2/8] docs: fix broken paths to docs/interop/qcow2.txt

2017-07-28 Thread Philippe Mathieu-Daudé
With the move of some docs to docs/interop on d59157ea05, a reference path was not updated. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Kevin Wolf --- docs/qcow2-cache.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt inde

Re: [Qemu-block] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Stefano Stabellini
On Fri, 28 Jul 2017, Olaf Hering wrote: > g_malloc0_n is available since glib-2.24. To allow build with older glib > versions use the generic g_new0, which is already used in many other > places in the code. > > Fixes commit 3284fad728 ("xen-disk: add support for multi-page shared rings") > > Sig

Re: [Qemu-block] [Qemu-devel] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Stefano Stabellini
On Fri, 28 Jul 2017, Philippe Mathieu-Daudé wrote: > Hi Olaf, > > On 07/28/2017 10:11 AM, Olaf Hering wrote: > > g_malloc0_n is available since glib-2.24. To allow build with older glib > > versions use the generic g_new0, which is already used in many other > > places in the code. > > Can you pr

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 7/7] qemu-iotests/059: Fix leaked image files

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:52PM +0200, Kevin Wolf wrote: > qemu-iotests 059 left a whole lot of image files behind in the scratch > directory because VMDK creates additional files for extents and cleaning > them up requires the original image intact (it parses qemu-img info > output to find all

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 1/7] qemu-iotests/041: Fix leaked scratch images

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:46PM +0200, Kevin Wolf wrote: > qemu-iotests 041 left quorum_snapshot.img and target.img behind in the > scratch directory. Make sure to clean up after completing the tests. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/041 | 4 +++- > 1 file changed, 3 i

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 6/7] qemu-iotests/063: Fix leaked image

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:51PM +0200, Kevin Wolf wrote: > qemu-iotests 063 left t.raw.raw1 behind in the scratch directory because > it used the wrong suffix. Make sure to clean it up after completing the > test. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/063 | 4 +--- > 1 file

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 5/7] qemu-iotests/162: Fix leaked temporary files

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:50PM +0200, Kevin Wolf wrote: > qemu-iotests 162 left qemu-nbd.pid behind in the scratch directory, and > potentially a file called '42' in the current directory. Make sure to > clean it up after completing the tests. > > Signed-off-by: Kevin Wolf > --- > tests/qemu

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 3/7] qemu-iotests/141: Fix image cleanup

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:48PM +0200, Kevin Wolf wrote: > qemu-iotests 141 attempted to use brace expansion to remove all images > with a single command. However, for this to work, the braces shouldn't > be quoted. > > With this fix, the tests correctly cleans up its scratch images. > > Signe

Re: [Qemu-block] [Qemu-devel] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Peter Maydell
On 28 July 2017 at 21:49, Philippe Mathieu-Daudé wrote: > Hi Olaf, > > On 07/28/2017 10:11 AM, Olaf Hering wrote: >> >> g_malloc0_n is available since glib-2.24. To allow build with older glib >> versions use the generic g_new0, which is already used in many other >> places in the code. > > > Can

Re: [Qemu-block] [Qemu-devel] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Philippe Mathieu-Daudé
Hi Olaf, On 07/28/2017 10:11 AM, Olaf Hering wrote: g_malloc0_n is available since glib-2.24. To allow build with older glib versions use the generic g_new0, which is already used in many other places in the code. Can you provide information about which distrib/release/version/[packages?] you

Re: [Qemu-block] [Qemu-devel] [PATCH 38/47] MAINTAINERS: update docs/interop/ entries

2017-07-28 Thread John Snow
On 07/28/2017 02:16 AM, Fam Zheng wrote: On Fri, 07/28 02:36, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 23de632424..54e35fdab9 100644 --- a/MAIN

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 0/7] qemu-iotests: Fix leaked temporary file fixes

2017-07-28 Thread Eric Blake
On 07/28/2017 08:14 AM, Kevin Wolf wrote: > This fixes leaked temporary files that are created during successful > runs of qemu-iotests for qcow2, raw and vmdk. More file leaks exist for > failing or interrupted tests, but this is something for another day. > > Kevin Wolf (7): > qemu-iotests/041

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 7/7] qemu-iotests/059: Fix leaked image files

2017-07-28 Thread Eric Blake
On 07/28/2017 08:14 AM, Kevin Wolf wrote: > qemu-iotests 059 left a whole lot of image files behind in the scratch > directory because VMDK creates additional files for extents and cleaning > them up requires the original image intact (it parses qemu-img info > output to find all extent files), but

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 1/7] qemu-iotests/041: Fix leaked scratch images

2017-07-28 Thread Eric Blake
On 07/28/2017 08:14 AM, Kevin Wolf wrote: > qemu-iotests 041 left quorum_snapshot.img and target.img behind in the > scratch directory. Make sure to clean up after completing the tests. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/041 | 4 +++- > 1 file changed, 3 insertions(+), 1 de

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 2/7] qemu-iotests: Remove blkdebug.conf after tests

2017-07-28 Thread Eric Blake
On 07/28/2017 08:14 AM, Kevin Wolf wrote: > qemu-iotests 074 and 179 left a blkdebug.conf behind the scratch s/behind/behind in/ > directory. Make sure to clean up after completing the tests. > > Signed-off-by: Kevin Wolf > --- -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: [Qemu-block] [Qemu-devel] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Eric Blake
On 07/28/2017 08:11 AM, Olaf Hering wrote: > g_malloc0_n is available since glib-2.24. To allow build with older glib s/is/is only/ > versions use the generic g_new0, which is already used in many other > places in the code. > > Fixes commit 3284fad728 ("xen-disk: add support for multi-page shar

Re: [Qemu-block] [Qemu-devel] [PULL 4/5] block: Skip implicit nodes in query-block/blockstats

2017-07-28 Thread Peter Maydell
On 24 July 2017 at 15:32, Kevin Wolf wrote: > Commits 0db832f and 6cdbceb introduced the automatic insertion of filter > nodes above the top layer of mirror and commit block jobs. The > assumption made there was that since libvirt doesn't do node-level > management of the block layer yet, it shoul

Re: [Qemu-block] [Qemu-devel] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-28 Thread Eric Blake
On 07/28/2017 01:53 PM, Markus Armbruster wrote: > Eric Blake writes: > >> Now that we have the qmp_cmd() helper, we can further simplify >> some of the tests by using it. >> >> Signed-off-by: Eric Blake >> --- >> } >> -resp = qmp("{'execute': 'qom-list-types'," >> - " 'a

Re: [Qemu-block] [Qemu-devel] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-28 Thread Markus Armbruster
Eric Blake writes: > Now that we have the qmp_cmd() helper, we can further simplify > some of the tests by using it. > > Signed-off-by: Eric Blake > --- > tests/device-introspect-test.c | 3 +-- > tests/ide-test.c | 2 +- > tests/libqos/libqos.c | 5 +++-- > tests/libq

Re: [Qemu-block] [Qemu-devel] [PATCH for 2.10 2/8] docs: fix broken paths to docs/interop/qcow2.txt

2017-07-28 Thread Eric Blake
On 07/27/2017 08:25 PM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé The commit message in 1/8 was a lot nicer, in referring to which commit broke the linkage. (When backporting patches, a very common thing to do is 'git log' and then grep for the commit id being backpor

Re: [Qemu-block] [Qemu-devel] [PATCH v2] iscsi: use scsi_create_task()

2017-07-28 Thread Marc-André Lureau
On Fri, Jul 28, 2017 at 6:58 PM Paolo Bonzini wrote: > On 28/07/2017 18:30, Marc-André Lureau wrote: > > The function does the same initialization, and matches with > > scsi_free_scsi_task() usage, and qemu doesn't need to know the > > allocator details. > > > > Signed-off-by: Marc-André Lureau

Re: [Qemu-block] [Qemu-devel] [PATCH v3 09/12] tests/libqos/pci: Clean up string interpolation into QMP input

2017-07-28 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Tue, Jul 25, 2017 at 04:15:20PM -0500, Eric Blake wrote: >> @@ -419,19 +420,18 @@ static void test_ivshmem_server_irq(void) >> static void test_ivshmem_hotplug(void) >> { >> const char *arch = qtest_get_arch(); >> -gchar *opts; >> +QObject *extra_args =

[Qemu-block] [PULL 1/1] nbd: fix memory leak in nbd_opt_go()

2017-07-28 Thread Eric Blake
From: Philippe Mathieu-Daudé nbd/client.c:385:12: warning: Potential leak of memory pointed to by 'buf' Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Eric Blake Message-Id: <20170727024224.22900-5-f4...@amsat.org> [introduced in commit 8ecaeae8] Signed-o

Re: [Qemu-block] [PATCH v2] iscsi: use scsi_create_task()

2017-07-28 Thread Paolo Bonzini
On 28/07/2017 18:30, Marc-André Lureau wrote: > The function does the same initialization, and matches with > scsi_free_scsi_task() usage, and qemu doesn't need to know the > allocator details. > > Signed-off-by: Marc-André Lureau > --- > block/iscsi.c | 30 +++--- > 1 fi

[Qemu-block] [PATCH v2 4/4] maint: Include bug-reporting info in --help output.

2017-07-28 Thread Eric Blake
These days, many programs are including a bug-reporting address, or better yet, a link to the project web site, at the tail of their --help output. However, we were not very consistent at doing so: only qemu-nbd and qemu-qa mentioned anything, with the latter pointing to an individual person inste

[Qemu-block] [PATCH v2 for-2.10 0/4] improved --version/--help tweaks

2017-07-28 Thread Eric Blake
Merge two previous postings. I'm not sure what tree this should go through (Paolo's miscellaneous patches?) Eric Blake (4): qemu-img: Sort sub-command names in --help qemu-io: Give more --version information qga: Give more --version information maint: Include bug-reporting info in --help o

[Qemu-block] [PATCH v2 2/4] qemu-io: Give more --version information

2017-07-28 Thread Eric Blake
Include the package version information (useful for detecting builds from git or downstream backports), and the copyright notice. Signed-off-by: Eric Blake --- qemu-io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qemu-io.c b/qemu-io.c index 4cfa41c8f9..ec175630a6 1006

[Qemu-block] [PATCH v2 1/4] qemu-img: Sort sub-command names in --help

2017-07-28 Thread Eric Blake
'amend' was the only sub-command not listed alphabetically; hoist it earlier, and separate the @end table block to make it easier to copy-and-paste the addition of future sub-commands. Signed-off-by: Eric Blake --- qemu-img-cmds.hx | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-)

[Qemu-block] [PATCH v2 3/4] qga: Give more --version information

2017-07-28 Thread Eric Blake
Include the package version information (useful for detecting builds from git or downstream backports), and the copyright notice. Signed-off-by: Eric Blake --- qga/main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qga/main.c b/qga/main.c index 1b381d0bf3..b64c7ac2a

Re: [Qemu-block] [Qemu-devel] [PATCH v3 09/12] tests/libqos/pci: Clean up string interpolation into QMP input

2017-07-28 Thread Eric Blake
On 07/28/2017 11:35 AM, Eric Blake wrote: >>> +QObject *extra_args = qobject_from_jsonf("{ 'shm': '%s', 'size': '1M' >>> }", >>> + tmpshm); >> > Passing '%s' through qobject_from_jsonf() is generally wrong (it would > produce ''...'' instead of the

Re: [Qemu-block] [Qemu-devel] [PATCH] xen-disk: use g_malloc0 to fix build

2017-07-28 Thread Markus Armbruster
Olaf Hering writes: > On Fri, Jul 28, Eric Blake wrote: > >> This version is prone to multiplication overflow (well, maybe not, but >> you have to audit for that). Wouldn't it be better to use: > > What could go wrong? > qemu will die either way, I think. An overflow in the size argument of mal

Re: [Qemu-block] [Qemu-devel] [PATCH v3 09/12] tests/libqos/pci: Clean up string interpolation into QMP input

2017-07-28 Thread Eric Blake
On 07/28/2017 08:05 AM, Stefan Hajnoczi wrote: > On Tue, Jul 25, 2017 at 04:15:20PM -0500, Eric Blake wrote: >> @@ -419,19 +420,18 @@ static void test_ivshmem_server_irq(void) >> static void test_ivshmem_hotplug(void) >> { >> const char *arch = qtest_get_arch(); >> -gchar *opts; >> +

[Qemu-block] [PATCH v2] iscsi: use scsi_create_task()

2017-07-28 Thread Marc-André Lureau
The function does the same initialization, and matches with scsi_free_scsi_task() usage, and qemu doesn't need to know the allocator details. Signed-off-by: Marc-André Lureau --- block/iscsi.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) v2: - set cdb_

Re: [Qemu-block] [PATCH v3 0/2] fix leaks in bdrv_open_driver()

2017-07-28 Thread Kevin Wolf
Am 14.07.2017 um 16:35 hat Manos Pitsidianakis geschrieben: > v3: > new commit: block: fix dangling bs->explicit_options in block.c > rework error paths in bdrv_open_driver() > v2: > move bdrv_unref_child(bs, bs->file) to bdrv_open_driver > do not set bs->drv to NULL if open succeeds Thanks, a

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 4/7] qemu-iotests/153: Fix leaked scratch images

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:49PM +0200, Kevin Wolf wrote: > qemu-iotests 153 left t.qcow2.c behind in the scratch directory. Make > sure to clean it up after completing the tests. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/153 | 1 + > 1 file changed, 1 insertion(+) > > diff --g

Re: [Qemu-block] [Qemu-devel] [PATCH for-2.10 2/7] qemu-iotests: Remove blkdebug.conf after tests

2017-07-28 Thread Jeff Cody
On Fri, Jul 28, 2017 at 03:14:47PM +0200, Kevin Wolf wrote: > qemu-iotests 074 and 179 left a blkdebug.conf behind the scratch > directory. Make sure to clean up after completing the tests. > > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/074 | 1 + > tests/qemu-iotests/179 | 1 + > 2 fi

Re: [Qemu-block] [PATCH v6 0/4] block: Block driver callbacks fixes

2017-07-28 Thread Kevin Wolf
Am 13.07.2017 um 17:30 hat Manos Pitsidianakis geschrieben: > This series makes implementing some of the bdrv_* callbacks easier for block > filters by passing requests to bs->file if bs->drv doesn't implement it > instead > of failing, and adding default bdrv_co_get_block_status() implementations

[Qemu-block] [PATCH for-2.10 7/7] qemu-iotests/059: Fix leaked image files

2017-07-28 Thread Kevin Wolf
qemu-iotests 059 left a whole lot of image files behind in the scratch directory because VMDK creates additional files for extents and cleaning them up requires the original image intact (it parses qemu-img info output to find all extent files), but the image overwrote it many times like it works f

[Qemu-block] [PATCH for-2.10 6/7] qemu-iotests/063: Fix leaked image

2017-07-28 Thread Kevin Wolf
qemu-iotests 063 left t.raw.raw1 behind in the scratch directory because it used the wrong suffix. Make sure to clean it up after completing the test. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/063 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/qemu-iotests/06

[Qemu-block] [PATCH for-2.10 5/7] qemu-iotests/162: Fix leaked temporary files

2017-07-28 Thread Kevin Wolf
qemu-iotests 162 left qemu-nbd.pid behind in the scratch directory, and potentially a file called '42' in the current directory. Make sure to clean it up after completing the tests. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/162 | 7 +++ 1 file changed, 7 insertions(+) diff --git a/te

[Qemu-block] [PATCH for-2.10 1/7] qemu-iotests/041: Fix leaked scratch images

2017-07-28 Thread Kevin Wolf
qemu-iotests 041 left quorum_snapshot.img and target.img behind in the scratch directory. Make sure to clean up after completing the tests. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/041 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/041 b/tests/q

[Qemu-block] [PATCH for-2.10 0/7] qemu-iotests: Fix leaked temporary file fixes

2017-07-28 Thread Kevin Wolf
This fixes leaked temporary files that are created during successful runs of qemu-iotests for qcow2, raw and vmdk. More file leaks exist for failing or interrupted tests, but this is something for another day. Kevin Wolf (7): qemu-iotests/041: Fix leaked scratch images qemu-iotests: Remove blk

[Qemu-block] [PATCH for-2.10 3/7] qemu-iotests/141: Fix image cleanup

2017-07-28 Thread Kevin Wolf
qemu-iotests 141 attempted to use brace expansion to remove all images with a single command. However, for this to work, the braces shouldn't be quoted. With this fix, the tests correctly cleans up its scratch images. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/141 | 2 +- 1 file changed,

[Qemu-block] [PATCH for-2.10 4/7] qemu-iotests/153: Fix leaked scratch images

2017-07-28 Thread Kevin Wolf
qemu-iotests 153 left t.qcow2.c behind in the scratch directory. Make sure to clean it up after completing the tests. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/153 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153 index 0b45d78ea3..fa25eb2

[Qemu-block] [PATCH for-2.10 2/7] qemu-iotests: Remove blkdebug.conf after tests

2017-07-28 Thread Kevin Wolf
qemu-iotests 074 and 179 left a blkdebug.conf behind the scratch directory. Make sure to clean up after completing the tests. Signed-off-by: Kevin Wolf --- tests/qemu-iotests/074 | 1 + tests/qemu-iotests/179 | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/qemu-iotests/074 b/tests/qe

[Qemu-block] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Olaf Hering
g_malloc0_n is available since glib-2.24. To allow build with older glib versions use the generic g_new0, which is already used in many other places in the code. Fixes commit 3284fad728 ("xen-disk: add support for multi-page shared rings") Signed-off-by: Olaf Hering --- hw/block/xen_disk.c | 2

Re: [Qemu-block] [Qemu-devel] [PATCH v3 09/12] tests/libqos/pci: Clean up string interpolation into QMP input

2017-07-28 Thread Stefan Hajnoczi
On Tue, Jul 25, 2017 at 04:15:20PM -0500, Eric Blake wrote: > @@ -419,19 +420,18 @@ static void test_ivshmem_server_irq(void) > static void test_ivshmem_hotplug(void) > { > const char *arch = qtest_get_arch(); > -gchar *opts; > +QObject *extra_args = qobject_from_jsonf("{ 'shm': '%s'

Re: [Qemu-block] [Qemu-devel] [PATCH] xen-disk: use g_malloc0 to fix build

2017-07-28 Thread Eric Blake
On 07/28/2017 07:48 AM, Olaf Hering wrote: > On Fri, Jul 28, Eric Blake wrote: > >> This version is prone to multiplication overflow (well, maybe not, but >> you have to audit for that). Wouldn't it be better to use: > > What could go wrong? > qemu will die either way, I think. Dying immediatel

Re: [Qemu-block] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-28 Thread Stefan Hajnoczi
On Tue, Jul 25, 2017 at 04:15:19PM -0500, Eric Blake wrote: > Now that we have the qmp_cmd() helper, we can further simplify > some of the tests by using it. > > Signed-off-by: Eric Blake > --- > tests/device-introspect-test.c | 3 +-- > tests/ide-test.c | 2 +- > tests/libqos/li

Re: [Qemu-block] [PATCH] block/vmdk: Report failures in vmdk_read_cid()

2017-07-28 Thread Kevin Wolf
Am 09.07.2017 um 19:06 hat Peter Maydell geschrieben: > The function vmdk_read_cid() can fail if the read on the underlying > block device fails, or if there's a format error in the VMDK file. > However its API doesn't provide a mechanism to report these errors, > and in some cases we were returnin

Re: [Qemu-block] [Qemu-devel] [PATCH] xen-disk: use g_malloc0 to fix build

2017-07-28 Thread Daniel P. Berrange
On Fri, Jul 28, 2017 at 07:43:59AM -0500, Eric Blake wrote: > On 07/28/2017 07:31 AM, Olaf Hering wrote: > > g_malloc0_n is available since glib-2.24. To allow build with older glib > > versions use the generic g_malloc0, which is already used in many other > > places in the code. > > > > Fixes co

Re: [Qemu-block] [Qemu-devel] [PATCH] xen-disk: use g_malloc0 to fix build

2017-07-28 Thread Olaf Hering
On Fri, Jul 28, Eric Blake wrote: > This version is prone to multiplication overflow (well, maybe not, but > you have to audit for that). Wouldn't it be better to use: What could go wrong? qemu will die either way, I think. Olaf signature.asc Description: PGP signature

Re: [Qemu-block] [Qemu-devel] [PATCH] xen-disk: use g_malloc0 to fix build

2017-07-28 Thread Eric Blake
On 07/28/2017 07:31 AM, Olaf Hering wrote: > g_malloc0_n is available since glib-2.24. To allow build with older glib > versions use the generic g_malloc0, which is already used in many other > places in the code. > > Fixes commit 3284fad728 ("xen-disk: add support for multi-page shared rings") >

[Qemu-block] [PATCH] xen-disk: use g_malloc0 to fix build

2017-07-28 Thread Olaf Hering
g_malloc0_n is available since glib-2.24. To allow build with older glib versions use the generic g_malloc0, which is already used in many other places in the code. Fixes commit 3284fad728 ("xen-disk: add support for multi-page shared rings") Signed-off-by: Olaf Hering --- hw/block/xen_disk.c |

Re: [Qemu-block] [Qemu-devel] [PATCH 10/47] MAINTAINERS: add missing entry for virtio/blk

2017-07-28 Thread Stefan Hajnoczi
On Fri, Jul 28, 2017 at 02:35:33AM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 4f9ce6e686..2958dd2479 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @

Re: [Qemu-block] [RFC] block-insert-node and block-job-delete

2017-07-28 Thread Kevin Wolf
Am 27.07.2017 um 12:07 hat Stefan Hajnoczi geschrieben: > On Wed, Jul 26, 2017 at 09:23:20PM +0300, Manos Pitsidianakis wrote: > > On Wed, Jul 26, 2017 at 04:12:21PM +0100, Stefan Hajnoczi wrote: > > > On Wed, Jul 26, 2017 at 05:19:24PM +0300, Manos Pitsidianakis wrote: > > > > This proposal follow

Re: [Qemu-block] [Qemu-devel] [PATCH 19/47] MAINTAINERS: add missing qcow2 entry

2017-07-28 Thread Stefan Hajnoczi
On Fri, Jul 28, 2017 at 02:35:42AM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Stefan Hajnoczi signature.asc Description: PGP signature

Re: [Qemu-block] [Qemu-devel] [PATCH 40/47] MAINTAINERS: add missing entry for AIO

2017-07-28 Thread Stefan Hajnoczi
On Fri, Jul 28, 2017 at 02:36:03AM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Stefan Hajnoczi signature.asc Description: PGP signature

Re: [Qemu-block] [PATCH v3 1/3] block: add bdrv_get_format_alloc_stat format interface

2017-07-28 Thread Eric Blake
On 07/27/2017 04:23 PM, John Snow wrote: >>> >>> "Allocations may be considered either used or unused by the format >>> driver interpreting those allocations. It is at the discretion of the >>> format driver (e.g. qcow2) which regions of its backing storage are >>> considered in-use or not." >> >>

Re: [Qemu-block] [Qemu-devel] [RFC] block-insert-node and block-job-delete

2017-07-28 Thread Kevin Wolf
Am 28.07.2017 um 00:09 hat John Snow geschrieben: > On 07/26/2017 02:23 PM, Manos Pitsidianakis wrote: > > On Wed, Jul 26, 2017 at 04:12:21PM +0100, Stefan Hajnoczi wrote: > > > On Wed, Jul 26, 2017 at 05:19:24PM +0300, Manos Pitsidianakis wrote: > > > > This proposal follows a discussion we had wi

Re: [Qemu-block] [PATCH 19/47] MAINTAINERS: add missing qcow2 entry

2017-07-28 Thread Kevin Wolf
Am 28.07.2017 um 07:35 hat Philippe Mathieu-Daudé geschrieben: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 6b83dac812..2dcdda4cd5 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1856,6

Re: [Qemu-block] [PATCH for 2.10 2/8] docs: fix broken paths to docs/interop/qcow2.txt

2017-07-28 Thread Kevin Wolf
Am 28.07.2017 um 03:25 hat Philippe Mathieu-Daudé geschrieben: > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Kevin Wolf

Re: [Qemu-block] [Qemu-devel] [RFC] block-insert-node and block-job-delete

2017-07-28 Thread Manos Pitsidianakis
On Thu, Jul 27, 2017 at 06:09:04PM -0400, John Snow wrote: On 07/26/2017 02:23 PM, Manos Pitsidianakis wrote: On Wed, Jul 26, 2017 at 04:12:21PM +0100, Stefan Hajnoczi wrote: On Wed, Jul 26, 2017 at 05:19:24PM +0300, Manos Pitsidianakis wrote: This proposal follows a discussion we had with Ke

Re: [Qemu-block] [PATCH v3 1/3] block: add bdrv_get_format_alloc_stat format interface

2017-07-28 Thread Vladimir Sementsov-Ogievskiy
28.07.2017 00:23, John Snow wrote: On 07/12/2017 11:18 AM, Vladimir Sementsov-Ogievskiy wrote: 30.06.2017 03:27, John Snow wrote: On 06/06/2017 12:26 PM, Vladimir Sementsov-Ogievskiy wrote: The function should collect statistics, about used/unused by top-level format driver space (in its .f