[PATCH v3 1/2] aspeed/hace: Support AST2600 HACE

2022-03-24 Thread Steven Lee
The aspeed ast2600 acculumative mode is described in datasheet ast2600v10.pdf section 25.6.4: 1. Allocationg and initiating accumulative hash digest write buffer with initial state. * Since QEMU crypto/hash api doesn't provide the API to set initial state of hash library, and the

[PATCH v3 0/2] Supporting AST2600 HACE engine accumulative mode

2022-03-24 Thread Steven Lee
This patch series implements ast2600 hace engine with accumulative mode and unit test against to it. Verified with following models - AST2600 with OpenBmc VERSION_ID=2.12.0-dev-660-g4c7b3e692-dirty - check hash verification in uboot and check whether qemu crashed during openbmc web gui

[PATCH v3 2/2] tests/qtest: Add test for Aspeed HACE accumulative mode

2022-03-24 Thread Steven Lee
This add two addition test cases for accumulative mode under sg enabled. The input vector was manually craft with "abc" + bit 1 + padding zeros + L. The padding length depends on algorithm, i.e. SHA512 (1024 bit), SHA256 (512 bit). The result was calculated by command line sha512sum/sha256sum

Re: [PATCH RESEND v1 0/2] i386: Make PIT and PIC the property of common x86 base machine type

2022-03-24 Thread Xiaoyao Li
On 3/10/2022 9:07 PM, Michael S. Tsirkin wrote: On Thu, Mar 10, 2022 at 08:28:09PM +0800, Xiaoyao Li wrote: For PIT, it's straightforward to merge microvm::pit and pc_machine::pit_enabled into x86ms::pit For PIC, move microvm::pic to x86ms:pic, which gives PC machine the ability to

