Re: [PATCH 1/3] net/colo-compare.c: Create event_bh with the right AioContext

2020-04-23 Thread Derek Su
On 2020/4/23 下午3:29, Zhang, Chen wrote: -Original Message- From: Lukas Straub Sent: Wednesday, April 22, 2020 5:40 PM To: Zhang, Chen Cc: qemu-devel ; Li Zhijian ; Jason Wang ; Marc- André Lureau ; Paolo Bonzini Subject: Re: [PATCH 1/3] net/colo-compare.c: Create event_bh with the

Re: [PATCH 0/7] chardev: Reduce system emulation specific code

2020-04-23 Thread Richard Henderson
On 4/23/20 1:21 PM, Philippe Mathieu-Daudé wrote: > chardev cleanup while reviewing 'Refactor machine_init and exit > notifiers' from the multi-process series: > https://www.mail-archive.com/qemu-devel@nongnu.org/msg697510.html > > Elena Ufimtseva (1): > multi-process: Refactor machine_init and

Re: [RFC PATCH v1 1/7] contrib/vhost-user-blk: add option to simulate disconnect on init

2020-04-23 Thread Raphael Norwitz
I’m not opposed to adding this kind of debugging functionality to the vhost-user-blk sample. It could be helpful to easily test these cases in the future. That said, I'm not sure how others will feel about adding these kind of debugging capabilities to libvhost-user. Marc-Andre, thoughts? If we

Re: [RFC PATCH v1 5/7] vhost-user-blk: add mechanism to track the guest notifiers init state

2020-04-23 Thread Raphael Norwitz
There are some problems with this patch. It doesn't apply cleanly. Are you sure you’re developing on an up to date master branch? On Thu, Apr 23, 2020 at 09:39:36PM +0300, Dima Stepanov wrote: > > In case of the vhost-user devices the daemon can be killed at any > moment. Since QEMU supports the

Re: [PATCH 0/2] net/colo-compare.c: Expose "max_queue_size" to users and clean up

2020-04-23 Thread Jason Wang
On 2020/4/11 上午11:38, Zhang Chen wrote: From: Zhang Chen This series make a way to config COLO "max_queue_size" parameters according to user's scenarios and environments and do some clean up for descriptions. Zhang Chen (2): net/colo-compare.c: Expose compare "max_queue_size" to users

