Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Philippe Mathieu-Daudé
Hi Cédric, On 8/6/21 8:00 PM, Cédric Le Goater wrote: > It includes support for the POWER10 processor and the QEMU platform. 1/ Can you include the output of 'git shortlog v6.4..820d43c0' here? > > Built from submodule. 2/ Could we have a CI job building this, during 6.2 cycle? (See .gitlab

[PATCH] target/riscv: Add User CSRs read-only check

2021-08-09 Thread LIU Zhiwei
Signed-off-by: LIU Zhiwei --- target/riscv/csr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index 9a4ed18ac5..ea62d9e653 100644 --- a/target/riscv/csr.c +++ b/target/riscv/csr.c @@ -1422,11 +1422,11 @@ RISCVException riscv_csrr

Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 5:37 AM, David Gibson wrote: > On Fri, Aug 06, 2021 at 08:00:40PM +0200, Cédric Le Goater wrote: >> It includes support for the POWER10 processor and the QEMU platform. >> >> Built from submodule. >> >> Signed-off-by: Cédric Le Goater > > Applied to ppc-for-6.2, thanks. FYI asked descr

[Bug 1939179] Re: qemu-ga fsfreeze crashes the kernel

2021-08-09 Thread Thomas Huth
We are currently in progress of retiring this bug tracker here... could you please open a new ticket on gitlab instead: https://gitlab.com/qemu-project/qemu/-/issues Thanks and sorry for the inconvenience. ** Changed in: qemu Status: New => Incomplete -- You received this bug notificat

Re: [PATCH-for-6.2 1/2] disas/nios2: Fix style in print_insn_nios2()

2021-08-09 Thread Philippe Mathieu-Daudé
+Peter for overall style recommendation. On 8/9/21 8:08 AM, Thomas Huth wrote: > On 07/08/2021 13.09, Philippe Mathieu-Daudé wrote: >> We are going to modify this function, fix its style first. >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >>   disas/nios2.c | 53 +---

Re: [RFC PATCH 04/13] target/riscv: Support UXL32 for slit/sltiu

2021-08-09 Thread LIU Zhiwei
On 2021/8/6 上午3:09, Richard Henderson wrote: On 8/4/21 4:53 PM, LIU Zhiwei wrote: +static bool gen_arith_simm_tl(DisasContext *ctx, arg_i *a, +  void (*func)(TCGv, TCGv, TCGv)) +{ +    TCGv dest = gpr_dst(ctx, a->rd); +    TCGv src1 = gpr_src_s(ctx, a->rs1); +    TC

Re: [PATCH] vmxnet3: add stub for encapsulation offload

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/7/21 10:25 PM, Alexander Bulekov wrote: > On 210807 1019, Philippe Mathieu-Daudé wrote: >> On 8/7/21 12:23 AM, Alexander Bulekov wrote: >>> Encapsulation offload (offload mode 1) is a valid mode present in the >>> kernel that isn't implemented in QEMU, yet. >>> >>> https://lore.kernel.org/lkml

Re: [PATCH] hw: arm: aspeed: Enable eth0 interface for aspeed-ast2600-evb

2021-08-09 Thread Cédric Le Goater
On 8/8/21 10:04 PM, Guenter Roeck wrote: > Commit 7582591ae7 ("aspeed: Support AST2600A1 silicon revision") switched > the silicon revision for AST2600 to revision A1. On revision A1, the first > Ethernet interface is operational. Enable it. Indeed. I see that commit ba56f464f0c ("ARM: dts: aspe

Re: [RFC PATCH 05/13] target/riscv: Support UXL32 for shift instruction

2021-08-09 Thread LIU Zhiwei
On 2021/8/6 上午6:17, Richard Henderson wrote: On 8/4/21 4:53 PM, LIU Zhiwei wrote:   static bool trans_srli(DisasContext *ctx, arg_srli *a)   { +    if (ctx->uxl32) { +    return trans_srliw(ctx, a); +    }   return gen_shifti(ctx, a, tcg_gen_shr_tl);   } First, trans_srliw begins wit

Re: [RFC PATCH 06/13] target/riscv: Fix div instructions

2021-08-09 Thread LIU Zhiwei
On 2021/8/6 上午6:18, Richard Henderson wrote: On 8/4/21 4:53 PM, LIU Zhiwei wrote: Don't overwrite global source register after https://lists.gnu.org/archive/html/qemu-riscv/2021-07/msg00058.html. Signed-off-by: LIU Zhiwei ---   target/riscv/translate.c | 46 +++

Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Cédric Le Goater
Hello Phil, On 8/9/21 9:06 AM, Philippe Mathieu-Daudé wrote: > Hi Cédric, > > On 8/6/21 8:00 PM, Cédric Le Goater wrote: >> It includes support for the POWER10 processor and the QEMU platform. > > 1/ Can you include the output of 'git shortlog v6.4..820d43c0' here? OK. See attachement. >> >> Bu

Re: [PATCH] hw: arm: aspeed: Enable eth0 interface for aspeed-ast2600-evb

2021-08-09 Thread Joel Stanley
On Mon, 9 Aug 2021 at 07:45, Cédric Le Goater wrote: > > On 8/8/21 10:04 PM, Guenter Roeck wrote: > > Commit 7582591ae7 ("aspeed: Support AST2600A1 silicon revision") switched > > the silicon revision for AST2600 to revision A1. On revision A1, the first > > Ethernet interface is operational. Enab

Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 9:55 AM, Cédric Le Goater wrote: > Hello Phil, > > On 8/9/21 9:06 AM, Philippe Mathieu-Daudé wrote: >> Hi Cédric, >> >> On 8/6/21 8:00 PM, Cédric Le Goater wrote: >>> It includes support for the POWER10 processor and the QEMU platform. >> >> 1/ Can you include the output of 'git shortlog

Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Cédric Le Goater
On 8/9/21 10:06 AM, Philippe Mathieu-Daudé wrote: > On 8/9/21 9:55 AM, Cédric Le Goater wrote: >> Hello Phil, >> >> On 8/9/21 9:06 AM, Philippe Mathieu-Daudé wrote: >>> Hi Cédric, >>> >>> On 8/6/21 8:00 PM, Cédric Le Goater wrote: It includes support for the POWER10 processor and the QEMU plat

Re: [PATCH] hw: arm: aspeed: Enable eth0 interface for aspeed-ast2600-evb

2021-08-09 Thread Cédric Le Goater
On 8/9/21 10:01 AM, Joel Stanley wrote: > On Mon, 9 Aug 2021 at 07:45, Cédric Le Goater wrote: >> >> On 8/8/21 10:04 PM, Guenter Roeck wrote: >>> Commit 7582591ae7 ("aspeed: Support AST2600A1 silicon revision") switched >>> the silicon revision for AST2600 to revision A1. On revision A1, the first

Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 10:14 AM, Cédric Le Goater wrote: > On 8/9/21 10:06 AM, Philippe Mathieu-Daudé wrote: >> On 8/9/21 9:55 AM, Cédric Le Goater wrote: >>> Hello Phil, >>> >>> On 8/9/21 9:06 AM, Philippe Mathieu-Daudé wrote: Hi Cédric, On 8/6/21 8:00 PM, Cédric Le Goater wrote: > It includ

Re: [PATCH] ppc/pnv: update skiboot to commit 820d43c0a775.

2021-08-09 Thread Cédric Le Goater
On 8/9/21 10:18 AM, Philippe Mathieu-Daudé wrote: > On 8/9/21 10:14 AM, Cédric Le Goater wrote: >> On 8/9/21 10:06 AM, Philippe Mathieu-Daudé wrote: >>> On 8/9/21 9:55 AM, Cédric Le Goater wrote: Hello Phil, On 8/9/21 9:06 AM, Philippe Mathieu-Daudé wrote: > Hi Cédric, >

Re: [PATCH v8 08/16] qemu-iotests: add gdbserver option to script tests too

2021-08-09 Thread Emanuele Giuseppe Esposito
diff --git a/tests/qemu-iotests/common.qemu b/tests/qemu-iotests/common.qemu index 0fc52d20d7..cbca757b49 100644 --- a/tests/qemu-iotests/common.qemu +++ b/tests/qemu-iotests/common.qemu @@ -85,7 +85,12 @@ _timed_wait_for()   timeout=yes   QEMU_STATUS[$h]=0 -    while IFS= read -t ${QE

RE: [PULL V3 for 6.2 1/6] qapi/net: Add IPFlowSpec and QMP command for filter passthrough

2021-08-09 Thread Zhang, Chen
> -Original Message- > From: Markus Armbruster > Sent: Saturday, August 7, 2021 7:32 PM > To: Zhang, Chen > Cc: Jason Wang ; Eric Blake ; > Dr. David Alan Gilbert ; qemu-dev de...@nongnu.org>; Daniel P.Berrangé ; Gerd > Hoffmann ; Li Zhijian ; Lukas > Straub > Subject: Re: [PULL V3 f

[PATCH] block/export/fuse.c: fix musl build

2021-08-09 Thread Fabrice Fontaine
Fix the following build failure on musl raised since version 6.0.0 and https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b because musl does not define FALLOC_FL_ZERO_RANGE: ../block/export/fuse.c: In function 'fuse_fallocate': ../block/export/fuse.c:563:23: erro

[PATCH] xive: Remove extra '0x' prefix in trace events

2021-08-09 Thread Cédric Le Goater
Cc: th...@redhat.com Fixes: 4e960974d4ee ("xive: Add trace events") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/519 Signed-off-by: Cédric Le Goater --- hw/intc/trace-events | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/intc/trace-events b/hw/intc/tr

[PATCH v9 02/16] python: Reduce strictness of pylint's duplicate-code check

2021-08-09 Thread Emanuele Giuseppe Esposito
From: John Snow Pylint prior to 2.8.3 (We pin at >= 2.8.0) includes function and method signatures as part of its duplicate checking algorithm. This check does not listen to pragmas, so the only way to disable it is to turn it off completely or increase the minimum duplicate lines so that it does

[PATCH v9 03/16] python: qemu: pass the wrapper field from QEMUQtestmachine to QEMUMachine

2021-08-09 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Reviewed-by: Max Reitz Acked-by: John Snow --- python/qemu/machine/qtest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/qemu/machine/qtest.py b/python/q

[PATCH v9 00/16] qemu_iotests: improve debugging options

2021-08-09 Thread Emanuele Giuseppe Esposito
This series adds the option to attach gdbserver and valgrind to the QEMU binary running in qemu_iotests. It also allows to redirect QEMU binaries output of the python tests to the stdout, instead of a log file. Patches 1-9 introduce the -gdb option to both python and bash tests, 10-14 extend the

[PATCH v9 05/16] qemu-iotests: add option to attach gdbserver

2021-08-09 Thread Emanuele Giuseppe Esposito
Define -gdb flag and GDB_OPTIONS environment variable to python tests to attach a gdbserver to each qemu instance. This patch only adds and parses this flag, it does not yet add the implementation for it. if -gdb is not provided but $GDB_OPTIONS is set, ignore the environment variable. Signed-off

[PATCH v9 08/16] qemu-iotests: add gdbserver option to script tests too

2021-08-09 Thread Emanuele Giuseppe Esposito
Remove read timer in test script when GDB_OPTIONS are set, so that the bash tests won't timeout while running gdb. The only limitation here is that running a script with gdbserver will make the test output mismatch with the expected results, making the test fail. Signed-off-by: Emanuele Giuseppe

[PATCH v9 01/16] python: qemu: add timer parameter for qmp.accept socket

2021-08-09 Thread Emanuele Giuseppe Esposito
Also add a new _qmp_timer field to the QEMUMachine class. Let's change the default socket timeout to None, so that if a subclass needs to add a timer, it can be done by modifying this private field. At the same time, restore the timer to be 15 seconds in iotests.py, to give an upper bound to the

[PATCH v9 04/16] docs/devel/testing: add debug section to the QEMU iotests chapter

2021-08-09 Thread Emanuele Giuseppe Esposito
Introduce the "Debugging a test case" section, in preparation to the additional flags that will be added in the next patches. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- docs/devel/testing.rst | 8 1 file changed, 8 in

[PATCH v9 11/16] qemu-iotests: extend QMP socket timeout when using valgrind

2021-08-09 Thread Emanuele Giuseppe Esposito
As with gdbserver, valgrind delays the test execution, so the default QMP socket timeout and the generic class Timeout in iotests.py timeouts too soon. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- tests/qemu-iotests/iotests.py |

[PATCH v9 06/16] qemu-iotests: delay QMP socket timers

2021-08-09 Thread Emanuele Giuseppe Esposito
Attaching gdbserver implies that the qmp socket should wait indefinitely for an answer from QEMU. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Max Reitz --- tests/qemu-iotests/iotests.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotest

[PATCH v9 07/16] qemu_iotests: insert gdbserver command line as wrapper for qemu binary

2021-08-09 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- tests/qemu-iotests/iotests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index e176a84620..e7e3

[PATCH v9 13/16] qemu-iotests: insert valgrind command line as wrapper for qemu binary

2021-08-09 Thread Emanuele Giuseppe Esposito
If -gdb and -valgrind are both defined, return an error. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- tests/qemu-iotests/iotests.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/iote

[PATCH v9 09/16] docs/devel/testing: add -gdb option to the debugging section of QEMU iotests

2021-08-09 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- docs/devel/testing.rst | 11 +++ 1 file changed, 11 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 8359f2ae37..01e1919873 100644 --- a/docs/d

Re: [PATCH v2] vhost: make SET_VRING_ADDR, SET_FEATURES send replies

2021-08-09 Thread Denis Plotnikov
On 03.08.2021 18:05, Michael S. Tsirkin wrote: On Mon, Jul 19, 2021 at 05:21:38PM +0300, Denis Plotnikov wrote: On vhost-user-blk migration, qemu normally sends a number of commands to enable logging if VHOST_USER_PROTOCOL_F_LOG_SHMFD is negotiated. Qemu sends VHOST_USER_SET_FEATURES to enable

[PATCH v9 14/16] docs/devel/testing: add -valgrind option to the debug section of QEMU iotests

2021-08-09 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy --- docs/devel/testing.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 01e1919873..8ebcf85a31 100644 --- a/docs/devel/te

[PATCH v9 10/16] qemu-iotests: extend the check script to prepare supporting valgrind for python tests

2021-08-09 Thread Emanuele Giuseppe Esposito
Currently, the check script only parses the option and sets the VALGRIND_QEMU environmental variable to "y". Add another local python variable that prepares the command line, identical to the one provided in the test scripts. Because the python script does not know in advance the valgrind PID to a

[PATCH v9 15/16] qemu-iotests: add option to show qemu binary logs on stdout

2021-08-09 Thread Emanuele Giuseppe Esposito
Using the flag -p, allow the qemu binary to print to stdout. Also create the common function _close_qemu_log_file() to avoid accessing machine.py private fields directly and have duplicate code. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max

[PATCH v9 12/16] qemu-iotests: allow valgrind to read/delete the generated log file

2021-08-09 Thread Emanuele Giuseppe Esposito
When using -valgrind on the script tests, it generates a log file in $TEST_DIR that is either read (if valgrind finds problems) or otherwise deleted. Provide the same exact behavior when using -valgrind on the python tests. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov

[PATCH v3] vhost: make SET_VRING_ADDR, SET_FEATURES send replies

2021-08-09 Thread Denis Plotnikov
On vhost-user-blk migration, qemu normally sends a number of commands to enable logging if VHOST_USER_PROTOCOL_F_LOG_SHMFD is negotiated. Qemu sends VHOST_USER_SET_FEATURES to enable buffers logging and VHOST_USER_SET_VRING_ADDR per each started ring to enable "used ring" data logging. The issue is

[PATCH v9 16/16] docs/devel/testing: add -p option to the debug section of QEMU iotests

2021-08-09 Thread Emanuele Giuseppe Esposito
Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- docs/devel/testing.rst | 4 1 file changed, 4 insertions(+) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 8ebcf85a31..4a0abbf23d 100644 --- a/docs/devel/test

Re: [PATCH v2] hw/display/xlnx_dp: fix an out-of-bounds read in xlnx_dp_read

2021-08-09 Thread Gerd Hoffmann
Hi, > As a side note(not strictly related to this fix) should we continue > joining reproducer patches with the fixes? In order to test the > reproducer, you need to cleave the fix off the patch. At the same time > we don't want to mess up bisection, so does it make sense to have the > reproduce

Re: [PATCH 0/5] [RfC] monitor/hmp: command register support

2021-08-09 Thread Gerd Hoffmann
On Sat, Aug 07, 2021 at 12:36:13PM +0200, Markus Armbruster wrote: > Gerd Hoffmann writes: > > > Helps making qemu more modular, > > see commit messages for details. > > > > Depends on the "modules: add meta-data database" patch series. > > This series is about HMP. Do we have equivalent functi

Re: [PATCH v2] hw/display/xlnx_dp: fix an out-of-bounds read in xlnx_dp_read

2021-08-09 Thread Peter Maydell
On Fri, 6 Aug 2021 at 15:43, Alexander Bulekov wrote: > As a side note(not strictly related to this fix) should we continue > joining reproducer patches with the fixes? In order to test the > reproducer, you need to cleave the fix off the patch. At the same time > we don't want to mess up bisectio

Re: [PATCH v2] hw/display/xlnx_dp: fix an out-of-bounds read in xlnx_dp_read

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/6/21 4:42 PM, Alexander Bulekov wrote: > On 210804 1451, Qiang Liu wrote: >> xlnx_dp_read allows an out-of-bounds read at its default branch because >> of an improper index. >> >> According to >> https://www.xilinx.com/html_docs/registers/ug1087/ug1087-zynq-ultrascale-registers.html >> (DP Mod

Re: [PATCH v2] hw/display/xlnx_dp: fix an out-of-bounds read in xlnx_dp_read

2021-08-09 Thread Qiang Liu
Thank you for all the insightful comments about the separated patches. This would be my first time to format a serial of patches. Does it look like below? [PATCH v3 00/2] title [PATCH v3 01/2] fix [PATCH v3 02/2] test Best, Qiang On Mon, Aug 9, 2021 at 11:24 AM Peter Maydell wrote: > >

Re: [PATCH v3] vhost: make SET_VRING_ADDR, SET_FEATURES send replies

2021-08-09 Thread Michael S. Tsirkin
Looks good. Some cosmetics: On Mon, Aug 09, 2021 at 12:03:30PM +0300, Denis Plotnikov wrote: > On vhost-user-blk migration, qemu normally sends a number of commands > to enable logging if VHOST_USER_PROTOCOL_F_LOG_SHMFD is negotiated. > Qemu sends VHOST_USER_SET_FEATURES to enable buffers logging

Re: [PATCH] target/riscv: Add User CSRs read-only check

2021-08-09 Thread Bin Meng
On Mon, Aug 9, 2021 at 3:09 PM LIU Zhiwei wrote: > nits: please write something in the commit message > Signed-off-by: LIU Zhiwei > --- > target/riscv/csr.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/target/riscv/csr.c b/target/riscv/csr.c > index 9a4ed18ac5.

Re: [PATCH v2] hw/display/xlnx_dp: fix an out-of-bounds read in xlnx_dp_read

2021-08-09 Thread Alexander Bulekov
On 210809 1131, Philippe Mathieu-Daudé wrote: > On 8/6/21 4:42 PM, Alexander Bulekov wrote: > > On 210804 1451, Qiang Liu wrote: > >> xlnx_dp_read allows an out-of-bounds read at its default branch because > >> of an improper index. > >> > >> According to > >> https://www.xilinx.com/html_docs/regis

Re: [PATCH] block/export/fuse.c: fix musl build

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 10:50 AM, Fabrice Fontaine wrote: > Fix the following build failure on musl raised since version 6.0.0 and > https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b > because musl does not define FALLOC_FL_ZERO_RANGE: > > ../block/export/fuse.c: In function

Re: [PATCH] xive: Remove extra '0x' prefix in trace events

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 10:52 AM, Cédric Le Goater wrote: > Cc: th...@redhat.com > Fixes: 4e960974d4ee ("xive: Add trace events") > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/519 > Signed-off-by: Cédric Le Goater > --- > hw/intc/trace-events | 10 +- > 1 file changed, 5 insertions(+), 5 de

Re: [PATCH] xive: Remove extra '0x' prefix in trace events

2021-08-09 Thread Laurent Vivier
Le 09/08/2021 à 10:52, Cédric Le Goater a écrit : > Cc: th...@redhat.com > Fixes: 4e960974d4ee ("xive: Add trace events") > Resolves: https://gitlab.com/qemu-project/qemu/-/issues/519 > Signed-off-by: Cédric Le Goater > --- > hw/intc/trace-events | 10 +- > 1 file changed, 5 insertions(+)

Re: [PATCH v2] hw/display/xlnx_dp: fix an out-of-bounds read in xlnx_dp_read

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 11:33 AM, Qiang Liu wrote: > Thank you for all the insightful comments about the separated patches. > This would be my first time to format a serial of patches. Does it > look like below? > [PATCH v3 00/2] title > [PATCH v3 01/2] fix > [PATCH v3 02/2] test Exactly. Otherwise,

Re: [PATCH] target/riscv: Add User CSRs read-only check

2021-08-09 Thread LIU Zhiwei
On 2021/8/9 下午5:35, Bin Meng wrote: On Mon, Aug 9, 2021 at 3:09 PM LIU Zhiwei wrote: nits: please write something in the commit message OK Signed-off-by: LIU Zhiwei --- target/riscv/csr.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/riscv/csr.c b/targ

[PULL 1/1] meson: fix logic for gnutls check

2021-08-09 Thread Paolo Bonzini
From: Alyssa Ross The logic before was if not get_option('gnutls').auto() or have_system Which is equivalent to if get_option('gnutls').enabled() or get_option('gnutls').disabled() or have_system This means that the check for gnutls is performed even if gnutls is disabled, wh

[PULL 0/1] Build system patch for 6.1-rc3

2021-08-09 Thread Paolo Bonzini
The following changes since commit dee64246ded3aa7dbada68b96ce1c64e5bea327d: Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.1-pull-request' into staging (2021-08-06 10:28:33 +0100) are available in the Git repository at: https://gitlab.com/bonzini/qemu.git tags/for-ups

Re: [PULL 05/18] hw/riscv: virt: Allow creating multiple NUMA sockets

2021-08-09 Thread Peter Maydell
On Tue, 25 Aug 2020 at 20:03, Alistair Francis wrote: > > From: Anup Patel > > We extend RISC-V virt machine to allow creating a multi-socket > machine. Each RISC-V virt machine socket is a NUMA node having > a set of HARTs, a memory instance, a CLINT instance, and a PLIC > instance. Other device

Re: [PATCH-for-6.2 2/2] disas/nios2: Simplify endianess conversion

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 8:12 AM, Thomas Huth wrote: > On 07/08/2021 13.09, Philippe Mathieu-Daudé wrote: >> Since commit 12b6e9b27d4 ("disas: Clean up CPUDebug initialization") >> the disassemble_info->bfd_endian enum is set for all targets in >> target_disas(). We can directly call print_insn_nios2() and simpli

[RFC 3/4] gqa-win: get_pci_info: Add g_autofree for few variables

2021-08-09 Thread Kostiantyn Kostiuk
Signed-off-by: Kostiantyn Kostiuk --- qga/commands-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 724ce76a0e..a8a601776d 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -539,9 +539,9 @@ static Guest

[RFC 1/4] gqa-win: get_pci_info: Clean dev_info if handle is valid

2021-08-09 Thread Kostiantyn Kostiuk
Signed-off-by: Kostiantyn Kostiuk --- qga/commands-win32.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 27baf17d6c..2ad8593b82 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -514,7 +514,7 @@ DEFINE_GUI

[RFC 4/4] gqa-win: get_pci_info: Free parent_dev_info properly

2021-08-09 Thread Kostiantyn Kostiuk
In case when the function fails to get parent device data, the parent_dev_info variable will be initialized, but not freed. Signed-off-by: Kostiantyn Kostiuk --- qga/commands-win32.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qga/commands-win32.c b/qga/commands-win

[Bug 1813045] Re: qemu-ga fsfreeze crashes the kernel

2021-08-09 Thread Thomas Huth
See also https://gitlab.com/qemu-project/qemu/-/issues/520 ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #520 https://gitlab.com/qemu-project/qemu/-/issues/520 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bu

[RFC 2/4] gqa-win: get_pci_info: Use common 'cleanup' label

2021-08-09 Thread Kostiantyn Kostiuk
To prevent memory leaks, always try to free initialized variables. Signed-off-by: Kostiantyn Kostiuk --- qga/commands-win32.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/qga/commands-win32.c b/qga/commands-win32.c index 2ad8593b82..724ce76a0e 1

Re: [PATCH] target/riscv: Add User CSRs read-only check

2021-08-09 Thread Bin Meng
On Mon, Aug 9, 2021 at 5:45 PM LIU Zhiwei wrote: > > > On 2021/8/9 下午5:35, Bin Meng wrote: > > On Mon, Aug 9, 2021 at 3:09 PM LIU Zhiwei wrote: > > nits: please write something in the commit message > OK > > > >> Signed-off-by: LIU Zhiwei > >> --- > >> target/riscv/csr.c | 6 +- > >> 1 fi

[Bug 1939179] Re: qemu-ga fsfreeze crashes the kernel

2021-08-09 Thread Thomas Huth
https://gitlab.com/qemu-project/qemu/-/issues/520 ... thanks! ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #520 https://gitlab.com/qemu-project/qemu/-/issues/520 ** Changed in: qemu Status: Incomplete => Invalid -- You received this bug notification because you are a memb

[Bug 1807073] Re: qemu-guest-agent stop work when fsfreeze

2021-08-09 Thread Thomas Huth
Re-opened in the new bug tracker here: https://gitlab.com/qemu- project/qemu/-/issues/520 ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #520 https://gitlab.com/qemu-project/qemu/-/issues/520 -- You received this bug notification because you are a member of qemu- devel-ml, which is

[PATCH v2] block/export/fuse.c: fix musl build

2021-08-09 Thread Fabrice Fontaine
Fix the following build failure on musl raised since version 6.0.0 and https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b because musl does not define FALLOC_FL_ZERO_RANGE: ../block/export/fuse.c: In function 'fuse_fallocate': ../block/export/fuse.c:563:23: erro

Re: [PATCH 2/3] ps2: use a separate keyboard command reply queue

2021-08-09 Thread Gerd Hoffmann
Hi, > A PS/2 keyboard has a separate command reply queue that is > independant of the key queue. This prevents that command replies > and keyboard input mix. Keyboard command replies take precedence > over queued keystrokes. A new keyboard command removes any > remaining command replies from the

Re: [PATCH] monitor/hmp: schedule qemu_chr_fe_accept_input() after read

2021-08-09 Thread Marc-André Lureau
Hi Volker On Sat, Aug 7, 2021 at 11:32 PM Volker Rümelin wrote: > Since commit 584af1f1d9 (ui/gtk: add a keyboard fifo to the VTE > consoles) a GTK VTE console chardev backend relies on the > connected chardev frontend to call qemu_chr_fe_accept_input() > whenever it can receive new characters.

Re: [PULL 24/30] spapr_pci: populate ibm,loc-code

2021-08-09 Thread Peter Maydell
On Tue, 7 Jul 2015 at 16:49, Alexander Graf wrote: > > From: Nikunj A Dadhania > > Each hardware instance has a platform unique location code. The OF > device tree that describes a part of a hardware entity must include > the “ibm,loc-code” property with a value that represents the location > co

Re: [RFC PATCH v2] Add a post for the new TCG cache modelling plugin

2021-08-09 Thread Alex Bennée
Mahmoud Mandour writes: > This post introduces the new TCG plugin `cache` that's used for cache > modelling. This plugin is a part of my GSoC 2021 participation. > > Signed-off-by: Mahmoud Mandour > --- > > v1 -> v2: > Elaborated some more in the introduction and broken up some > sente

Re: [PATCH for-6.2 v3 01/12] job: Context changes in job_completed_txn_abort()

2021-08-09 Thread Max Reitz
On 06.08.21 21:16, Eric Blake wrote: On Fri, Aug 06, 2021 at 11:38:48AM +0200, Max Reitz wrote: Finalizing the job may cause its AioContext to change. This is noted by job_exit(), which points at job_txn_apply() to take this fact into account. However, job_completed() does not necessarily invo

Re: [PATCH for-6.2 v3 05/12] job: @force parameter for job_cancel_sync{, _all}()

2021-08-09 Thread Max Reitz
On 06.08.21 21:39, Eric Blake wrote: On Fri, Aug 06, 2021 at 11:38:52AM +0200, Max Reitz wrote: Callers should be able to specify whether they want job_cancel_sync() to force-cancel the job or not. In fact, almost all invocations do not care about consistency of the result and just want the job

Re: [PATCH 3/3] ps2: migration support for command reply queue

2021-08-09 Thread Gerd Hoffmann
Hi, > +static bool ps2_keyboard_cqueue_needed(void *opaque) > +{ > +PS2KbdState *s = opaque; > + > +return s->common.queue.cwptr != -1; /* the queue is mostly empty */ > +} > + > +static const VMStateDescription vmstate_ps2_keyboard_cqueue = { > +.name = "ps2kbd/command_reply_queue",

Re: [PULL 06/23] hw/nvme: namespace parameter for EUI-64

2021-08-09 Thread Peter Maydell
On Tue, 29 Jun 2021 at 19:48, Klaus Jensen wrote: > > From: Heinrich Schuchardt > > The EUI-64 field is the only identifier for NVMe namespaces in UEFI device > paths. Add a new namespace property "eui64", that provides the user the > option to specify the EUI-64. Hi; Coverity complains about so

Re: [Question] Reduce the msix_load cost for VFIO device

2021-08-09 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Alex, 在 2021/8/3 22:19, Alex Williamson 写道: > On Tue, 3 Aug 2021 16:43:07 +0800 > "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" > wrote: > >> Hi Alex, >> >> We found that the msix_load() will cost 40~50ms if the VF has 60+ interrupts, >> the following code cost too much for ea

Re: [PATCH-for-6.1 v2] block/export/fuse.c: fix musl build

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 11:51 AM, Fabrice Fontaine wrote: > Fix the following build failure on musl raised since version 6.0.0 and > https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b > because musl does not define FALLOC_FL_ZERO_RANGE: > > ../block/export/fuse.c: In function

Re: [PATCH v3 01/10] virtiofsd: Limit setxattr()'s creds-dropped region

2021-08-09 Thread Max Reitz
On 06.08.21 16:16, Vivek Goyal wrote: On Fri, Jul 30, 2021 at 05:01:25PM +0200, Max Reitz wrote: We only need to drop/switch our credentials for the (f)setxattr() call alone, not for the openat() or fchdir() around it. (Right now, this may not be that big of a problem, but with inodes being ide

[PATCH] target/riscv: Add User CSRs read-only check

2021-08-09 Thread LIU Zhiwei
For U-mode CSRs, read-only check is also needed. Signed-off-by: LIU Zhiwei --- target/riscv/csr.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index 9a4ed18ac5..360e4bfa33 100644 --- a/target/riscv/csr.c +++ b/target/riscv/cs

Re: [PATCH] target/riscv: Add User CSRs read-only check

2021-08-09 Thread Bin Meng
On Mon, Aug 9, 2021 at 6:37 PM LIU Zhiwei wrote: > > For U-mode CSRs, read-only check is also needed. > > Signed-off-by: LIU Zhiwei > --- > target/riscv/csr.c | 8 +--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/target/riscv/csr.c b/target/riscv/csr.c > index 9a4ed18a

Re: [PULL 8/9] qapi: introduce forwarding visitor

2021-08-09 Thread Peter Maydell
On Sat, 24 Jul 2021 at 10:00, Paolo Bonzini wrote: > > This new adaptor visitor takes a single field of the adaptee, and exposes it > with a different name. > > This will be used for QOM alias properties. Alias targets can of course > have a different name than the alias property itself (e.g. a m

[PATCH] hw/nvme: fix missing variable initializers

2021-08-09 Thread Klaus Jensen
From: Klaus Jensen Coverity found that 'uuid', 'csi' and 'eui64' are uninitialized. While we set most of the fields, we do not explicitly set the rsvd2 field in the NvmeIdNsDescr header. Fix this by explicitly zero-initializing the variables. Reported-by: Coverity (CID 1458835, 1459295 and 1459

Re: [PULL 06/23] hw/nvme: namespace parameter for EUI-64

2021-08-09 Thread Klaus Jensen
On Aug 9 11:18, Peter Maydell wrote: > On Tue, 29 Jun 2021 at 19:48, Klaus Jensen wrote: > > > > From: Heinrich Schuchardt > > > > The EUI-64 field is the only identifier for NVMe namespaces in UEFI device > > paths. Add a new namespace property "eui64", that provides the user the > > option to

Re: [PATCH-for-6.1?] hw/nvme: fix missing variable initializers

2021-08-09 Thread Philippe Mathieu-Daudé
On 8/9/21 12:43 PM, Klaus Jensen wrote: > From: Klaus Jensen > > Coverity found that 'uuid', 'csi' and 'eui64' are uninitialized. While > we set most of the fields, we do not explicitly set the rsvd2 field in > the NvmeIdNsDescr header. > > Fix this by explicitly zero-initializing the variables.

Re: [PATCH v3 04/10] virtiofsd: Add lo_inode_fd() helper

2021-08-09 Thread Max Reitz
On 06.08.21 20:25, Vivek Goyal wrote: On Fri, Jul 30, 2021 at 05:01:28PM +0200, Max Reitz wrote: [..] @@ -1335,12 +1359,18 @@ static void lo_mknod_symlink(fuse_req_t req, fuse_ino_t parent, return; } +res = lo_inode_fd(dir, &dir_fd); +if (res < 0) { +saverr

Re: [PATCH v3 02/10] virtiofsd: Add TempFd structure

2021-08-09 Thread Max Reitz
On 06.08.21 16:41, Vivek Goyal wrote: On Fri, Jul 30, 2021 at 05:01:26PM +0200, Max Reitz wrote: We are planning to add file handles to lo_inode objects as an alternative to lo_inode.fd. That means that everywhere where we currently reference lo_inode.fd, we will have to open a temporary file d

Re: [RFC 3/4] gqa-win: get_pci_info: Add g_autofree for few variables

2021-08-09 Thread Philippe Mathieu-Daudé
Hi Kostiantyn, On 8/9/21 11:48 AM, Kostiantyn Kostiuk wrote: > Signed-off-by: Kostiantyn Kostiuk I'm not sure what you are trying to do here, fix a memory leak? > --- > qga/commands-win32.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/qga/commands-win32.c b/qga

[PATCH v4] vhost: make SET_VRING_ADDR, SET_FEATURES send replies

2021-08-09 Thread Denis Plotnikov
On vhost-user-blk migration, qemu normally sends a number of commands to enable logging if VHOST_USER_PROTOCOL_F_LOG_SHMFD is negotiated. Qemu sends VHOST_USER_SET_FEATURES to enable buffers logging and VHOST_USER_SET_VRING_ADDR per each started ring to enable "used ring" data logging. The issue is

Re: [PATCH v3] vhost: make SET_VRING_ADDR, SET_FEATURES send replies

2021-08-09 Thread Denis Plotnikov
On 09.08.2021 12:34, Michael S. Tsirkin wrote: Looks good. Some cosmetics: all comments addressed in already sent v4 On Mon, Aug 09, 2021 at 12:03:30PM +0300, Denis Plotnikov wrote: On vhost-user-blk migration, qemu normally sends a number of commands to enable logging if VHOST_USER_PROTOCO

Re: [PATCH-for-6.1?] hw/nvme: fix missing variable initializers

2021-08-09 Thread Klaus Jensen
On Aug 9 12:47, Philippe Mathieu-Daudé wrote: > On 8/9/21 12:43 PM, Klaus Jensen wrote: > > From: Klaus Jensen > > > > Coverity found that 'uuid', 'csi' and 'eui64' are uninitialized. While > > we set most of the fields, we do not explicitly set the rsvd2 field in > > the NvmeIdNsDescr header. >

Re: [RFC v3] virtio/vsock: add two more queues for datagram types

2021-08-09 Thread Stefano Garzarella
On Thu, Aug 05, 2021 at 12:00:05PM -0700, Jiang Wang . wrote: On Tue, Aug 3, 2021 at 11:49 PM Stefano Garzarella wrote: On Wed, Aug 4, 2021 at 8:41 AM Stefano Garzarella wrote: > > On Tue, Aug 03, 2021 at 11:58:27AM -0700, Jiang Wang . wrote: > >On Wed, Jul 7, 2021 at 10:27 AM Stefano Garzare

[PULL for-6.1 0/1] hw/nvme fixes

2021-08-09 Thread Klaus Jensen
From: Klaus Jensen Hi Peter, The following changes since commit dee64246ded3aa7dbada68b96ce1c64e5bea327d: Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-6.1-pull-request' into staging (2021-08-06 10:28:33 +0100) are available in the Git repository at: git://git.infrad

[PULL for-6.1 1/1] hw/nvme: fix missing variable initializers

2021-08-09 Thread Klaus Jensen
From: Klaus Jensen Coverity found that 'uuid', 'csi' and 'eui64' are uninitialized. While we set most of the fields, we do not explicitly set the rsvd2 field in the NvmeIdNsDescr header. Fix this by explicitly zero-initializing the variables. Reported-by: Coverity (CID 1458835, 1459295 and 1459

Re: [PATCH for-6.2 1/6] acpi: Delete broken ACPI_GED_X86 macro

2021-08-09 Thread Gerd Hoffmann
On Thu, Aug 05, 2021 at 03:34:26PM -0400, Eduardo Habkost wrote: > The macro never worked and never will, because the > AcpiGedX86State type never existed. > > Signed-off-by: Eduardo Habkost > -#define ACPI_GED_X86(obj) \ > -OBJECT_CHECK(AcpiGedX86State, (obj), TYPE_ACPI_GED_X86) Oops. Lef

Re: [PATCH v4] virtio/vsock: add two more queues for datagram types

2021-08-09 Thread Stefano Garzarella
On Thu, Aug 05, 2021 at 12:07:02PM -0700, Jiang Wang . wrote: On Wed, Aug 4, 2021 at 1:13 AM Stefano Garzarella wrote: On Tue, Aug 03, 2021 at 11:41:32PM +, Jiang Wang wrote: >Datagram sockets are connectionless and unreliable. >The sender does not know the capacity of the receiver >and ma

Re: [PATCH-for-6.1 v2] block/export/fuse.c: fix musl build

2021-08-09 Thread Denis V. Lunev
On 8/9/21 1:27 PM, Philippe Mathieu-Daudé wrote: > On 8/9/21 11:51 AM, Fabrice Fontaine wrote: >> Fix the following build failure on musl raised since version 6.0.0 and >> https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b >> because musl does not define FALLOC_F

Re: [PULL 06/35] Hexagon (disas) disassembler

2021-08-09 Thread Peter Maydell
On Wed, 17 Feb 2021 at 23:40, Richard Henderson wrote: > > From: Taylor Simpson > > Add hexagon to disas/meson.build > Add disas/hexagon.c > Add hexagon to include/disas/dis-asm.h > > Signed-off-by: Taylor Simpson > Tested-by: Philippe Mathieu-Daudé > Reviewed-by: Philippe Mathieu-Daudé > Mess

Re: [PATCH v2 0/2] s390x: improve subchannel error handling (vfio)

2021-08-09 Thread Cornelia Huck
On Wed, Aug 04 2021, Matthew Rosato wrote: > On 8/4/21 8:30 PM, Jared Rossi wrote: >> I've exercised the error paths and it appears to all work correctly. >> >> On 7/19/21 11:09 AM, Jared Rossi wrote: >>> I will take a look and see if I can exercise the error paths. >>> >>> Regards, >>> >>> Jare

[PATCH] fuzz: avoid building twice, when running on gitlab

2021-08-09 Thread Alexander Bulekov
On oss-fuzz, we build twice, to put together a build that is portable to the runner containers. On gitlab ci, this is wasteful and contributes to timeouts on the build-oss-fuzz job. Avoid building twice on gitlab, at the remote cost of potentially missing some cases that break oss-fuzz builds. Sig

Re: [PULL v1 3/5] qga: convert to use error checked base64 decode

2021-08-09 Thread Peter Maydell
On Fri, 18 Dec 2015 at 16:53, Daniel P. Berrange wrote: > > Switch from using g_base64_decode over to qbase64_decode > in order to get error checking of the base64 input data. > > Reviewed-by: Eric Blake > Signed-off-by: Daniel P. Berrange > --- > qga/commands-posix.c | 11 +-- > qga/co

[PATCH] qga: fix leak of base64 decoded data on command error

2021-08-09 Thread Daniel P . Berrangé
If the guest command fails to be spawned, then we would leak the decoded base64 input used for the command's stdin feed. Signed-off-by: Daniel P. Berrangé --- qga/commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qga/commands.c b/qga/commands.c index a6491d2cf8..

  1   2   3   >