Re: [PATCH v4 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-03-24 Thread Zongyuan Li
> > > diff --git a/include/hw/core/split-irq.h b/include/hw/core/split-irq.h > > index ff8852f407..eb485dd7a6 100644 > > --- a/include/hw/core/split-irq.h > > +++ b/include/hw/core/split-irq.h > > @@ -42,9 +42,6 @@ > > > > #define MAX_SPLIT_LINES 16 > > > > - > >

Re: [EXTERNAL] Plugins Not Reporting AArch64 SVE Memory Operations

2022-03-24 Thread Robert Henry
I have not done anything on this front, alas. From: Aaron Lindsay Sent: Thursday, March 24, 2022 1:17 PM To: qemu-devel@nongnu.org ; qemu-...@nongnu.org Cc: Alex Bennée ; richard.hender...@linaro.org ; Robert Henry Subject: [EXTERNAL] Plugins Not Reporting

Re: [PATCH v1 7/9] aspeed/soc : Add AST1030 support

2022-03-24 Thread Jamin Lin
The 03/24/2022 17:37, Cédric Le Goater wrote: > On 3/22/22 03:51, Jamin Lin wrote: > > From: Steven Lee > > > > The embeded core of AST1030 SoC is ARM Coretex M4. > > embedded > Will fixed > > It is hard to be integrated in the common Aspeed Soc framework. > > Can you explain the difficulties

Re: [PATCH v2 15/17] iotests: remove qemu_io_pipe_and_status()

2022-03-24 Thread Eric Blake
On Thu, Mar 24, 2022 at 02:30:16PM -0400, John Snow wrote: > I know we just added it, sorry. This is done in favor of qemu_io() which > *also* returns the console output and status, but with more robust error > handling on failure. > > Signed-off-by: John Snow > --- >

Re: [PATCH v2 14/17] iotests/image-fleecing: switch to qemu_io()

2022-03-24 Thread Eric Blake
On Thu, Mar 24, 2022 at 02:30:15PM -0400, John Snow wrote: > This test expects failure ... but only sometimes. When? Why? > > It's for reads of a region not defined by a bitmap. Adjust the test to > be more explicit about what it expects to fail and why. > > Signed-off-by: John Snow > --- >

Re: [PATCH v2 13/17] iotests/migration-permissions: use assertRaises() for qemu_io() negative test

2022-03-24 Thread Eric Blake
On Thu, Mar 24, 2022 at 02:30:14PM -0400, John Snow wrote: > Modify this test to use assertRaises for its negative testing of > qemu_io. If the exception raised does not match the one we tell it to > expect, we get *that* exception unhandled. If we get no exception, we > get a unittest assertion

Re: [RFC PATCH v3 12/36] i386/tdx: Add property sept-ve-disable for tdx-guest object

2022-03-24 Thread Isaku Yamahata
On Thu, Mar 24, 2022 at 10:37:25AM +0100, Gerd Hoffmann wrote: > > #VE can be triggered in various situations. e.g., CPUID on some leaves, and > > RD/WRMSR on some MSRs. #VE on pending page is just one of the sources, Linux > > just wants to disable this kind of #VE since it wants to prevent

Re: [PATCH v2 05/17] iotests/040: Fix TestCommitWithFilters test

2022-03-24 Thread Eric Blake
On Thu, Mar 24, 2022 at 02:30:06PM -0400, John Snow wrote: > Without this change, asserting that qemu_io always returns 0 causes this > test to fail in a way we happened not to be catching previously: > > qemu.utils.VerboseProcessError: Command >

Re: [PATCH] spec: Add NBD_OPT_EXTENDED_HEADERS

2022-03-24 Thread Eric Blake
[Updating Vladimir's new preferred address in cc list] On Thu, Mar 24, 2022 at 07:31:48PM +0200, Wouter Verhelst wrote: > Hi Eric, > > Thanks for the ping; it had slipped my mind. > > On Fri, Dec 03, 2021 at 05:14:34PM -0600, Eric Blake wrote: > > Request message > > > > -The request

Re: Device driver api

2022-03-24 Thread Sam Price
Thanks for all the insight. My use case is for embedded programs interfacing with custom fpga registers, and getting code coverage for these. My device wouldn't have value for the community. I'll play around with dlopen, and prototype some stuff on a fork. Sam On Thu, Mar 24, 2022 at 4:51 PM

Re: [PATCH 00/14] Fix some qapi examples and a TODO section

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > Hi, > > I've being using the examples as unit tests and found a few that > doesn't work out-of-the-box, might be inteded in order to be less > verbose in the qapi documentation but nevertheless I'm sending this > out in case you want to

Re: [PATCH 14/14] qapi: fix example of dump-guest-memory

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > The member "paging" is not optional > > Signed-off-by: Victor Toso > --- > qapi/dump.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qapi/dump.json b/qapi/dump.json > index d3ed79e8cd..0873f16e5c 100644 > ---

Re: [PATCH 13/14] qapi: fix example of ACPI_DEVICE_OST event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > * Missing the timestamp > * Missing the "info" object in the "data" member > > Signed-off-by: Victor Toso > --- > qapi/acpi.json | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/qapi/acpi.json b/qapi/acpi.json >

Re: [PATCH 11/14] qapi: fix example of MEMORY_FAILURE

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > Minor issues found and fixed with the example: > * The JSON object of EVENT was not closed > * Missing timestamp > * Flags are optional but if defined then all members should be > include so we add "recursive" member. Oh, yeah. Good call.

Re: Device driver api

2022-03-24 Thread Peter Maydell
On Thu, 24 Mar 2022 at 20:53, Alex Bennée wrote: > The upstream community isn't really motivated to maintain an API for > external device models because ultimately we believe they are best > placed in the QEMU code, if not upstream in a fork. There are some forks > of QEMU which support things

Re: [PATCH 12/14] qapi: ui examples: add missing websocket member

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > As the websocket is not optional in VncBasicInfo. > > Signed-off-by: Victor Toso > --- > qapi/ui.json | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/qapi/ui.json b/qapi/ui.json > index

Re: [PATCH 10/14] qapi: run-state examples: add missing timestamp

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > Signed-off-by: Victor Toso > --- > qapi/run-state.json | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/qapi/run-state.json b/qapi/run-state.json > index 1b9f64c9cd..f87b9378ac 100644 > ---

Re: [PATCH 09/14] qapi: run-state examples: add missing member

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > As reason member in not optional. Suggest: "The 'reason' member is not optional." I also like how you included the type/structure name in the other commit messages, can you work "SHUTDOWN" into this one? > > Signed-off-by: Victor Toso >

Re: [RFC PATCH 4/6] tests/tcg: add support for ppc64le softmmu tests

2022-03-24 Thread Leandro Lupori
On 24/03/2022 17:34, Alex Bennée wrote: Leandro Lupori writes: Adding a new, "virtual" TCG test target, ppc64le-softmmu, seems to be the cleanest way to support both BE and LE tests for ppc64-softmmu. Signed-off-by: Leandro Lupori --- tests/Makefile.include| 7 ---

Re: [PATCH 08/14] qapi: fix example of FAILOVER_NEGOTIATED event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > * Data is an object, not a string. It generates a qdict. > * Timestamp is not optional, let's add for completeness. > > Signed-off-by: Victor Toso > --- > qapi/net.json | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff

Re: [PATCH 07/14] qapi: fix example of UNPLUG_PRIMARY event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > * Timestamp is not optional, let's add for completeness. > * Add '<-' to signalize it is receiving the data > * Break likes like most of examples do Oh, I think you meant "break lines like". That took a long minute to parse. > >

Re: [PATCH 06/14] qapi: fix example of MEMORY_DEVICE_SIZE_CHANGE event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > * qom-path is not optional > > Signed-off-by: Victor Toso > --- > qapi/machine.json | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/qapi/machine.json b/qapi/machine.json > index 42fc68403d..9c460ec450 100644 > ---

Re: [PATCH 05/14] qapi: fix example of DUMP_COMPLETED event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > * Timestamp is not optional, let's add for completeness. > * Add '<-' to signalize it is receiving the data > * While at it, add extra space before "result" and "total" > > Signed-off-by: Victor Toso > --- > qapi/dump.json | 7 --- > 1

Re: Device driver api

2022-03-24 Thread Alex Bennée
Sam Price writes: > Is there a shared library interface in the works for writing firmware > device models without recompiling all of qemu? No - but incremental builds should be fairly cheap especially if you only build the target you care about, possibly with a reduced config. > I was

Re: [PATCH 04/14] qapi: fix example of BLOCK_JOB_PENDING event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022, 1:50 PM Victor Toso wrote: > * Event's name: BLOCK_JOB_WAITING -> BLOCK_JOB_PENDING > * Argument device -> id > > Signed-off-by: Victor Toso > --- > qapi/block-core.json | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/qapi/block-core.json

Re: [PATCH 03/14] qapi: fix example of BLOCK_IO_ERROR event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > Reason is not optional. > > Signed-off-by: Victor Toso > --- > qapi/block-core.json | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index 585a9e020e..5b6c069dd9 100644

Re: [PATCH 02/14] qapi: fix example of BLOCK_IMAGE_CORRUPTED event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 3:15 PM John Snow wrote: > > > > On Thu, Mar 24, 2022, 1:50 PM Victor Toso wrote: >> >> Fatal is not optional. >> >> Signed-off-by: Victor Toso >> --- >> qapi/block-core.json | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git

Re: [RFC PATCH 4/6] tests/tcg: add support for ppc64le softmmu tests

2022-03-24 Thread Alex Bennée
Leandro Lupori writes: > Adding a new, "virtual" TCG test target, ppc64le-softmmu, seems to > be the cleanest way to support both BE and LE tests for > ppc64-softmmu. > > Signed-off-by: Leandro Lupori > --- > tests/Makefile.include| 7 --- > tests/tcg/configure.sh

Re: [PATCH 01/14] qapi: BlockExportRemoveMode: move comments to TODO

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 1:50 PM Victor Toso wrote: > > @hide and @soft are potential additions which fits the TODO section > perfectly. > > The main motivation is to avoid this whole block of comment entering > the wrong section in the python parser. > > Signed-off-by: Victor Toso > --- >

Plugins Not Reporting AArch64 SVE Memory Operations

2022-03-24 Thread Aaron Lindsay
Hi folks, I see there has been some previous discussion [1] about 1.5 years ago around the fact that AArch64 SVE instructions do not emit any memory operations via the plugin interface, as one might expect them to. I am interested in being able to more accurately trace the memory operations of

Re: [PULL 00/10] Linux user for 7.0 patches

2022-03-24 Thread Peter Maydell
host atomics (2022-03-23 > 16:53:17 +0100) > > > linux-user pull request 20220324 > > Fix MIPS n32 > Fix ppoll, epoll_wait, pselect > Fix error message in elfload.c > Implement ARM __kernel_memory_barrier/__kernel_cmpxchg/__kernel_cmpxchg64 >

Re: [PATCH 02/14] qapi: fix example of BLOCK_IMAGE_CORRUPTED event

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022, 1:50 PM Victor Toso wrote: > Fatal is not optional. > > Signed-off-by: Victor Toso > --- > qapi/block-core.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index e89f2dfb5b..585a9e020e 100644 > ---

[RFC PATCH 6/6] tests/tcg/ppc64: add rules to build PowerNV tests

2022-03-24 Thread Leandro Lupori
Each Microwatt/PowerNV test use its own head.S file and thus needs different build rules. Signed-off-by: Leandro Lupori --- tests/tcg/ppc64/Makefile.softmmu-target | 33 +++-- tests/tcg/ppc64/system/mmu-head.S | 1 + 2 files changed, 27 insertions(+), 7 deletions(-)

[RFC PATCH 4/6] tests/tcg: add support for ppc64le softmmu tests

2022-03-24 Thread Leandro Lupori
Adding a new, "virtual" TCG test target, ppc64le-softmmu, seems to be the cleanest way to support both BE and LE tests for ppc64-softmmu. Signed-off-by: Leandro Lupori --- tests/Makefile.include| 7 --- tests/tcg/configure.sh| 11 ++-

[RFC PATCH 5/6] tests/tcg/ppc64: add MMU test sources

2022-03-24 Thread Leandro Lupori
Add MMU test sources, from https://github.com/legoater/pnv-test, based on Microwatt tests but with some adaptations. In particular, the tests that check updates to RC bits were removed, because, apparently, Microwatt never updates RC bits, but just raise an exception when they must be updated,

[RFC PATCH 2/6] ppc/pnv: Activate support for the Processor Attention instruction

2022-03-24 Thread Leandro Lupori
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Signed-off-by: Leandro Lupori --- hw/ppc/pnv_core.c | 6 ++ include/hw/ppc/pnv_core.h | 1 + 2 files changed, 7 insertions(+) diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c index 19e8eb885f..eb59b44a6c 100644 ---

[RFC PATCH 0/6] Port PPC64/PowerNV MMU tests to QEMU

2022-03-24 Thread Leandro Lupori
Add support to run softmmu tests for ppc64 and ppc64le. To make it possible, a new "virtual" TCG test target, ppc64le-softmmu, was created. Also add the MMU tests from https://github.com/legoater/pnv-test, that are the Microwatt tests adapted to use a PowerNV console and to better integrate with

[RFC PATCH 3/6] tests/tcg/ppc64: add basic softmmu test support

2022-03-24 Thread Leandro Lupori
Add support to build and run the multiarch hello test, that simply prints a message and exits. The linker script, console code and related header files were imported from https://github.com/legoater/pnv-test, that are the Microwatt tests adapted to use a PowerNV console. Some other changes were

[PATCH qemu v4 12/14] target/riscv: rvv: Add tail agnostic for vector reduction instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 16 1 file changed, 16 insertions(+) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index d654377fc8..3d19b9d141 100644 ---

[PATCH qemu v4 11/14] target/riscv: rvv: Add tail agnostic for vector floating-point instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 11 + target/riscv/vector_helper.c| 452 ++-- 2 files changed, 267 insertions(+), 196 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[RFC PATCH 1/6] target/ppc: Add support for the Processor Attention instruction

2022-03-24 Thread Leandro Lupori
From: Cédric Le Goater Check the HID0 bit to send signal, currently modeled as a checkstop. The QEMU implementation adds an exit using the GPR[3] value (that's a hack for tests) Signed-off-by: Cédric Le Goater Signed-off-by: Leandro Lupori --- target/ppc/cpu.h | 8

[PATCH qemu v4 09/14] target/riscv: rvv: Add tail agnostic for vector integer merge and move instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 40 + target/riscv/vector_helper.c| 28 + 2 files changed, 68 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu v4 14/14] target/riscv: rvv: Add tail agnostic for vector permutation instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 20 target/riscv/vector_helper.c| 68 ++--- 2 files changed, 82 insertions(+), 6 deletions(-) diff --git

[PATCH qemu v4 13/14] target/riscv: rvv: Add tail agnostic for vector mask instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 4 target/riscv/vector_helper.c| 32 + 2 files changed, 36 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu v4 10/14] target/riscv: rvv: Add tail agnostic for vector fix-point arithmetic instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 220 ++- 1 file changed, 114 insertions(+), 106 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 89927a424f..067095e19a

[PATCH qemu v4 07/14] target/riscv: rvv: Add tail agnostic for vector integer shift instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 10 ++ target/riscv/vector_helper.c| 14 ++ 2 files changed, 24 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu v4 05/14] target/riscv: rvv: Add tail agnostic for vector load / store instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 9 +++ target/riscv/vector_helper.c| 32 + 2 files changed, 41 insertions(+) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu v4 06/14] target/riscv: rvv: Add tail agnostic for vx, vvm, vxm instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/insn_trans/trans_rvv.c.inc | 23 ++ target/riscv/vector_helper.c| 312 +--- 2 files changed, 197 insertions(+), 138 deletions(-) diff --git a/target/riscv/insn_trans/trans_rvv.c.inc