Re: [RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-23 Thread Jason Wang
On 2020/4/24 上午7:16, Philippe Mathieu-Daudé wrote: When a frame lenght is incorrect, set the RDES0 'Error Summary' and 'Frame too long' bits. Then stop the receive process and trigger an abnormal interrupt. See [4.3.5 Receive Process]. Cc: Li Qiang Cc: Li Qiang Cc: Ziming Zhang Cc: Jason

Re: [PATCH] spapr_nvdimm.c: make 'label-size' mandatory

2020-04-23 Thread David Gibson
On Tue, Apr 14, 2020 at 08:04:29AM -0300, Daniel Henrique Barboza wrote: > > > On 4/13/20 11:01 PM, David Gibson wrote: > > CCing Xiao, Michael and Igor for generic NVDIMM perspective. > > > > On Mon, Apr 13, 2020 at 05:36:28PM -0300, Daniel Henrique Barboza wrote: > > > The pseries machine

Re: [PATCH] spapr_nvdimm.c: make 'label-size' mandatory

2020-04-23 Thread David Gibson
On Mon, Apr 13, 2020 at 05:36:28PM -0300, Daniel Henrique Barboza wrote: > The pseries machine does not support NVDIMM modules without label. > Attempting to do so, even if the overall block size is aligned with > 256MB, will seg fault the guest kernel during NVDIMM probe. This > can be avoided by

RE: [PATCH 0/2] net/colo-compare.c: Expose "max_queue_size" to users and clean up

2020-04-23 Thread Zhang, Chen
> -Original Message- > From: Jason Wang > Sent: Thursday, April 23, 2020 5:07 PM > To: Zhang, Chen ; qemu-dev de...@nongnu.org> > Cc: Zhang Chen > Subject: Re: [PATCH 0/2] net/colo-compare.c: Expose "max_queue_size" to > users and clean up > > > On 2020/4/23 下午4:59, Zhang, Chen

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
On Thu, Apr 23, 2020 at 11:03 PM Jag Raman wrote: > > > > On Apr 23, 2020, at 9:54 AM, 罗勇刚(Yonggang Luo) > wrote: > > > > Does multi-process support on Windows? > > I found it use mmap and unix socket for inter-process communication, > that may not support under Windows. > > Hi Yonggang, > > We

[RFC PATCH 0/3] hw/net/tulip: Fix LP#1874539

2020-04-23 Thread Philippe Mathieu-Daudé
Attempt to fix the launchpad bug filled by Helge: In a qemu-system-hppa system, qemu release v5.0.0-rc, the tulip nic driver is broken. The tulip nic is detected, even getting DHCP info does work. But when trying to download bigger files via network, the tulip driver gets stuck.

[RFC PATCH 3/3] hw/net/tulip: Set descriptor error bit when lenght is incorrect

2020-04-23 Thread Philippe Mathieu-Daudé
When a frame lenght is incorrect, set the RDES0 'Error Summary' and 'Frame too long' bits. Then stop the receive process and trigger an abnormal interrupt. See [4.3.5 Receive Process]. Cc: Li Qiang Cc: Li Qiang Cc: Ziming Zhang Cc: Jason Wang Cc: Prasad J Pandit Fixes: 8ffb7265af ("check

[RFC PATCH 1/3] hw/net/tulip: Fix 'Descriptor Error' definition

2020-04-23 Thread Philippe Mathieu-Daudé
Bit #14 is "DE" for 'Descriptor Error': When set, indicates a frame truncation caused by a frame that does not fit within the current descriptor buffers, and that the 21143 does not own the next descriptor. [Table 4-1. RDES0 Bit Fields Description] Signed-off-by: Philippe Mathieu-Daudé

[RFC PATCH 2/3] hw/net/tulip: Log descriptor overflows

2020-04-23 Thread Philippe Mathieu-Daudé
Log with GUEST_ERROR what the guest is doing wrong. Signed-off-by: Philippe Mathieu-Daudé --- hw/net/tulip.c | 16 1 file changed, 16 insertions(+) diff --git a/hw/net/tulip.c b/hw/net/tulip.c index 1295f51d07..470f635acb 100644 --- a/hw/net/tulip.c +++ b/hw/net/tulip.c @@

Re: [PATCH v2 13/36] tcg: Use tcg_constant_{i32,i64} with tcg int expanders

2020-04-23 Thread Richard Henderson
On 4/22/20 1:04 PM, Alex Bennée wrote: > > Richard Henderson writes: > >> Signed-off-by: Richard Henderson > > We have a regression. Setting up a build dir with: > > ../../configure --disable-tools --disable-docs > --target-list=sparc-softmmu,sparc64-softmmu > make -j30 && make

Re: [PATCH v2 09/36] tcg: Consolidate 3 bits into enum TCGTempKind

2020-04-23 Thread Richard Henderson
On 4/23/20 10:24 AM, Daniel P. Berrangé wrote: > On Thu, Apr 23, 2020 at 08:40:10AM -0700, Richard Henderson wrote: >> On 4/23/20 2:00 AM, Philippe Mathieu-Daudé wrote: > @@ -1885,12 +1896,17 @@ static char *tcg_get_arg_str_ptr(TCGContext *s, > char *buf, int buf_size, > { >

Re: [PATCH RESEND v6 36/36] multi-process: add configure and usage information

2020-04-23 Thread Yonggang Luo
On Thu, Apr 23, 2020 at 11:03 PM Jag Raman wrote: > > > > On Apr 23, 2020, at 9:54 AM, 罗勇刚(Yonggang Luo) > wrote: > > > > Does multi-process support on Windows? > > I found it use mmap and unix socket for inter-process communication, > that may not support under Windows. > > Hi Yonggang, > > We

[PATCH RFC 2/3] target/arm: Implement SVE2 AESE, AESD, SM4E

2020-04-23 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/cpu.h | 5 + target/arm/helper-sve.h| 4 target/arm/sve.decode | 6 ++ target/arm/sve_helper.c| 25 + target/arm/translate-sve.c | 16 5 files changed, 56 insertions(+)

[PATCH RFC 3/3] target/arm: Implement SVE2 SM4EKEY, RAX1

2020-04-23 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/helper-sve.h| 3 +++ target/arm/sve.decode | 4 target/arm/sve_helper.c| 21 + target/arm/translate-sve.c | 30 ++ 4 files changed, 58 insertions(+) diff --git

[PATCH RFC 0/3] target/arm: Implement SVE2 Crypto Extensions

2020-04-23 Thread Stephen Long
Used the helper functions in crypto_helper.c to implement the helper functions for the crypto insns. Stephen Long (3): target/arm: Implement SVE2 AESMC, AESIMC target/arm: Implement SVE2 AESE, AESD, SM4E target/arm: Implement SVE2 SM4EKEY, RAX1 target/arm/cpu.h | 5 +++

[PATCH RFC 1/3] target/arm: Implement SVE2 AESMC, AESIMC

2020-04-23 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/helper-sve.h| 3 +++ target/arm/sve.decode | 10 ++ target/arm/sve_helper.c| 13 + target/arm/translate-sve.c | 18 ++ 4 files changed, 44 insertions(+) diff --git a/target/arm/helper-sve.h

Re: [PATCH v2 0/3] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423221707.477404-1-ebl...@redhat.com/ Hi, This series failed the 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. === TEST SCRIPT BEGIN ===

Re: [PATCH v2 0/3] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423221707.477404-1-ebl...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [PATCH v2 0/3] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423221707.477404-1-ebl...@redhat.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/bash

[PATCH v2 2/3] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread Eric Blake
We originally refused to allow resize of images with internal snapshots because the v2 image format did not require the tracking of snapshot size, making it impossible to safely revert to a snapshot with a different size than the current view of the image. But the snapshot size tracking was

[PATCH v2 1/3] block: Add blk_new_with_bs() helper

2020-04-23 Thread Eric Blake
There are several callers that need to create a new block backend from an existing BDS; make the task slightly easier with a common helper routine. Suggested-by: Max Reitz Signed-off-by: Eric Blake --- include/sysemu/block-backend.h | 2 ++ block/block-backend.c | 23

[PATCH v2 0/3] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread Eric Blake
In v2: - new patch 1 [Max] - split off and reword unrelated change into patch 3 [Max] - improve the test: grep for items of interest, check $? [Max] - improve commit message explaining partial failure [Max] Eric Blake (3): block: Add blk_new_with_bs() helper qcow2: Allow resize of images with

[PATCH v2 3/3] qcow2: Tweak comment about bitmaps vs. resize

2020-04-23 Thread Eric Blake
Our comment did not actually match the code. Rewrite the comment to be less sensitive to any future changes to qcow2-bitmap.c that might implement scenarios that we currently reject. Signed-off-by: Eric Blake --- block/qcow2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Bug 1874539] Re: tulip driver broken in v5.0.0-rc4

2020-04-23 Thread Philippe Mathieu-Daudé
Commit 8ffb7265af does make the code safer, but broke the device model. Instead of setting the error bits when the frame length is incorrect (too big), it simply discards it. The guest is not notified of the error and keeps waiting. -- You received this bug notification because you are a member

Re: [PATCH 4/7] chardev: Reduce "char-mux.h" scope, rename it "chardev-internal.h"

2020-04-23 Thread Marc-André Lureau
On Thu, Apr 23, 2020 at 10:24 PM Philippe Mathieu-Daudé wrote: > > No file out of chardev/ requires access to this header, > restrict its scope. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau > --- > include/chardev/char-mux.h => chardev/chardev-internal.h | 7

Re: [PATCH 5/7] chardev: Extract system emulation specific code

2020-04-23 Thread Marc-André Lureau
On Thu, Apr 23, 2020 at 10:24 PM Philippe Mathieu-Daudé wrote: > > Split out code only used during system emulation, > to reduce code pulled in user emulation and tools. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau > --- > chardev/chardev-internal.h | 3 ++ >

Re: [PATCH 0/5] QEMU Gating CI

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 7:13 PM, Daniel P. Berrangé wrote: On Thu, Apr 23, 2020 at 01:04:13PM -0400, Cleber Rosa wrote: - Original Message - From: "Peter Maydell" To: "Markus Armbruster" Cc: "Fam Zheng" , "Thomas Huth" , "Beraldo Leal" , "Erik Skultety" , "Alex Bennée" , "Wainer Moschetta" ,

Re: [PATCH] elf_ops: Don't try to g_mapped_file_unref(NULL)

2020-04-23 Thread Peter Maydell
On Thu, 23 Apr 2020 at 21:25, Philippe Mathieu-Daudé wrote: > > On 4/23/20 10:20 PM, Peter Maydell wrote: > > This will fix the assertion; for the specific case of the generic > > loader it will then fall back from "guess this is an ELF file" to > > "maybe it's a uImage or a hex file" and

Re: [PATCH 2/7] tests/test-char: Remove unused "chardev/char-mux.h" include

2020-04-23 Thread Marc-André Lureau
On Thu, Apr 23, 2020 at 10:22 PM Philippe Mathieu-Daudé wrote: > > This test never required "chardev/char-mux.h", remove it. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau > --- > tests/test-char.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [PATCH 3/7] chardev: Restrict msmouse / wctablet / testdev to system emulation

2020-04-23 Thread Marc-André Lureau
On Thu, Apr 23, 2020 at 10:22 PM Philippe Mathieu-Daudé wrote: > > The msmouse / wctablet / testdev character devices are only > used by system emulation. Remove them from user mode and tools. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau > --- >

Re: [PATCH 6/7] stubs: Split machine-init-done as machine-init and machine-notify

2020-04-23 Thread Marc-André Lureau
On Thu, Apr 23, 2020 at 10:22 PM Philippe Mathieu-Daudé wrote: > > As the machine notify handlers are only used in system emulation, > split the current file in two, and only build the notifier when > system emulation is used. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André

Re: [PATCH 1/7] monitor/misc: Remove unused "chardev/char-mux.h" include

2020-04-23 Thread Marc-André Lureau
On Thu, Apr 23, 2020 at 10:23 PM Philippe Mathieu-Daudé wrote: > > monitor/misc.c never required "chardev/char-mux.h", remove it. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau > --- > monitor/misc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: Need BT support in qemu for Zephyr

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 4:40 PM, Dan Christian wrote: > I'm new to trying to use qemu+bt (via btproxy) and haven't managed to > get anything working. > > btproxy is launched first, then Zephyr launches qemu via it's west > tool.  The commands look like: > sudo tools/btproxy -u -i 0 -d # in a separate window >

[Bug 1874539] [NEW] tulip driver broken in v5.0.0-rc4

2020-04-23 Thread Helge Deller
Public bug reported: In a qemu-system-hppa system, qemu release v5.0.0-rc, the tulip nic driver is broken. The tulip nic is detected, even getting DHCP info does work. But when trying to download bigger files via network, the tulip driver gets stuck. For example when trying to download a 100MB

Re: [PATCH v1 09/14] gdbstub: eliminate gdbserver_fd global

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 7:05 PM, Alex Bennée wrote: We don't really need to track this fd beyond the initial creation of the socket. We already know if the system has been initialised by virtue of the gdbserver_state so lets remove it. This makes the later re-factoring easier. Signed-off-by: Alex Bennée

Re: [PATCH v1 14/14] .travis.yml: drop MacOSX

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 7:05 PM, Alex Bennée wrote: This keeps breaking on Travis so lets just fall back to the Cirrus CI builds which seem to be better maintained. Fix up the comments while we are doing this as we never had a windows build. I certainly vouch this. Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v1 05/14] configure: favour gdb-multiarch if we have it

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 7:05 PM, Alex Bennée wrote: As gdb will generally be talking to "foreign" guests lets use that if we can. Otherwise the chances of gdb barfing are considerably higher. Signed-off-by: Alex Bennée --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v1 13/14] .travis.yml: show free disk space at end of run

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 7:05 PM, Alex Bennée wrote: Signed-off-by: Alex Bennée --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 2fd63eceaa..a4c3c6c805 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,6 +113,7 @@ script: $(exit $BUILD_RC);

Re: [PATCH] elf_ops: Don't try to g_mapped_file_unref(NULL)

2020-04-23 Thread Philippe Mathieu-Daudé
On 4/23/20 10:20 PM, Peter Maydell wrote: Calling g_mapped_file_unref() on a NULL pointer is not valid, and glib will assert if you try it. $ qemu-system-arm -M virt -display none -device loader,file=/tmp/bad.elf qemu-system-arm: -device loader,file=/tmp/bad.elf: GLib: g_mapped_file_unref:

[PATCH 5/7] chardev: Extract system emulation specific code

2020-04-23 Thread Philippe Mathieu-Daudé
Split out code only used during system emulation, to reduce code pulled in user emulation and tools. Signed-off-by: Philippe Mathieu-Daudé --- chardev/chardev-internal.h | 3 ++ chardev/char.c | 35 +-- chardev/chardev-sysemu.c | 69

[PATCH 7/7] multi-process: Refactor machine_init and exit notifiers

2020-04-23 Thread Philippe Mathieu-Daudé
From: Elena Ufimtseva Relocate machine_int and exit notifiers into common code Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman [PMD: Removed NotifierList machine_init_done_notifiers stub] Signed-off-by: Philippe Mathieu-Daudé --- Makefile.objs

[PATCH 4/7] chardev: Reduce "char-mux.h" scope, rename it "chardev-internal.h"

2020-04-23 Thread Philippe Mathieu-Daudé
No file out of chardev/ requires access to this header, restrict its scope. Signed-off-by: Philippe Mathieu-Daudé --- include/chardev/char-mux.h => chardev/chardev-internal.h | 7 --- chardev/char-fe.c| 2 +- chardev/char-mux.c

[PATCH 1/7] monitor/misc: Remove unused "chardev/char-mux.h" include

2020-04-23 Thread Philippe Mathieu-Daudé
monitor/misc.c never required "chardev/char-mux.h", remove it. Signed-off-by: Philippe Mathieu-Daudé --- monitor/misc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/monitor/misc.c b/monitor/misc.c index 6c45fa490f..5d68026a7f 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -33,7 +33,6

[PATCH 6/7] stubs: Split machine-init-done as machine-init and machine-notify

2020-04-23 Thread Philippe Mathieu-Daudé
As the machine notify handlers are only used in system emulation, split the current file in two, and only build the notifier when system emulation is used. Signed-off-by: Philippe Mathieu-Daudé --- stubs/machine-init.c| 4 stubs/{machine-init-done.c =>

[PATCH 3/7] chardev: Restrict msmouse / wctablet / testdev to system emulation

2020-04-23 Thread Philippe Mathieu-Daudé
The msmouse / wctablet / testdev character devices are only used by system emulation. Remove them from user mode and tools. Signed-off-by: Philippe Mathieu-Daudé --- chardev/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chardev/Makefile.objs

[PATCH 2/7] tests/test-char: Remove unused "chardev/char-mux.h" include

2020-04-23 Thread Philippe Mathieu-Daudé
This test never required "chardev/char-mux.h", remove it. Signed-off-by: Philippe Mathieu-Daudé --- tests/test-char.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test-char.c b/tests/test-char.c index 3afc9b1b8d..f08a39790e 100644 --- a/tests/test-char.c +++ b/tests/test-char.c @@

[PATCH 0/7] chardev: Reduce system emulation specific code

2020-04-23 Thread Philippe Mathieu-Daudé
chardev cleanup while reviewing 'Refactor machine_init and exit notifiers' from the multi-process series: https://www.mail-archive.com/qemu-devel@nongnu.org/msg697510.html Elena Ufimtseva (1): multi-process: Refactor machine_init and exit notifiers Philippe Mathieu-Daudé (6): monitor/misc:

[PATCH] elf_ops: Don't try to g_mapped_file_unref(NULL)

2020-04-23 Thread Peter Maydell
Calling g_mapped_file_unref() on a NULL pointer is not valid, and glib will assert if you try it. $ qemu-system-arm -M virt -display none -device loader,file=/tmp/bad.elf qemu-system-arm: -device loader,file=/tmp/bad.elf: GLib: g_mapped_file_unref: assertion 'file != NULL' failed (One way to

Re: [RFC PATCH v1 2/7] char-socket: return -1 in case of disconnect during tcp_chr_write

2020-04-23 Thread Marc-André Lureau
Hi On Thu, Apr 23, 2020 at 8:43 PM Dima Stepanov wrote: > > During testing of the vhost-user-blk reconnect functionality the qemu > SIGSEGV was triggered: > start qemu as: > x86_64-softmmu/qemu-system-x86_64 -m 1024M -M q35 \ >-object >

Re: [PATCH] linux-user/riscv: fix up struct target_ucontext definition

2020-04-23 Thread Richard Henderson
On 4/22/20 6:55 PM, LIU Zhiwei wrote: > As far as I know, Guo Ren and Greentime are supporting RVV on Linux, based on > the v0.7.1 QEMU implementation. > The main problem is that VLEN is not a  fixed number. Neither is the SVE vector length fixed. That's one of the reasons I pointed you at the

Re: [RFC PATCH v1 3/7] char-socket: initialize reconnect timer only if close is emitted

2020-04-23 Thread Marc-André Lureau
Hi On Thu, Apr 23, 2020 at 8:41 PM Dima Stepanov wrote: > > During vhost-user reconnect functionality testing the following assert > was hit: > qemu-system-x86_64: chardev/char-socket.c:125: > qemu_chr_socket_restart_timer: Assertion `!s->reconnect_timer' failed. > Aborted (core dumped)

[RFC PATCH v1 6/7] vhost: check vring address before calling unmap

2020-04-23 Thread Dima Stepanov
Since disconnect can happen at any time during initialization not all vring buffers (for instance used vring) can be intialized successfully. If the buffer was not initialized then vhost_memory_unmap call will lead to SIGSEGV. Add checks for the vring address value before calling unmap. Also add

[RFC PATCH v1 7/7] vhost: add device started check in migration set log

2020-04-23 Thread Dima Stepanov
If vhost-user daemon is used as a backend for the vhost device, then we should consider a possibility of disconnect at any moment. If such disconnect happened in the vhost_migration_log() routine the vhost device structure will be clean up. At the start of the vhost_migration_log() function there

Re: [PATCH 13/13] qom: Simplify object_property_get_enum()

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- qom/object.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org |

[RFC PATCH v1 2/7] char-socket: return -1 in case of disconnect during tcp_chr_write

2020-04-23 Thread Dima Stepanov
During testing of the vhost-user-blk reconnect functionality the qemu SIGSEGV was triggered: start qemu as: x86_64-softmmu/qemu-system-x86_64 -m 1024M -M q35 \ -object memory-backend-file,id=ram-node0,size=1024M,mem-path=/dev/shm/qemu,share=on \ -numa node,cpus=0,memdev=ram-node0 \

[RFC PATCH v1 4/7] vhost: introduce wrappers to set guest notifiers for virtio device

2020-04-23 Thread Dima Stepanov
Introduce new wrappers to set/reset guest notifiers for the virtio device in the vhost device module: vhost_dev_assign_guest_notifiers ->set_guest_notifiers(..., ..., true); vhost_dev_drop_guest_notifiers ->set_guest_notifiers(..., ..., false); This is a preliminary step to refactor

[RFC PATCH v1 1/7] contrib/vhost-user-blk: add option to simulate disconnect on init

2020-04-23 Thread Dima Stepanov
Add "--simulate-disconnect-stage" option for the testing purposes. This option can be used to test the vhost-user reconnect functionality: ./vhost-user-blk ... --simulate-disconnect-stage= In this case the daemon will "crash" in the middle of the VHOST comands communication. Case nums are as

[RFC PATCH v1 5/7] vhost-user-blk: add mechanism to track the guest notifiers init state

2020-04-23 Thread Dima Stepanov
In case of the vhost-user devices the daemon can be killed at any moment. Since QEMU supports the reconnet functionality the guest notifiers should be reset and disabled after "disconnect" event. The most issues were found if the "disconnect" event happened during vhost device initialization step.

[RFC PATCH v1 0/7] vhost-user reconnect issues during vhost initialization

2020-04-23 Thread Dima Stepanov
During vhost-user reconnect functionality we hit several issues, if vhost-user-blk daemon is "crashed" or made disconnect during vhost initialization. The general scenario is as follows: - vhost start routine is called - vhost write failed due to SIGPIPE - this call the disconnect routine

[RFC PATCH v1 3/7] char-socket: initialize reconnect timer only if close is emitted

2020-04-23 Thread Dima Stepanov
During vhost-user reconnect functionality testing the following assert was hit: qemu-system-x86_64: chardev/char-socket.c:125: qemu_chr_socket_restart_timer: Assertion `!s->reconnect_timer' failed. Aborted (core dumped) This is observed only if the connection is closed by the vhost-user-blk

Re: [PATCH 12/13] qapi: Only input visitors can actually fail

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: The previous few commits have made this more obvious, and removed the one exception. Time to clarify the documentation, and drop dead error checking. Signed-off-by: Markus Armbruster --- I guess the only other failures an output visitor might

Re: [PATCH 10/13] qapi: Clean up visitor's recovery from input with invalid type

2020-04-23 Thread Eric Blake
On 4/23/20 1:06 PM, Eric Blake wrote: On 4/23/20 11:00 AM, Markus Armbruster wrote: An alternate type's visit_type_FOO() fails when it runs into an invalid ->type.  If it's an input visit, we then need to free the the object we got from visit_start_alternate().  We do that with qapi_free_FOO(),

Re: [PATCH for 5.1 v1 00/14] guest_base, gdbstub and Travis

2020-04-23 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423170557.31106-1-alex.ben...@linaro.org/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

Re: [PATCH for 5.1 v1 00/14] guest_base, gdbstub and Travis

2020-04-23 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200423170557.31106-1-alex.ben...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH for 5.1 v1 00/14] guest_base, gdbstub and Travis Message-id:

Re: [PATCH v3 1/9] block: Avoid dead assignment

2020-04-23 Thread Max Reitz
On 22.04.20 15:31, Philippe Mathieu-Daudé wrote: > Fix warning reported by Clang static code analyzer: > > block.c:3167:5: warning: Value stored to 'ret' is never read > ret = bdrv_fill_options(, filename, , _err); > ^ ~ >

Re: [PATCH v3 2/9] blockdev: Remove dead assignment

2020-04-23 Thread Max Reitz
On 22.04.20 15:31, Philippe Mathieu-Daudé wrote: > Fix warning reported by Clang static code analyzer: > > CC blockdev.o > blockdev.c:2744:5: warning: Value stored to 'ret' is never read > ret = blk_truncate(blk, size, false, PREALLOC_MODE_OFF, errp); > ^

Re: [PATCH 11/13] qapi: Assert non-input visitors see only valid alternate tags

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: An alternate type's visit_type_FOO() fails when it runs into an invalid ->type. This is appropriate with an input visitor: visit_start_alternate() sets ->type according to the input, and bad input can lead to bad ->type. It should never happen with

Re: [PATCH 10/13] qapi: Clean up visitor's recovery from input with invalid type

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: An alternate type's visit_type_FOO() fails when it runs into an invalid ->type. If it's an input visit, we then need to free the the object we got from visit_start_alternate(). We do that with qapi_free_FOO(), which uses the dealloc visitor.

Re: [PATCH v6 07/10] block: truncate: Don't make backing file data visible

2020-04-23 Thread Max Reitz
On 23.04.20 17:01, Kevin Wolf wrote: > When extending the size of an image that has a backing file larger than > its old size, make sure that the backing file data doesn't become > visible in the guest, but the added area is properly zeroed out. > > Consider the following scenario where the

[PATCH RFC] target/arm: Implement SVE2 SPLICE, EXT

2020-04-23 Thread Stephen Long
Signed-off-by: Stephen Long I'm not sure I can just use the SVE helper functions for the SVE2 variants of EXT and SPLICE. --- target/arm/sve.decode | 8 target/arm/translate-sve.c | 39 +- 2 files changed, 42 insertions(+), 5 deletions(-) diff

Re: [PATCH v6 10/10] qcow2: Forward ZERO_WRITE flag for full preallocation

2020-04-23 Thread Max Reitz
On 23.04.20 17:01, Kevin Wolf wrote: > The BDRV_REQ_ZERO_WRITE is currently implemented in a way that first the > image is possibly preallocated and then the zero flag is added to all > clusters. This means that a copy-on-write operation may be needed when > writing to these clusters, despite

Re: [PATCH 09/13] qapi: Assert non-input visitors see only valid narrow integers

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: visit_type_intN() and visit_type_uintN() fail when the value is out of bounds. This is appropriate with an input visitor: the value comes from input, and input may be bad. It should never happen with the other visitors: the value comes from the

Re: [PATCH 08/13] qapi: Assert output visitors see only valid enum values

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: output_type_enum() fails when *obj is not a valid value of the enum type. Should not happen. Drop the check, along with its unit tests. qapi_enum_lookup()'s assertion still guards. Signed-off-by: Markus Armbruster --- qapi/qapi-visit-core.c

[Bug 1874504] [NEW] VFIO passthrough spits out thousands of messages

2020-04-23 Thread Graeme Brett Houston BSc
Public bug reported: started qemu as: sudo qemu-system-sparc64 -device vfio-pci,host=0b:05.0,x-no-mmap=on,bus=pciB messages received thousands of times: qemu-system-sparc64: -device vfio-pci,host=0b:05.0,x-no-mmap=on,bus=pciB: iommu has granularity incompatible with target AS

Re: [PATCH 07/13] qapi: Fix Visitor contract for start_alternate()

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: The contract demands v->start_alternate() for input and dealloc visitors, but visit_start_alternate() actually requires it for input and clone visitors. Fix the contract, and delete superfluous qapi_dealloc_start_alternate(). Signed-off-by: Markus

Re: [PATCH 06/13] qapi: Assert incomplete object occurs only in dealloc visitor

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- include/qapi/visitor.h | 5 + qapi/qapi-visit-core.c | 5 + scripts/qapi/visit.py | 4 3 files changed, 14 insertions(+) Nice enforcement of the contract. Reviewed-by: Eric Blake -- Eric

Re: [PATCH 05/13] qapi: Polish prose in visitor.h

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- include/qapi/visitor.h | 104 + 1 file changed, 54 insertions(+), 50 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: [PATCH v21 QEMU 4/5] virtio-balloon: Implement support for page poison tracking feature

2020-04-23 Thread Alexander Duyck
On Thu, Apr 23, 2020 at 9:02 AM David Hildenbrand wrote: > > On 23.04.20 16:46, Alexander Duyck wrote: > > On Thu, Apr 23, 2020 at 1:11 AM David Hildenbrand wrote: > >> > >> On 22.04.20 20:21, Alexander Duyck wrote: > >>> From: Alexander Duyck > >>> > >>> We need to make certain to advertise

Re: [PATCH 0/5] QEMU Gating CI

2020-04-23 Thread Peter Maydell
On Thu, 23 Apr 2020 at 18:37, Cleber Rosa wrote: > We're already using the shared x86 runners, but with a different goal. The > goal of the "Gating CI" is indeed to expand on non-x86 environments. We're > in a "chicken and egg" kind of situation, because we'd like to prove that > GitLab CI will

Re: [PATCH] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread Eric Blake
On 4/23/20 12:21 PM, Max Reitz wrote: The previous comment was incorrect as well, but actually qcow2_truncate_bitmaps_check() doesn’t return an error when there is any bitmap, but only if there are non-active bitmaps, or active bitmaps that cannot be modified.  So for non-disabled bitmaps, we

Re: [PATCH 0/5] QEMU Gating CI

2020-04-23 Thread Cleber Rosa
- Original Message - > From: "Daniel P. Berrangé" > To: "Cleber Rosa" > Cc: "Peter Maydell" , "Fam Zheng" > , "Thomas Huth" , > "Beraldo Leal" , "Erik Skultety" , > "Philippe Mathieu-Daudé" > , "Wainer Moschetta" , "Markus > Armbruster" , "Wainer dos > Santos Moschetta" , "QEMU

Re: [PATCH 04/13] qapi: Document @errp usage more thoroughly in visitor.h

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- include/qapi/visitor.h | 37 +++-- 1 file changed, 23 insertions(+), 14 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc.

Re: [PATCH 02/13] qapi: Fix the virtual walk example in visitor.h's big comment

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Call visit_check_list(). Missed in commit a4a1c70dc7 "qapi: Make input visitors detect unvisited list tails". Drop an irrelevant error_propagate() while there. Aha - you found this because of your error cleanup work ;) Signed-off-by: Markus

Re: [PATCH 03/13] qapi: Fix typo in visit_start_list()'s contract

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- include/qapi/visitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Too much copy-and-paste in the original ;) Reviewed-by: Eric Blake diff --git a/include/qapi/visitor.h

