Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
qemu-img.c | 32
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index 74e3362..aa71588 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -3621,24 +3621,24 @@ static int img
into line with the following call to
bdrv_snapshot_laod_tmp_by_id_or_name().
(Fixes CID 1247240.)
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
qemu-img.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
On 03/22/2017 01:23 PM, Philippe Mathieu-Daudé wrote:
On 03/22/2017 10:58 AM, Jeff Cody wrote:
On Mon, Mar 20, 2017 at 06:33:04PM +, Peter Maydell wrote:
On OpenBSD none of the ioctls probe_logical_blocksize() tries
exist, so the variable sector_size is unused. Refactor the
code to avoid
sector_size;
+success = true;
+}
+}
return success ? 0 : -errno;
}
--
2.7.4
Reviewed-by: Jeff Cody <jc...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
eter.mayd...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
NB: compile-and-make-check tested only...
---
block/parallels.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/parallels.c b/block/parallels.c
index 4173b3f..3886c30 100644
--- a/block
hen invoking
bat_entry_off() does not result in an integer overflow.
Coverity-id: 1307776
Signed-off-by: Max Reitz <mre...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
This supercedes Peter's patch "block/parallels.c: avoid integer overflow
in allocate_clu
On 03/17/2017 12:24 PM, Paolo Bonzini wrote:
EPROTO is not found in OpenBSD. We usually use EIO when no better
errno is available, do that here too.
Reported-by: Peter Maydell <peter.mayd...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe M
com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
qemu-img.c | 82 +++---
1 file changed, 41 insertions(+), 41 deletions(-)
diff --git a/qemu-img.c b/qemu-img.c
index ce293a4..c7ffabb 100644
--- a/qemu-img.c
+++
Hi Max,
On 04/03/2017 01:09 PM, Max Reitz wrote:
This patch adds two new parameters to the preallocate() function so we
will be able to use it not just for preallocating a new image but also
for preallocated image growth.
The offset parameter allows the caller to specify a virtual offset from
ongnu.org
Cc: Laszlo Ersek <ler...@redhat.com>
Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/block/pflash_cfi01.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/hw/block/pflash_cfi01.c b/hw/block/p
() it at the end of the
fail path after we actually no longer need it.
Signed-off-by: Max Reitz <mre...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/mirror.c | 12 ++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/block/mirror.c b/bl
scripts/coccinelle/qobject.cocci \
--macro-file scripts/cocci-macro-file.h --dir . --in-place
and needed only one touch-up in monitor.c to avoid a long line.
Signed-off-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
v4: no change
v
return 0;
}
} else {
-nb_sectors = 1;
+bytes = BDRV_SECTOR_SIZE;
}
+if (bytes & 0x1ff) {
This macro is self-explanatory:
if(!QEMU_IS_ALIGNED(bytes, BDRV_SECTOR_SIZE))
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
+p
com>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/qcow2.c | 126 +++---
1 file changed, 68 insertions(+), 58 deletions(-)
diff --git a/block/qcow2.c b/b
me) {
+if (drv->bdrv_needs_filename && (!filename || !filename[0])) {
What do you think about adding an inline function in "qemu/option.h"
like "is_valid_[option_]filename()" to avoid this bug template?
Anyway:
Reviewed-by: Philippe Mathieu-Daudé <f4.
On 04/20/2017 01:00 AM, Fam Zheng wrote:
Signed-off-by: Fam Zheng <f...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/sheepdog.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/sheepdog.c b/block/sheepdog.c
index fb9203e..7e889ee 100644
On 04/13/2017 05:33 PM, Max Reitz wrote:
Otherwise the qemu-img process will exit with EXIT_SUCCESS instead of
EXIT_FAILURE.
Cc: qemu-stable <qemu-sta...@nongnu.org>
Signed-off-by: Max Reitz <mre...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
qe
viewed-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Does this mean our automated buildbots aren't building archipelago by
default?
diff --git a/block/archipelago.c b/block/archipelago.c
index 2449cfc702..01c4ff2f7d 100644
--- a/block/archipe
viewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/commit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/commit.c b/block/commit.c
index 22a0a4d..e57c1cf 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -364,7 +364,7 @@ void commit_start(const
ons(+), 15 deletions(-)
>>
>
> Reviewed-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
>
> --
> Eric Blake eblake redhat com+1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>
On 03/05/2017 06:44 PM, Krzysztof Kozlowski wrote:
blk_name() is not modifying data passed to it through pointer and it
returns also a pointer to const so the argument can be made const for
code safeness.
Signed-off-by: Krzysztof Kozlowski <k...@kernel.org>
Reviewed-by: Philippe Mathieu
elsewhere, instead of -EIO. No functional change, as
connect_to_sdog() returns no other error code.
Many more suspicious uses of error_report() and error_report_err()
remain in other functions. Left for another day.
Signed-off-by: Markus Armbruster <arm...@redhat.com>
Reviewed-by: Philippe M
On 03/02/2017 08:32 PM, Eric Blake wrote:
On 03/02/2017 03:43 PM, Markus Armbruster wrote:
sd_parse_uri() truncates long VDI names silently. Reject them
instead.
Signed-off-by: Markus Armbruster
---
block/sheepdog.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
On 03/02/2017 06:43 PM, Markus Armbruster wrote:
sd_parse_uri() truncates long VDI names silently. Reject them
instead.
Signed-off-by: Markus Armbruster <arm...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/sheepdog.c | 4 +++-
1 file changed,
On 04/03/2017 01:09 PM, Max Reitz wrote:
This functionality is part of raw_create() which we will be able to
reuse nicely in raw_truncate().
Signed-off-by: Max Reitz <mre...@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <
that if resizing failed, we should try to restore the
original file size. This is important when using preallocation.
Signed-off-by: Max Reitz <mre...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/file-
<mre...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/curl.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/block/curl.c b/block/curl.c
index 34dbd335f4..2708d57c2f 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -659,6 +659,7 @@ static i
Hi Eric,
On 04/24/2017 11:40 AM, Eric Blake wrote:
On 04/23/2017 09:33 AM, jemmy858...@gmail.com wrote:
From: Lidong Chen
Fix some spelling errors in is_allocated_sectors comment.
Signed-off-by: Lidong Chen
---
qemu-img.c | 4 ++--
1 file
On 07/31/2017 12:17 PM, Jeff Cody wrote:
On Mon, Jul 31, 2017 at 11:54:57AM -0300, Philippe Mathieu-Daudé wrote:
On 07/31/2017 11:38 AM, Jeff Cody wrote:
On Mon, Jul 31, 2017 at 02:51:11PM +0200, Kevin Wolf wrote:
When skipping implicit nodes in bdrv_block_device_info(), we know that
bs0
of code right above this, so
we'd segfault anyway if the initial value was NULL.
Yes, please move your assert before:
137:if (bs0->drv && bs0->backing) {
Once there:
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
and a BdrvChild never has a NULL bs, and after
ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
v2: tweak text to capitalize QEMU and use consistent trailing .
include/qemu-common.h | 5 +
vl.c | 4 +++-
bsd-user/main.c | 2 ++
linux-user/main.c | 4 +++-
qemu-img.c
On Fri, Jul 14, 2017 at 7:00 AM, P J P wrote:
> From: Prasad J Pandit
> -blk_drain(s->blk);
> -assert(s->bus->dma->aiocb == NULL);
This assert looks weird
> +if (s->blk) {
> +blk_drain(s->blk);
> +
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
tests/test-hbitmap.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/test-hbitmap.c b/tests/test-hbitmap.c
index 1acb
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/io.c | 4 ++--
block/qcow2-cache.c | 2 +-
block/vhdx-log.c| 2 +-
block/vvfat.c | 2 +-
4 files changed, 5 insertions
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
migration/block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/block.c b/migration/block.c
index 9171f60028..498c
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
qemu-img.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-img.c b/qemu-img.c
index 182e697f81..6f5f956302 100644
--- a/qemu
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
util/aio-posix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/aio-posix.c b/util/aio-posix.c
index 2d51239ec6..e89fd7024a
On 07/15/2017 10:28 AM, Hervé Poussineau wrote:
Also add links to related compatibility problems.
Signed-off-by: Hervé Poussineau <hpous...@reactos.org>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/vvfat.c | 8 +++-
1 file changed, 7 insertions(+)
Hi Hervé,
On 07/15/2017 10:28 AM, Hervé Poussineau wrote:
This prevents some host to guest memory content leaks.
Fixes: https://bugs.launchpad.net/qemu/+bug/1599539
Signed-off-by: Hervé Poussineau
---
block/vvfat.c | 1 +
1 file changed, 1 insertion(+)
diff --git
Maybe worth adding "Coverity: CID 1377700"
On 07/14/2017 01:00 PM, Max Reitz wrote:
On 2017-07-14 14:33, Vladimir Sementsov-Ogievskiy wrote:
Fix possible crash on error path in
qcow2_remove_persistent_dirty_bitmap. Although bitmap_free was added in
88ddffae8fc the bug was introduced later in
ed to limit the
scope of this README :).
Maybe something tiny like:
Congratulations, you've created a new test!
To share your test to upstream QEMU (highly recommended!) just follow
these recommendations: http://wiki.qemu.org/Contribute/SubmitAPatch
Stefan
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
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é <f4...@amsat.org>
---
nbd/client.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/nbd/client.c b/nbd/client.c
Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/qcow2-refcount.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
index c9b0dcb4f3..168fc32e7b 100644
--- a/block/qcow2-refcount.c
+++ b
This is equivalent to assert(russian roulette) so better remove it.
block/qcow2-bitmap.c:259:29: warning: The left operand of '==' is a garbage
value
assert(bitmap_table == NULL);
^
Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <
rom variable 'bm')
g_free(bm->name);
^~~~
Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/qcow2-bitmap.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/block/qcow2-bitmap.c b/block/qcow2-bi
Hi Eric,
On 07/24/2017 03:46 PM, Eric Blake wrote:
On 07/24/2017 01:27 PM, Philippe Mathieu-Daudé wrote:
If find_bitmap_by_name() fails we have bm=NULL and go to the 'fail' label, then
call bitmap_free(bm) which does g_free(bm->name) with bm=NULL...
Clang's scan-build-5.0 output:
block/qc
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
docs/qcow2-cache.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/qcow2-cache.txt b/docs/qcow2-cache.txt
index 1fdd6f9ce7..b0571de4b8 100644
--- a/docs/qcow2-cache.txt
+++ b/docs/qcow2-cache.txt
@@ -15,7
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 6b83dac812..2dcdda4cd5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1856,6 +1856,7 @@ M: Max Reitz <mre...@redhat.com>
L
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index b9a132d964..7649d57e0f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1144,6 +1144,7 @@ L: qemu-block@nongnu.org
S: Supported
F: h
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
MAINTAINERS | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 23de632424..54e35fdab9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1283,7 +1283,7 @@ F: block/dirty-bitma
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 83597fca4e..fb6a82c1ad 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1253,6 +1253,7 @@ F: util/aio-*.c
F: block/io.c
F: migration
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index 4f9ce6e686..2958dd2479 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1067,6 +1067,7 @@ S: Supported
F: hw/block/virtio-blk.c
F: hw
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é <f4...@amsat.org>
Reviewed-by: Eric Blake <ebl...@redhat.com>
---
nbd/client.c | 8 +---
1 file changed, 5 insertions(+), 3 deleti
On 06/29/2017 02:16 PM, Alistair Francis wrote:
Signed-off-by: Alistair Francis <alistair.fran...@xilinx.com>
Acked-by: Edgar E. Iglesias <edgar.igles...@xilinx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
Changes since RFC:
- Include more bitmasks f
-by: Alistair Francis <alistair.fran...@xilinx.com>
> Acked-by: Edgar E. Iglesias <edgar.igles...@xilinx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
> ---
>
> util/oslib-win32.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git
grammatically correct.
Suggested-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Suggested-by: Max Reitz <mre...@redhat.com>
Signed-off-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
v11: retitle [was "qemu-io: Don't open-co
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?]
With the move of some docs to docs/interop on d59157ea05, a reference path
was not updated.
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Reviewed-by: Kevin Wolf <kw...@redhat.com>
---
docs/qcow2-cache.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
On 08/08/2017 05:00 PM, Eric Blake wrote:
On 08/08/2017 01:32 PM, John Snow wrote:
Out with the old, in with the new.
Signed-off-by: John Snow
---
hw/ide/piix.c | 11
hw/ide/trace-events | 33
hw/ide/via.c
On 08/09/2017 06:55 PM, Paolo Bonzini wrote:
The variable is almost unused, and one of the two uses is actually
uninitialized.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
tests/qemu-iotests/check | 5 +
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
tests/qemu-iotests/common| 30 ++-
tests/qemu-iotests/common.config | 12 +++
tests/qemu-iotests/common.rc | 45
On 08/09/2017 06:55 PM, Paolo Bonzini wrote:
It only provides functions used by the test programs.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
tests/qemu-iotests/check | 6 --
tests/qemu-iotests/co
On 08/07/2017 05:30 PM, Eric Blake wrote:
vpc_open() was checking for bdrv_getlength() failure in one, but
not the other, location.
Reported-by: Markus Armbruster <arm...@redhat.com>
Signed-off-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <
e <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/qcow.c | 64 ++--
1 file changed, 45 insertions(+), 19 deletions(-)
diff --git a/block/qcow.c b/block/qcow.c
index c08cdc4a7b..937023d447 100644
com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
--- > block/qcow2.c | 21 -
1 file changed, 21 deletions(-)
diff --git a/block/qcow2.c b/block/qcow2.c
index d7c600b5a2..99407403ea 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -3798,27 +3
On 08/07/2017 05:30 PM, Eric Blake wrote:
qcow2_co_pwritev_compressed() should not call bdrv_truncate()
if determining the size failed.
Reported-by: Markus Armbruster <arm...@redhat.com>
Signed-off-by: Eric Blake <ebl...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <
kw...@redhat.com>
> Signed-off-by: Jeff Cody <jc...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
> ---
> block/vhdx-log.c | 6 +-
> block/vhdx.c | 3 +++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/block/vhdx-log.c
jitsu.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/usb/dev-storage.c | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c
index 801f552..2a05cd5 100644
--- a/hw/usb/dev-storage.
On 08/22/2017 10:18 AM, Paolo Bonzini wrote:
Move more knowledge of sense data format out of hw/scsi/scsi-bus.c
for reusability.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/scsi/scsi-bus.c | 8 +---
layer.
Create a directory for this kind of shared code.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
MAINTAINERS| 7 +
Makefile.objs | 2 +-
hw/scsi/scsi-bus
dd (hmp.c:1925)
Reported-by: Thomas Huth <th...@redhat.com>
Message-Id: <59a56959-ca12-ea75-33fa-ff07eba1b...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/acpi/piix4.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/acpi/
On 08/22/2017 07:42 PM, Michael S. Tsirkin wrote:
On Tue, Aug 22, 2017 at 06:43:43PM -0300, Philippe Mathieu-Daudé wrote:
9e047b982452 "piix4: add acpi pci hotplug support" introduced a new property
'use_acpi_pci_hotplug' for pc-1.7 and older machines.
c24d5e0b91d1 "convert A
On 08/22/2017 10:18 AM, Paolo Bonzini wrote:
Complete the transition by renaming this header, which was
shared by block/iscsi.c and the SCSI emulation code.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
b
us) {
+*sense = SENSE_CODE(I_T_NEXUS_LOSS);
+return CHECK_CONDITION;
+} else if (io_hdr->status) {
+return io_hdr->status;
+} else if (io_hdr->driver_status & SG_ERR_DRIVER_SENSE) {
+return CHECK_CONDITION;
+ }
+
Bonzini <pbonz...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/scsi/scsi-bus.c | 10 +-
hw/scsi/scsi-disk.c| 4 ++--
include/hw/scsi/scsi.h | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/hw/scsi/scsi-bus.c b/
dhat.com>
Cc: Paolo Bonzini <pbonz...@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
Acked-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/nbd-client.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/block/nbd-client.c b/block/n
On 08/22/2017 03:39 PM, John Snow wrote:
On 08/22/2017 02:15 PM, Thomas Huth wrote:
Looks like there is a use-after-free problem somewhere in
the ahci.c or ich.c code when trying to add the ich9-ahci
on a old PC machine. Using valgrind, I get:
those old PC don't support AHCI hotplug, so
;
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
block/vdi.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/block/vdi.c b/block/vdi.c
index d12d9cd..a70b969 100644
--- a/block/vdi.c
+++ b/block/vdi.c
@@ -86,12 +86,18 @@
#define DEFAULT_CLU
future
> patch.
>
> Signed-off-by: John Snow <js...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4...@amsat.org>
> ---
> include/hw/ide/ahci.h| 57 +++-
On Fri, Jun 23, 2017 at 7:18 PM, John Snow wrote:
> This patch is fine, I took a stab at fixing the include issues in a
> separate series. Try it all out and let me know.
Thank John, your series does fix my include issues :)
lize the split by switching external users to the new header.
>
> Signed-off-by: John Snow <js...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4...@amsat.org>
> ---
> hw/ide/ahci.c
On Fri, Jun 23, 2017 at 7:09 PM, John Snow <js...@redhat.com> wrote:
> Instead of reaching into the PCI state, allow the AHCIDevice to
> respond with how many ports it has.
>
> Signed-off-by: John Snow <js...@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@ams
Hi Hervé,
On 05/22/2017 06:12 PM, Hervé Poussineau wrote:
According to specification:
"'MSWIN4.1' is the recommanded setting, because it is the setting least likely
to cause compatibility problems. If you want to put something else in here,
that is your option, but the result may be that some
Hi Hervé,
On 05/22/2017 06:11 PM, Hervé Poussineau wrote:
- offset_to_bootsector is the number of sectors up to FAT bootsector
- offset_to_fat is the number of sectors up to first File Allocation Table
- offset_to_root_dir is the number of sectors up to root directory sector
Eventually your
Hi Hervé,
On 05/22/2017 06:12 PM, Hervé Poussineau wrote:
More specifically, create short name from filename and change blacklist of
invalid chars to whitelist of valid chars.
Windows 9x also now correctly see long file names of filenames containing a
space,
but Scandisk still complains about
Hi Hervé,
You explained in the cover "fix problems detected by disk checking
utilities in read-only mode", do you think it would be doable to have
unit-tests for those corner cases?
On 05/22/2017 06:12 PM, Hervé Poussineau wrote:
Specification: "FAT: General overview of on-disk format"
On 05/23/2017 04:41 PM, Hervé Poussineau wrote:
Hi Philippe,
Le 23/05/2017 à 06:23, Philippe Mathieu-Daudé a écrit :
Hi Hervé,
On 05/22/2017 06:12 PM, Hervé Poussineau wrote:
According to specification:
"'MSWIN4.1' is the recommanded setting, because it is the setting
least likely
to
lt;peter.mayd...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/qcow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/qcow.c b/block/qcow.c
index 95ab123..7bd94dc 100644
--- a/block/qcow.c
+++ b/block/qcow.c
@@ -852,6 +852,7 @@ static int qcow_creat
/highbank.o' failed
make[1]: *** [hw/arm/highbank.o] Error 1
make: *** [subdir-arm-softmmu] Error 2
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
include/hw/ide/ahci.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/hw/ide/ahci.h b/include/hw/ide/ahci.h
index 0ca7
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/arm/highbank.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c
index d209b97dee..dd809b404b 100644
--- a/hw/arm/highbank.c
+++ b/hw/arm/highbank.c
@@ -31,6 +31,7 @@
#i
elated, I should have send them altogether, my bad :/
Regards,
Phil.
Philippe Mathieu-Daudé (2):
arm/highbank: use defined type name instead of hard-coded string
ide/ahci: add missing includes
hw/arm/highbank.c | 3 ++-
include/hw/ide/ahci.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
--
2.11.0
Hi Tsung-en,
On 06/11/2017 04:08 PM, Tsung-en Hsiao wrote:
Hi all,
I encountered the same problem on gcc 7.1.1 and found Qu's mail in
this list from google search.
Temporarily fix it by specifying the string length in snprintf
directive. Hope this is helpful to other people encountered the
On 05/06/2017 09:43 AM, Aurelien Jarno wrote:
Export the rotational qdev property to the block device characteristics
VPD page.
Signed-off-by: Aurelien Jarno <aurel...@aurel32.net>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/scsi/scsi-disk.c | 14 ++
be configured as a rotational device or a non-rotational device. Default
to true to not change the default behavior.
Signed-off-by: Aurelien Jarno <aurel...@aurel32.net>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
blockdev.c | 4
include/hw/block
On 05/06/2017 09:43 AM, Aurelien Jarno wrote:
Export the rotational qdev property in the IDENTIFY request.
Signed-off-by: Aurelien Jarno <aurel...@aurel32.net>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
hw/ide/core.c | 3 +++
1 file changed, 3 insertions(+)
dif
’
IDEBus port;
^~
qemu/include/hw/ide/ahci.h:305:15: error: field ‘parent_obj’ has incomplete type
PCIDevice parent_obj;
^~
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
include/hw/ide/ahci.h | 2 ++
1 file changed, 2 insertions(+)
diff
of qdict_array_entries() and also the type
we use for the loop enumeration variable 'i'.
(Spotted by Coverity, CID 1360960.)
Signed-off-by: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
---
block/gluster.c | 3 +--
1 file changed,
Hi Alberto,
On 09/13/2017 05:28 AM, Alberto Garcia wrote:
If bkt->max == 0 and bkt->burst_length > 1 then we could have a
division by 0 in throttle_do_compute_wait(). That configuration is
however not permitted and is already detected by throttle_is_valid(),
but let's assert it in
com>
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Any magic cocci script to verify there aren't no more?
---
I plan to take this through my NBD queue, unless it is picked up
by qemu-trivial first...
block/nbd-client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deleti
g_free(n->cmbuf);
memory_region_unref(>ctrl_mem);
}
Anyway g_free() handles NULL, so:
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>
1 - 100 of 5542 matches
Mail list logo