[PATCH qemu v4 08/14] target/riscv: rvv: Add tail agnostic for vector integer comparison instructions

2022-03-24 Thread ~eopxd
From: eopXD Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index 9dedd1e29d..a972946bc2 100644 ---

[PATCH qemu v4 03/14] target/riscv: rvv: Early exit when vstart >= vl

2022-03-24 Thread ~eopxd
From: eopXD According to v-spec (section 5.4): When vstart ≥ vl, there are no body elements, and no elements are updated in any destination vector register group, including that no tail elements are updated with agnostic values. vmsbf.m, vmsif.m, vmsof.m, viota.m, vcompress instructions

[PATCH qemu v4 04/14] target/riscv: rvv: Add tail agnostic for vv instructions

2022-03-24 Thread ~eopxd
From: eopXD This is the first commit regarding the tail agnostic behavior. Added option 'rvv_ta_all_1s' to enable the behavior, the option is default to false. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/cpu.c | 1 + target/riscv/cpu.h

[PATCH qemu v4 00/14] Add tail agnostic behavior for rvv instructions

2022-03-24 Thread ~eopxd
According to v-spec, tail agnostic behavior can be either kept as undisturbed or set elements' bits to all 1s. To distinguish the difference of tail policies, QEMU should be able to simulate the tail agnostic behavior as "set tail elements' bits to all 1s". An option 'rvv_ta_all_1s' is added to