Re: [PATCH v4 22/30] qcow2: Fix offset calculation in handle_dependencies()

2020-04-23 Thread Alberto Garcia
On Wed 22 Apr 2020 02:38:54 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > 17.03.2020 21:16, Alberto Garcia wrote: >> l2meta_cow_start() and l2meta_cow_end() are not necessarily >> cluster-aligned if the image has subclusters, so update the >> calculation of old_start and old_end to guarantee that

Re: [PATCH 01/13] qapi: Belatedly update visitor.h's big comment for QAPI modules

2020-04-23 Thread Eric Blake
On 4/23/20 11:00 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster --- include/qapi/visitor.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226

Re: [PATCH v2 09/36] tcg: Consolidate 3 bits into enum TCGTempKind

2020-04-23 Thread Daniel P . Berrangé
On Thu, Apr 23, 2020 at 08:40:10AM -0700, Richard Henderson wrote: > On 4/23/20 2:00 AM, Philippe Mathieu-Daudé wrote: > >>> @@ -1885,12 +1896,17 @@ static char *tcg_get_arg_str_ptr(TCGContext *s, > >>> char *buf, int buf_size, > >>> { > >>> int idx = temp_idx(ts); > >>> > >>> -if

Re: [PATCH v4 21/30] qcow2: Add subcluster support to check_refcounts_l2()

2020-04-23 Thread Alberto Garcia
On Wed 22 Apr 2020 02:06:56 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > 17.03.2020 21:16, Alberto Garcia wrote: >> Setting the QCOW_OFLAG_ZERO bit of the L2 entry is forbidden if an >> image has subclusters. Instead, the individual 'all zeroes' bits must >> be used. >> >> Signed-off-by:

Re: [PATCH] qcow2: Allow resize of images with internal snapshots

2020-04-23 Thread Max Reitz
On 23.04.20 16:35, Eric Blake wrote: > On 4/23/20 8:55 AM, Max Reitz wrote: >> On 22.04.20 22:53, Eric Blake wrote: >>> We originally refused to allow resize of images with internal >>> snapshots because the v2 image format did not require the tracking of >>> snapshot size, making it impossible to

Re: ARM SVE issues with non "standard" vector lengths

2020-04-23 Thread Laurent Desnogues
On Thu, Apr 23, 2020 at 5:19 PM Richard Henderson wrote: > > On 4/23/20 6:59 AM, Laurent Desnogues wrote: > > 2. sve_zip_p > > > > This generates extraneous data in the higher part of the result. > > > > I hit this when I got a wrong result on an instruction that ends up > > using sve_cntp which

Re: [RFC 0/3] 64bit block-layer part I

2020-04-23 Thread Kevin Wolf
Am 30.03.2020 um 16:18 hat Vladimir Sementsov-Ogievskiy geschrieben: > Hi all! > > There is an idea to make NBD protocol extension to support 64bit > write-zero/discard/block-status commands (commands, which doesn't > transfer user data). It's needed to increase performance of zeroing > large

Re: [PATCH 0/5] QEMU Gating CI

2020-04-23 Thread Daniel P . Berrangé
On Thu, Apr 23, 2020 at 01:04:13PM -0400, Cleber Rosa wrote: > > > - Original Message - > > From: "Peter Maydell" > > To: "Markus Armbruster" > > Cc: "Fam Zheng" , "Thomas Huth" , > > "Beraldo Leal" , "Erik > > Skultety" , "Alex Bennée" , > > "Wainer Moschetta" , > > "QEMU

[PATCH v1 10/14] gdbstub/linux-user: support debugging over a unix socket

2020-04-23 Thread Alex Bennée
While debugging over TCP is fairly straightforward now we have test cases that want to orchestrate via make and currently a parallel build fails as two processes can't use the same listening port. While system emulation offers a wide cornucopia of connection methods thanks to the chardev

[PATCH v1 13/14] .travis.yml: show free disk space at end of run

2020-04-23 Thread Alex Bennée
Signed-off-by: Alex Bennée --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 2fd63eceaa..a4c3c6c805 100644 --- a/.travis.yml +++ b/.travis.yml @@ -113,6 +113,7 @@ script: $(exit $BUILD_RC); fi after_script: + - df -h - if

[PATCH v1 12/14] tests/tcg: add a multiarch linux-user gdb test

2020-04-23 Thread Alex Bennée
When the gdbstub code was converted to the new API we missed a few snafus in the various guests. Add a simple gdb test script which can be used on all our linux-user guests to check for obvious failures. Signed-off-by: Alex Bennée --- v2 - use EXTRA_RUNS to queue the tests so as not to break

  1   2   3   >