[Qemu-devel] [PATCH v7 02/15] hw/arm: Replace fprintf(stderr, "*\n" with error_report()

2018-02-02 Thread Markus Armbruster
From: Alistair Francis Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\))

Re: [Qemu-devel] [PATCH RFC 06/21] qapi-gen: New common driver for code and doc generators

2018-02-02 Thread Eric Blake
On 02/02/2018 07:03 AM, Markus Armbruster wrote: > Whenever qapi-schema.json changes, we run six programs eleven times to > update eleven files. This is silly. Replace the six programs by a > single program that spits out all eleven files. Yay, about time! One program, but still invoked multipl

Re: [Qemu-devel] [PATCH RFC 07/21] qapi: Move parse_command_line() next to its only use

2018-02-02 Thread Eric Blake
On 02/02/2018 07:03 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > scripts/qapi-gen.py| 52 +++- > scripts/qapi/common.py | 54 > -- > 2 files changed, 51 insertions(+), 55 de

[Qemu-devel] [Bug 1703795] Re: Unable to release mouse in SDL2 mode

2018-02-02 Thread Ruslan
I can confirm that the patch from comment #9 appears to fix the original problem. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1703795 Title: Unable to release mouse in SDL2 mode Status in QEMU:

Re: [Qemu-devel] [PATCH v7 02/15] hw/arm: Replace fprintf(stderr, "*\n" with error_report()

2018-02-02 Thread Eric Blake
On 02/02/2018 12:37 PM, Markus Armbruster wrote: > From: Alistair Francis > > Replace a large number of the fprintf(stderr, "*\n" calls with > error_report(). The functions were renamed with these commands and then > compiler issues where manually fixed. > > > Some lines where then manually tw

Re: [Qemu-devel] [PATCH] kvm: check dev parameter when updating msi route

2018-02-02 Thread Radim Krčmář
This should primarily go to the qemu devel list. I've Cc'd it, but reposting would be safer, thanks. 2018-02-02 10:21+0530, P J P: > From: Prasad J Pandit > > When updating message signalled interrupt(MSI) route in routine > kvm_irqchip_update_msi_route, device parameter could be null. > Add c

Re: [Qemu-devel] [RFC 0/2] virtio-vhost-user: add virtio-vhost-user device

2018-02-02 Thread Stefan Hajnoczi
On Tue, Jan 30, 2018 at 08:09:19PM +0800, Wei Wang wrote: > On 01/26/2018 10:44 PM, Stefan Hajnoczi wrote: > > On Thu, Jan 25, 2018 at 06:19:13PM +0800, Wei Wang wrote: > > > On 01/24/2018 07:40 PM, Stefan Hajnoczi wrote: > > > > On Tue, Jan 23, 2018 at 09:06:49PM +0800, Wei Wang wrote: > > > > > O

Re: [Qemu-devel] [PATCH RFC 08/21] qapi: Touch generated files only when they change

2018-02-02 Thread Eric Blake
On 02/02/2018 07:03 AM, Markus Armbruster wrote: > A massive number of objects depends on QAPI-generated headers. In my > "build everything" tree, it's roughly 4500 out of 4800. This is > particularly annoying when only some of the generated files change, > say for a doc fix. > > Improve qapi-ge

[Qemu-devel] [PATCH v1 1/1] hw: register: Run post_write hook on reset

2018-02-02 Thread Alistair Francis
Ensure that the post write hook is called during reset. This allows us to rely on the post write functions instead of having to call them from the reset() function. Signed-off-by: Alistair Francis --- hw/core/register.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/core/registe

Re: [Qemu-devel] [PATCH v7 00/15] Remove some of the fprintf(stderr, "*

2018-02-02 Thread Alistair Francis
On Fri, Feb 2, 2018 at 10:37 AM, Markus Armbruster wrote: > This is my attempt to salvage a good part of Alistair's error > reporting cleanup series > > [PATCH v6 00/29] Remove some of the fprintf(stderr, "* > > Continue on improving QEMUs logging/error messages by removing more > fpr

Re: [Qemu-devel] [PATCH RFC 00/21] Modularize generated QAPI code

2018-02-02 Thread no-reply
Hi, This series failed build test on ppc host. Please find the details below. Subject: [Qemu-devel] [PATCH RFC 00/21] Modularize generated QAPI code Type: series Message-id: 20180202130336.24719-1-arm...@redhat.com === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the

Re: [Qemu-devel] [PATCH v7 15/15] target: Use qemu_log() instead of fprintf(stderr, ...)

2018-02-02 Thread Eric Blake
On 02/02/2018 12:37 PM, Markus Armbruster wrote: > From: Alistair Francis > > Convert fprintf(stderr, ...) to use qemu_log(). Double prints in > target/ppc/translate.c were manually remove. A fprintf() in > target/sh4/translate.c was kept as it's inside a #if 0. The #if 0 and > fflush() was remov

Re: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information

2018-02-02 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180202143746.204851-1-borntrae...@de.ibm.com Subject: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked und

Re: [Qemu-devel] [PATCH RFC 00/21] Modularize generated QAPI code

2018-02-02 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180202130336.24719-1-arm...@redhat.com Subject: [Qemu-devel] [PATCH RFC 00/21] Modularize generated QAPI code === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under th

Re: [Qemu-devel] [PATCH v7 00/15] Remove some of the fprintf(stderr, "*

2018-02-02 Thread Philippe Mathieu-Daudé
On 02/02/2018 03:37 PM, Markus Armbruster wrote: > This is my attempt to salvage a good part of Alistair's error > reporting cleanup series > > [PATCH v6 00/29] Remove some of the fprintf(stderr, "* > > Continue on improving QEMUs logging/error messages by removing more > fprintf()'s

Re: [Qemu-devel] [PATCH RFC 09/21] qapi: Don't absolutize include file name in error messages

2018-02-02 Thread Eric Blake
On 02/02/2018 07:03 AM, Markus Armbruster wrote: > Error messages print absolute filenames of included files even gave a s/even gave/even when given/ > relative one on the command line: > > PYTHONPATH=scripts python -B tests/qapi-schema/test-qapi.py > tests/qapi-schema/include-cycle.json >

Re: [Qemu-devel] [PATCH v7 12/15] hw/timer: Replace fprintf(stderr, "*\n" with error_report()

2018-02-02 Thread Philippe Mathieu-Daudé
On 02/02/2018 03:37 PM, Markus Armbruster wrote: > From: Alistair Francis > > Replace a large number of the fprintf(stderr, "*\n" calls with > error_report(). The functions were renamed with these commands and then > compiler issues where manually fixed. > > find ./* -type f -exec sed -i \ >

Re: [Qemu-devel] [PATCH v1 1/1] hw: register: Run post_write hook on reset

2018-02-02 Thread Philippe Mathieu-Daudé
Hi Alistair, On 02/02/2018 04:38 PM, Alistair Francis wrote: > Ensure that the post write hook is called during reset. This allows us > to rely on the post write functions instead of having to call them from > the reset() function. This makes sens. Can you add a comment about this new behavior in

Re: [Qemu-devel] [PATCH] hw/timer/mt48t59: Fix bit-rotten NVRAM_PRINTF format strings

2018-02-02 Thread Philippe Mathieu-Daudé
Hi Thomas, On 02/02/2018 05:15 AM, Thomas Huth wrote: > When compiling with NVRAM_PRINTF enabled, gcc currently bails out with: > > CC hw/timer/m48t59.o > CC hw/timer/m48t59-isa.o > hw/timer/m48t59.c: In function ‘NVRAM_writeb’: > hw/timer/m48t59.c:460:5: error: format ‘%x’ expects

Re: [Qemu-devel] MTTCG External Halt

2018-02-02 Thread Alex Bennée
Alistair Francis writes: > On Thu, Feb 1, 2018 at 9:13 AM, Alistair Francis > wrote: >> On Thu, Feb 1, 2018 at 4:01 AM, Alex Bennée wrote: >>> >>> Alistair Francis writes: >>> On Wed, Jan 31, 2018 at 12:32 PM, Alex Bennée wrote: > > Alistair Francis writes: > >> O

Re: [Qemu-devel] [PATCH RFC 00/21] Modularize generated QAPI code

2018-02-02 Thread no-reply
Hi, This series failed docker-quick@centos6 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180202130336.24719-1-arm...@redhat.com Subject: [Qemu-devel] [PATCH RFC 00/21] Modulari

Re: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information

2018-02-02 Thread no-reply
Hi, This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180202143746.204851-1-borntrae...@de.ibm.com Subject: [Qemu-devel] [PATCH v3 0/1] respin

[Qemu-devel] [PATCH 1/3] block/iscsi: drop unused IscsiAIOCB->buf field

2018-02-02 Thread Stefan Hajnoczi
The IscsiAIOCB->buf field has not been used since commit e49ab19fcaa617ad6cdfe1ac401327326b6a2552 ("block/iscsi: bump libiscsi requirement to 1.9.0"). It used to be a linear buffer for old libiscsi versions that didn't support scatter-gather. The minimum libiscsi version supports scatter-gather s

[Qemu-devel] [PATCH 0/3] block/iscsi: fix ioctl cancel use-after-free

2018-02-02 Thread Stefan Hajnoczi
Patches 1 & 2 are cleanups. Patch 3 fixes cancellation of ioctls. Felipe showed me a trace where an acb is cancelled and then completes twice. The second time around crashes QEMU. Compile-tested only. Felipe: Please let us know if this fixes the issue you are seeing. Thanks! Stefan Hajnoczi

[Qemu-devel] [PATCH 3/3] block/iscsi: fix ioctl cancel use-after-free

2018-02-02 Thread Stefan Hajnoczi
The ioctl request cancellation code assumes that requests do not complete once TASK ABORT has been sent to the iSCSI target. The request completion callback is unconditionally invoked when TASK ABORT finishes. Therefore the request completion callback is invoked twice if the request does happen to

[Qemu-devel] [PATCH 2/3] block/iscsi: take iscsilun->mutex in iscsi_timed_check_events()

2018-02-02 Thread Stefan Hajnoczi
Commit d045c466d9e62b4321fadf586d024d54ddfd8bd4 ("iscsi: do not use aio_context_acquire/release") introduced iscsilun->mutex but appears to have overlooked iscsi_timed_check_events() when introducing the mutex. iscsi_service() and iscsi_set_events() must be called with iscsilun->mutex held. iscsi

Re: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information

2018-02-02 Thread no-reply
Hi, This series failed build test on ppc host. Please find the details below. Message-id: 20180202143746.204851-1-borntrae...@de.ibm.com Subject: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information Type: series === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under

Re: [Qemu-devel] MTTCG External Halt

2018-02-02 Thread Alistair Francis
On Fri, Feb 2, 2018 at 12:37 PM, Alex Bennée wrote: > > Alistair Francis writes: > >> On Thu, Feb 1, 2018 at 9:13 AM, Alistair Francis >> wrote: >>> On Thu, Feb 1, 2018 at 4:01 AM, Alex Bennée wrote: Alistair Francis writes: > On Wed, Jan 31, 2018 at 12:32 PM, Alex Bennée

Re: [Qemu-devel] rate limiting issues

2018-02-02 Thread John Snow
CCing qemu-block and Berto On 02/02/2018 06:10 AM, Wolfgang Bumiller wrote: > Summary: > Rate limit is effectively halved when the size of written chunks adds up to > exceeding the quota of a slice only slightly. This is surprisingly reliable. > > Explanation: > The ratelimiting code in include/q

Re: [Qemu-devel] [Qemu-block] [PATCH 3/3] block/iscsi: fix ioctl cancel use-after-free

2018-02-02 Thread Stefan Hajnoczi
On Fri, Feb 2, 2018 at 10:16 PM, Stefan Hajnoczi wrote: > The ioctl request cancellation code assumes that requests do not > complete once TASK ABORT has been sent to the iSCSI target. The request > completion callback is unconditionally invoked when TASK ABORT finishes. > Therefore the request c

Re: [Qemu-devel] MTTCG External Halt

2018-02-02 Thread Alistair Francis
On Fri, Feb 2, 2018 at 1:49 PM, Alistair Francis wrote: > On Fri, Feb 2, 2018 at 12:37 PM, Alex Bennée wrote: >> >> Alistair Francis writes: >> >>> On Thu, Feb 1, 2018 at 9:13 AM, Alistair Francis >>> wrote: On Thu, Feb 1, 2018 at 4:01 AM, Alex Bennée wrote: > > Alistair Francis

Re: [Qemu-devel] [PATCH RFC 10/21] qapi/common: Eliminate QAPISchema.exprs

2018-02-02 Thread Eric Blake
On 02/02/2018 07:03 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > scripts/qapi/common.py | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virt

Re: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information

2018-02-02 Thread no-reply
Hi, This series failed docker-quick@centos6 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180202143746.204851-1-borntrae...@de.ibm.com Subject: [Qemu-devel] [PATCH v3 0/1] respi

Re: [Qemu-devel] [PATCH v3 0/1] respin of s390 crash information

2018-02-02 Thread no-reply
Hi, This series failed docker-build@min-glib build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180202143746.204851-1-borntrae...@de.ibm.com Subject: [Qemu-devel] [PATCH v3 0/1] resp

Re: [Qemu-devel] [PATCH v1 1/1] hw: register: Run post_write hook on reset

2018-02-02 Thread Alistair Francis
On Fri, Feb 2, 2018 at 12:24 PM, Philippe Mathieu-Daudé wrote: > Hi Alistair, > > On 02/02/2018 04:38 PM, Alistair Francis wrote: >> Ensure that the post write hook is called during reset. This allows us >> to rely on the post write functions instead of having to call them from >> the reset() func

Re: [Qemu-devel] [Bug 1703795] Re: Unable to release mouse in SDL2 mode

2018-02-02 Thread BALATON Zoltan
The patch works for me too. Thanks. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1703795 Title: Unable to release mouse in SDL2 mode Status in QEMU: New Bug description: Starting with commit

Re: [Qemu-devel] [PATCH RFC 00/21] Modularize generated QAPI code

2018-02-02 Thread no-reply
Hi, This series failed docker-build@min-glib build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180202130336.24719-1-arm...@redhat.com Subject: [Qemu-devel] [PATCH RFC 00/21] Modular

[Qemu-devel] [PATCH v2 2/3] block/iscsi: take iscsilun->mutex in iscsi_timed_check_events()

2018-02-02 Thread Stefan Hajnoczi
Commit d045c466d9e62b4321fadf586d024d54ddfd8bd4 ("iscsi: do not use aio_context_acquire/release") introduced iscsilun->mutex but appears to have overlooked iscsi_timed_check_events() when introducing the mutex. iscsi_service() and iscsi_set_events() must be called with iscsilun->mutex held. iscsi

[Qemu-devel] [PATCH v2 3/3] block/iscsi: fix ioctl cancel use-after-free

2018-02-02 Thread Stefan Hajnoczi
iscsi_aio_cancel() does not increment the request's reference count, causing a use-after-free when ABORT TASK finishes after the request has already completed. There are some additional issues with iscsi_aio_cancel(): 1. Several ABORT TASKs may be sent for the same task if iscsi_aio_cancel() is

[Qemu-devel] [PATCH v2 0/3] block/iscsi: fix ioctl cancel use-after-free

2018-02-02 Thread Stefan Hajnoczi
v2: * It was unnecessary to avoid duplicate iscsi_schedule_bh() calls since this function already protects against duplicate calls internally [Stefan] Patches 1 & 2 are cleanups. Patch 3 fixes cancellation of ioctls. Felipe showed me a trace where an acb is cancelled and then completes twice

[Qemu-devel] [PATCH v2 1/3] block/iscsi: drop unused IscsiAIOCB->buf field

2018-02-02 Thread Stefan Hajnoczi
The IscsiAIOCB->buf field has not been used since commit e49ab19fcaa617ad6cdfe1ac401327326b6a2552 ("block/iscsi: bump libiscsi requirement to 1.9.0"). It used to be a linear buffer for old libiscsi versions that didn't support scatter-gather. The minimum libiscsi version supports scatter-gather s

Re: [Qemu-devel] [PATCH v7 15/15] target: Use qemu_log() instead of fprintf(stderr, ...)

2018-02-02 Thread Markus Armbruster
Eric Blake writes: > On 02/02/2018 12:37 PM, Markus Armbruster wrote: >> From: Alistair Francis >> >> Convert fprintf(stderr, ...) to use qemu_log(). Double prints in >> target/ppc/translate.c were manually remove. A fprintf() in >> target/sh4/translate.c was kept as it's inside a #if 0. The #i

Re: [Qemu-devel] [PATCH v7 12/15] hw/timer: Replace fprintf(stderr, "*\n" with error_report()

2018-02-02 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 02/02/2018 03:37 PM, Markus Armbruster wrote: >> From: Alistair Francis >> >> Replace a large number of the fprintf(stderr, "*\n" calls with >> error_report(). The functions were renamed with these commands and then >> compiler issues where manually fixed. >>

<    1   2   3