[PATCH qemu v4 02/14] target/riscv: rvv: Rename ambiguous esz

2022-03-24 Thread ~eopxd
From: eopXD No functional change intended in this commit. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 76 ++-- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/target/riscv/vector_helper.c

[PATCH qemu v4 01/14] target/riscv: rvv: Prune redundant ESZ, DSZ parameter passed

2022-03-24 Thread ~eopxd
From: eopXD No functional change intended in this commit. Signed-off-by: eop Chen Reviewed-by: Frank Chang --- target/riscv/vector_helper.c | 1132 +- 1 file changed, 565 insertions(+), 567 deletions(-) diff --git a/target/riscv/vector_helper.c

Re: [PATCH v2] block/stream: Drain subtree around graph change

2022-03-24 Thread John Snow
On Thu, Mar 24, 2022 at 10:09 AM Hanna Reitz wrote: > > When the stream block job cuts out the nodes between top and base in > stream_prepare(), it does not drain the subtree manually; it fetches the > base node, and tries to insert it as the top node's backing node with > bdrv_set_backing_hd().

Re: [PATCH v4 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-03-24 Thread Peter Maydell
On Thu, 24 Mar 2022 at 17:18, Zongyuan Li wrote: > > Signed-off-by: Zongyuan Li > --- > hw/arm/exynos4210.c | 26 > hw/intc/exynos4210_combiner.c | 79 +++ > hw/intc/exynos4210_gic.c | 36 > include/hw/arm/exynos4210.h

[PATCH v2 16/17] iotests: remove qemu_io_silent() and qemu_io_silent_check().

2022-03-24 Thread John Snow
Like qemu-img, qemu-io returning 0 should be the norm and not the exception. Remove all calls to qemu_io_silent that just assert the return code is zero (That's every last call, as it turns out), and replace them with a normal qemu_io() call. qemu_io_silent_check() appeared to have been unused

[PATCH v2 15/17] iotests: remove qemu_io_pipe_and_status()

2022-03-24 Thread John Snow
I know we just added it, sorry. This is done in favor of qemu_io() which *also* returns the console output and status, but with more robust error handling on failure. Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH v2 10/17] iotests/205: fixup

2022-03-24 Thread John Snow
(Merge into prior patch.) Signed-off-by: John Snow --- tests/qemu-iotests/205 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205 index c0e107328f..15f798288a 100755 --- a/tests/qemu-iotests/205 +++ b/tests/qemu-iotests/205 @@

[PATCH v2 12/17] iotests/migration-permissions: fixup

2022-03-24 Thread John Snow
(Merge into prior commit) Signed-off-by: John Snow --- tests/qemu-iotests/tests/migration-permissions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/tests/migration-permissions b/tests/qemu-iotests/tests/migration-permissions index

[PATCH v2 11/17] iotests/245: fixup

2022-03-24 Thread John Snow
Merge with prior. This is a little more involved, now, but maybe it's a small price to pay for the better debug information being deployed universally. Signed-off-by: John Snow --- tests/qemu-iotests/245 | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[PATCH v2 17/17] iotests: make qemu_io_log() check return codes by default

2022-03-24 Thread John Snow
Just like qemu_img_log(), upgrade qemu_io_log() to enforce a return code of zero by default. Tests that use qemu_io_log(): 242 245 255 274 303 307 nbd-reconnect-on-open Signed-off-by: John Snow Reviewed-by: Eric Blake Reviewed-by: Hanna Reitz --- tests/qemu-iotests/iotests.py

[PATCH v2 06/17] iotests: create generic qemu_tool() function

2022-03-24 Thread John Snow
reimplement qemu_img() in terms of qemu_tool() in preparation for doing the same with qemu_io(). Signed-off-by: John Snow Reviewed-by: Eric Blake Reviewed-by: Hanna Reitz --- tests/qemu-iotests/iotests.py | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-)

[PATCH v2 04/17] iotests/040: Don't check image pattern on zero-length image

2022-03-24 Thread John Snow
qemu-io fails on read/write beyond end-of-file on raw images, so skip these invocations when running the zero-length image tests. Signed-off-by: John Snow Reviewed-by: Eric Blake Reviewed-by: Hanna Reitz --- tests/qemu-iotests/040 | 14 -- 1 file changed, 12 insertions(+), 2

[PATCH v2 00/17] iotests: add enhanced debugging info to qemu-io failures

2022-03-24 Thread John Snow
GitLab: https://gitlab.com/jsnow/qemu/-/commits/iotests_qemu_io_diagnostics CI: https://gitlab.com/jsnow/qemu/-/pipelines/499624472 Howdy, This series does for qemu_io() what we've done for qemu_img() and makes it a function that checks the return code by default and raises an Exception when

[PATCH v2 13/17] iotests/migration-permissions: use assertRaises() for qemu_io() negative test

2022-03-24 Thread John Snow
Modify this test to use assertRaises for its negative testing of qemu_io. If the exception raised does not match the one we tell it to expect, we get *that* exception unhandled. If we get no exception, we get a unittest assertion failure and the provided emsg printed to screen. If we get the

[PATCH v2 14/17] iotests/image-fleecing: switch to qemu_io()

2022-03-24 Thread John Snow
This test expects failure ... but only sometimes. When? Why? It's for reads of a region not defined by a bitmap. Adjust the test to be more explicit about what it expects to fail and why. Signed-off-by: John Snow --- tests/qemu-iotests/tests/image-fleecing | 28 + 1

[PATCH v2 03/17] iotests: Don't check qemu_io() output for specific error strings

2022-03-24 Thread John Snow
A forthcoming commit updates qemu_io() to raise an exception on non-zero return by default, and changes its return type. In preparation, simplify some calls to qemu_io() that assert that specific error message strings do not appear in qemu-io's output. Asserting that all of these calls return a

[PATCH v2 01/17] iotests: replace calls to log(qemu_io(...)) with qemu_io_log()

2022-03-24 Thread John Snow
This makes these callsites a little simpler, but the real motivation is a forthcoming commit will change the return type of qemu_io(), so removing users of the return value now is helpful. Signed-off-by: John Snow Reviewed-by: Eric Blake --- tests/qemu-iotests/242 | 6 +++---

[PATCH v2 09/17] iotests/149: fixup

2022-03-24 Thread John Snow
(Merge into prior patch.) Signed-off-by: John Snow --- tests/qemu-iotests/149 | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/149 b/tests/qemu-iotests/149 index 9bb96d6a1d..2ae318f16f 100755 --- a/tests/qemu-iotests/149 +++ b/tests/qemu-iotests/149

[PATCH v2 07/17] iotests: rebase qemu_io() on top of qemu_tool()

2022-03-24 Thread John Snow
Rework qemu_io() to be analogous to qemu_img(); a function that requires a return code of zero by default unless disabled explicitly. Tests that use qemu_io(): 030 040 041 044 055 056 093 124 129 132 136 148 149 151 152 163 165 205 209 219 236 245 248 254 255 257 260 264 280 298 300 302 304

[PATCH v2 02/17] iotests/163: Fix broken qemu-io invocation

2022-03-24 Thread John Snow
The 'read' commands to qemu-io were malformed, and this invocation only worked by coincidence because the error messages were identical. Oops. There's no point in checking the patterning of the reference image, so just check the empty image by itself instead. (Note: as of this commit, nothing

[PATCH v2 05/17] iotests/040: Fix TestCommitWithFilters test

2022-03-24 Thread John Snow
Without this change, asserting that qemu_io always returns 0 causes this test to fail in a way we happened not to be catching previously: qemu.utils.VerboseProcessError: Command '('/home/jsnow/src/qemu/bin/git/tests/qemu-iotests/../../qemu-io', '--cache', 'writeback', '--aio', 'threads',

[PATCH v2 08/17] iotests/030: fixup

2022-03-24 Thread John Snow
(Merge into prior patch.) Signed-off-by: John Snow --- tests/qemu-iotests/030 | 85 -- 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index 567bf1da67..3a2de920a3 100755 ---

[PATCH v5 2/4] hw/arm/stellaris: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/stellaris.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index b6c8a5d609..12c673c917 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -9,6 +9,7 @@ #include

[PATCH v5 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/exynos4210.c | 26 +++ hw/intc/exynos4210_combiner.c | 81 +++ hw/intc/exynos4210_gic.c | 36 +--- include/hw/arm/exynos4210.h | 11 ++--- include/hw/core/split-irq.h | 5 +-- 5 files

[PATCH v5 4/4] hw/core/irq: remove unused 'qemu_irq_split' function

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li Reviewed-by: Peter Maydell Resolves: https://gitlab.com/qemu-project/qemu/-/issues/811 --- hw/core/irq.c| 15 --- include/hw/irq.h | 5 - 2 files changed, 20 deletions(-) diff --git a/hw/core/irq.c b/hw/core/irq.c index 741219277b..3623f711fe

Re: [PATCH 0/5] ppc/pnv: Introduce GPIO lines to drive the PSIHB device

2022-03-24 Thread Daniel Henrique Barboza
On 3/23/22 04:28, Cédric Le Goater wrote: Hello, The PSIHB OCC and LPC interrupts are driven by a complex framework using Object links and class handlers. Simplify the whole with GPIO lines. Series LGTM. All patches: Reviewed-by: Daniel Henrique Barboza Daniel Thanks, C.

[PATCH v5 0/4] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
This patch set tries to replace 'qemu_irq_split' function with QOM object 'TYPE_SPLIT_IRQ' and totally remove this call. If this patch set is applied, issue: https://gitlab.com/qemu-project/qemu/-/issues/811 can be closed. Changes since v3: 1. Squash Patch 3 & 4 into one, since they would

[PATCH v5 1/4] hw/arm/realview: replace 'qemu_split_irq' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
Signed-off-by: Zongyuan Li --- hw/arm/realview.c | 33 - 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/hw/arm/realview.c b/hw/arm/realview.c index 7b424e94a5..d2dc8a8952 100644 --- a/hw/arm/realview.c +++ b/hw/arm/realview.c @@ -13,9 +13,11 @@

[PATCH] iotests: Fix status checks

2022-03-24 Thread Hanna Reitz
An iotest's 'paused' condition is fickle; it will be reported as true whenever the job is drained, for example, or when it is in the process of completing. 030 and 041 contain such checks, we should replace them by checking the job status instead. (As was done for 129 in commit

Re: [PATCH 5/5] ppc/pnv: Remove usless checks in set_irq handlers

2022-03-24 Thread Daniel Henrique Barboza
Typo in the commit title: s/usless/useless On 3/23/22 04:28, Cédric Le Goater wrote: Signed-off-by: Cédric Le Goater --- hw/ppc/pnv_psi.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c index 950ecca40573..98045ed3d249 100644 ---

Re: [PATCH v4 0/4] Replace 'qemu_irq_split' with 'TYPE_SPLIT_IRQ'

2022-03-24 Thread Zongyuan Li
This version seems to have some code style errors. I will fix that soon. Sorry for the bother. Li On Fri, Mar 25, 2022 at 1:18 AM Zongyuan Li wrote: > > This patch set tries to replace 'qemu_irq_split' function with QOM > object 'TYPE_SPLIT_IRQ' and totally remove this call. > > If this patch

[PATCH 10/14] qapi: run-state examples: add missing timestamp

2022-03-24 Thread Victor Toso
Signed-off-by: Victor Toso --- qapi/run-state.json | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qapi/run-state.json b/qapi/run-state.json index 1b9f64c9cd..f87b9378ac 100644 --- a/qapi/run-state.json +++ b/qapi/run-state.json @@ -426,7 +426,8 @@ # Example: # # <-

[PATCH 11/14] qapi: fix example of MEMORY_FAILURE

2022-03-24 Thread Victor Toso
Minor issues found and fixed with the example: * The JSON object of EVENT was not closed * Missing timestamp * Flags are optional but if defined then all members should be include so we add "recursive" member. * Changed string from '' to "" in action-required member. Signed-off-by: Victor Toso

[PATCH 02/14] qapi: fix example of BLOCK_IMAGE_CORRUPTED event

2022-03-24 Thread Victor Toso
Fatal is not optional. Signed-off-by: Victor Toso --- qapi/block-core.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index e89f2dfb5b..585a9e020e 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -5008,7 +5008,7

[PATCH 08/14] qapi: fix example of FAILOVER_NEGOTIATED event

2022-03-24 Thread Victor Toso
* Data is an object, not a string. It generates a qdict. * Timestamp is not optional, let's add for completeness. Signed-off-by: Victor Toso --- qapi/net.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi/net.json b/qapi/net.json index 7fab2e7cd8..82c0d9e778 100644

[PATCH 06/14] qapi: fix example of MEMORY_DEVICE_SIZE_CHANGE event

2022-03-24 Thread Victor Toso
* qom-path is not optional Signed-off-by: Victor Toso --- qapi/machine.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi/machine.json b/qapi/machine.json index 42fc68403d..9c460ec450 100644 --- a/qapi/machine.json +++ b/qapi/machine.json @@ -1356,7 +1356,8 @@ #

[PATCH 00/14] Fix some qapi examples and a TODO section

2022-03-24 Thread Victor Toso
Hi, I've being using the examples as unit tests and found a few that doesn't work out-of-the-box, might be inteded in order to be less verbose in the qapi documentation but nevertheless I'm sending this out in case you want to cherry-pick them. Cheers, Victor Toso (14): qapi:

[PATCH 12/14] qapi: ui examples: add missing websocket member

2022-03-24 Thread Victor Toso
As the websocket is not optional in VncBasicInfo. Signed-off-by: Victor Toso --- qapi/ui.json | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qapi/ui.json b/qapi/ui.json index 664da9e462..a810ed680c 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -710,10 +710,10

[PATCH 13/14] qapi: fix example of ACPI_DEVICE_OST event

2022-03-24 Thread Victor Toso
* Missing the timestamp * Missing the "info" object in the "data" member Signed-off-by: Victor Toso --- qapi/acpi.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qapi/acpi.json b/qapi/acpi.json index 51f0d55db7..d148f6db9f 100644 --- a/qapi/acpi.json +++

[PATCH 03/14] qapi: fix example of BLOCK_IO_ERROR event

2022-03-24 Thread Victor Toso
Reason is not optional. Signed-off-by: Victor Toso --- qapi/block-core.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index 585a9e020e..5b6c069dd9 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -5059,7

[PATCH 14/14] qapi: fix example of dump-guest-memory

2022-03-24 Thread Victor Toso
The member "paging" is not optional Signed-off-by: Victor Toso --- qapi/dump.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/dump.json b/qapi/dump.json index d3ed79e8cd..0873f16e5c 100644 --- a/qapi/dump.json +++ b/qapi/dump.json @@ -83,7 +83,7 @@ # Example: # #

[PATCH 09/14] qapi: run-state examples: add missing member

2022-03-24 Thread Victor Toso
As reason member in not optional. Signed-off-by: Victor Toso --- qapi/run-state.json | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qapi/run-state.json b/qapi/run-state.json index 43d66d700f..1b9f64c9cd 100644 --- a/qapi/run-state.json +++ b/qapi/run-state.json @@

[PATCH 05/14] qapi: fix example of DUMP_COMPLETED event

2022-03-24 Thread Victor Toso
* Timestamp is not optional, let's add for completeness. * Add '<-' to signalize it is receiving the data * While at it, add extra space before "result" and "total" Signed-off-by: Victor Toso --- qapi/dump.json | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 01/14] qapi: BlockExportRemoveMode: move comments to TODO

2022-03-24 Thread Victor Toso
@hide and @soft are potential additions which fits the TODO section perfectly. The main motivation is to avoid this whole block of comment entering the wrong section in the python parser. Signed-off-by: Victor Toso --- qapi/block-export.json | 10 +- 1 file changed, 5 insertions(+), 5

  1   2   3   >