Re: [PATCH v6 03/17] hw/loongarch: Add slave cpu boot_code

2024-03-10 Thread maobibo
On 2024/3/8 下午5:36, gaosong wrote: 在 2024/3/8 16:27, maobibo 写道: On 2024/3/8 上午12:48, Song Gao wrote: Signed-off-by: Song Gao Message-Id: <20240301093839.663947-4-gaos...@loongson.cn> ---   hw/loongarch/boot.c | 70 -   1 file changed, 69 inser

[PATCH] sun4u: remap ebus BAR0 to use unassigned_io_ops instead of alias to PCI IO space

2024-03-10 Thread Mark Cave-Ayland
During kernel startup OpenBSD accesses addresses mapped by BAR0 of the ebus device but at offsets where no IO devices exist. Before commit 4aa07e8649 ("hw/sparc64/ebus: Access memory regions via pci_address_space_io()") BAR0 was mapped to legacy IO space which allows accesses to unmapped devices

Re: [PATCH] linux-aio: add IO_CMD_FDSYNC command support

2024-03-10 Thread Prasad Pandit
Hello Kevin, On Fri, 8 Mar 2024 at 17:38, Prasad Pandit wrote: > I'm trying to test it against the Fedora-26 kernel, which was < 4.13.0, and > did not support the AIO_FDSYNC call. [PATCH v2] -> https://lists.nongnu.org/archive/html/qemu-devel/2024-03/msg02495.html * I've sent v2 of this patch

Re: [PATCH v9 09/21] i386/cpu: Introduce bitmap to cache available CPU topology levels

2024-03-10 Thread Xiaoyao Li
On 2/27/2024 6:32 PM, Zhao Liu wrote: From: Zhao Liu Currently, QEMU checks the specify number of topology domains to detect if there's extended topology levels (e.g., checking nr_dies). With this bitmap, the extended CPU topology (the levels other than SMT, core and package) could be easier t

[PATCH] plugins/howvec: fix use-after-free

2024-03-10 Thread Pierrick Bouvier
reported by coverity scan --- contrib/plugins/howvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins/howvec.c b/contrib/plugins/howvec.c index 2d10c87e0fb..5be91f6fc5c 100644 --- a/contrib/plugins/howvec.c +++ b/contrib/plugins/howvec.c @@ -168,8 +168,8 @@ sta

[PATCH v2] linux-aio: add IO_CMD_FDSYNC command support

2024-03-10 Thread Prasad Pandit
From: Prasad Pandit Libaio defines IO_CMD_FDSYNC command to sync all outstanding asynchronous I/O operations, by flushing out file data to the disk storage. Enable linux-aio to submit such aio request. This helps to reduce latency induced via pthread_create calls by thread-pool (aio=threads). S

Re: [PATCH 03/14] hw/core/machine-smp: Simplify variables' initialization in machine_parse_smp_config()

2024-03-10 Thread Zhao Liu
Hi Prasad (and also welcome folks correct me), > On Fri, 8 Mar 2024 at 20:50, Zhao Liu wrote: > > On Fri, Mar 08, 2024 at 02:20:45PM +0100, Thomas Huth wrote: > > > Can we always rely on that? ... or is this just by luck due to the current > > > implementation? In the latter case, I'd maybe rathe

Re: [PATCH v2] target/riscv: raise an exception when CSRRS/CSRRC writes a read-only CSR

2024-03-10 Thread Richard Henderson
On 3/10/24 17:08, Yu-Ming Chang via wrote: Both CSRRS and CSRRC always read the addressed CSR and cause any read side effects regardless of rs1 and rd fields. Note that if rs1 specifies a register holding a zero value other than x0, the instruction will still attempt to write the unmodified value

Re: [RFC PATCH v7 00/23] target/arm: Implement FEAT_NMI and FEAT_GICv3_NMI

2024-03-10 Thread Jinjie Ruan via
Ping. On 2024/3/6 12:22, Richard Henderson wrote: > On 3/5/24 17:56, Jinjie Ruan via wrote: >> This patch set implements FEAT_NMI and FEAT_GICv3_NMI for armv8. These >> introduce support for a new category of interrupts in the architecture >> which we can use to provide NMI like functionality. >>

Re: [PATCH v2 0/7] Cleanup and fix @errp dereference

2024-03-10 Thread Zhao Liu
Hi Michael & Philippe, Could this series catch the last train of next releases? ;-) Thanks, Zhao On Fri, Feb 23, 2024 at 04:56:46PM +0800, Zhao Liu wrote: > Date: Fri, 23 Feb 2024 16:56:46 +0800 > From: Zhao Liu > Subject: [PATCH v2 0/7] Cleanup and fix @errp dereference > X-Mailer: git-send-em

[PATCH v2 07/29] block/qcow2-bitmap: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 15/29] hw/core/qdev-properties-system: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 18/29] hw/vfio/ap: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 29/29] target/s390x/cpu_models: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 27/29] migration/option: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 20/29] hw/vfio/helpers: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 23/29] hw/vfio/pci: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 28/29] net/vhost-vdpa: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 16/29] hw/misc/ivshmem: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 25/29] hw/virtio/vhost-vsock: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 11/29] block/vdi: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 21/29] hw/vfio/iommufd: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 04/29] block/copy-before-write: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 09/29] block/qed: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 24/29] hw/vfio/platform: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 08/29] block/qcow2: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 26/29] hw/virtio/vhost: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 22/29] hw/vfio/pci-quirks: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 19/29] hw/vfio/container: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 10/29] block/snapshot: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 14/29] hw/core/loader-fit: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 13/29] block/virtio-blk: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 03/29] block: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 05/29] block/nbd: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 02/29] backends/iommufd: Fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a

[PATCH v2 00/29] Cleanup up to fix missing ERRP_GUARD() for error_prepend()

2024-03-10 Thread Zhao Liu
From: Zhao Liu Hi, This series is the v2 to add missing ERRP_GUARD() for error_prepend(), which collects the previous v1 part 1 [1] and v1 part 2 (and excludes the 4 patches that have already been merged). The @errp's second restriction (in qapi/error) said: * Without ERRP_GUARD(), use of the

[PATCH v2 01/29] error: Add error_vprepend() in comment of ERRP_GUARD() rules

2024-03-10 Thread Zhao Liu
From: Zhao Liu The error_vprepend() should use ERRP_GUARD() just as the documentation of ERRP_GUARD() says: > It must be used when the function dereferences @errp or passes > @errp to error_prepend(), error_vprepend(), or error_append_hint(). Considering that error_vprepend() is also an API pro

[PATCH v2] target/riscv: raise an exception when CSRRS/CSRRC writes a read-only CSR

2024-03-10 Thread Yu-Ming Chang via
Both CSRRS and CSRRC always read the addressed CSR and cause any read side effects regardless of rs1 and rd fields. Note that if rs1 specifies a register holding a zero value other than x0, the instruction will still attempt to write the unmodified value back to the CSR and will cause any attendant

Re: [PATCH v9 04/10] target/riscv/vector_helper.c: update tail with vext_set_tail_elems_1s()

2024-03-10 Thread LIU Zhiwei
On 2024/3/10 4:43, Daniel Henrique Barboza wrote: Change all code that updates tail elems to use vext_set_tail_elems_1s() instead of vext_set_elems_1s(). Hi Daniel, Notice vext_set_tail_elems_1s will use NF field, which is zero for most vector instructions. Thus it will do nothing. I think

Re: [PULL v2 03/17] hw/loongarch: Add slave cpu boot_code

2024-03-10 Thread chen huacai
On Thu, Mar 7, 2024 at 11:35 PM Song Gao wrote: > > Signed-off-by: Song Gao > Message-Id: <20240301093839.663947-4-gaos...@loongson.cn> > --- > hw/loongarch/boot.c | 70 - > 1 file changed, 69 insertions(+), 1 deletion(-) > > diff --git a/hw/loongarch/

Re: [PATCH v5 52/65] i386/tdx: Wire TDX_REPORT_FATAL_ERROR with GuestPanic facility

2024-03-10 Thread Xiaoyao Li
On 3/7/2024 9:51 PM, Markus Armbruster wrote: Xiaoyao Li writes: On 2/29/2024 4:51 PM, Markus Armbruster wrote: Xiaoyao Li writes: Integrate TDX's TDX_REPORT_FATAL_ERROR into QEMU GuestPanic facility Originated-from: Isaku Yamahata Signed-off-by: Xiaoyao Li --- Changes in v5: - mention

Re: [PATCH v5 30/65] i386/tdx: Support user configurable mrconfigid/mrowner/mrownerconfig

2024-03-10 Thread Xiaoyao Li
On 3/7/2024 9:56 PM, Markus Armbruster wrote: Xiaoyao Li writes: On 3/7/2024 4:39 PM, Markus Armbruster wrote: Xiaoyao Li writes: On 2/29/2024 9:25 PM, Markus Armbruster wrote: Xiaoyao Li writes: On 2/29/2024 4:37 PM, Markus Armbruster wrote: Xiaoyao Li writes: From: Isaku Yamahata

[PATCH v6 2/3] backends: Initial support for SPDM socket support

2024-03-10 Thread Alistair Francis
From: Huai-Cheng Kuo SPDM enables authentication, attestation and key exchange to assist in providing infrastructure security enablement. It's a standard published by the DMTF [1]. SPDM supports multiple transports, including PCIe DOE and MCTP. This patch adds support to QEMU to connect to an ex

[PATCH v6 3/3] hw/nvme: Add SPDM over DOE support

2024-03-10 Thread Alistair Francis
From: Wilfred Mallawa Setup Data Object Exchance (DOE) as an extended capability for the NVME controller and connect SPDM to it (CMA) to it. Signed-off-by: Wilfred Mallawa Signed-off-by: Alistair Francis Reviewed-by: Jonathan Cameron Acked-by: Klaus Jensen --- docs/specs/index.rst|

[PATCH v6 1/3] hw/pci: Add all Data Object Types defined in PCIe r6.0

2024-03-10 Thread Alistair Francis
Add all of the defined protocols/features from the PCIe-SIG r6.0 "Table 6-32 PCI-SIG defined Data Object Types (Vendor ID = 0001h)" table. Signed-off-by: Alistair Francis Reviewed-by: Jonathan Cameron --- include/hw/pci/pcie_doe.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hw

[PATCH v6 0/3] Initial support for SPDM Responders

2024-03-10 Thread Alistair Francis
The Security Protocol and Data Model (SPDM) Specification defines messages, data objects, and sequences for performing message exchanges over a variety of transport and physical media. - https://www.dmtf.org/sites/default/files/standards/documents/DSP0274_1.3.0.pdf SPDM currently supports PCIe D

RE: [PATCH v2 0/9] Add AST2700 support

2024-03-10 Thread Jamin Lin
> -Original Message- > From: Cédric Le Goater > Sent: Thursday, March 7, 2024 6:43 PM > To: Jamin Lin ; Peter Maydell > ; Andrew Jeffery ; > Joel Stanley ; Alistair Francis ; open > list:ASPEED BMCs ; open list:All patches CC here > > Cc: Troy Lee ; Yunlin Tang > > Subject: Re: [PATCH v2

Re: [PATCH v2 00/10] mirror: allow switching from background to active mode

2024-03-10 Thread Peter Krempa
On Thu, Mar 07, 2024 at 22:42:56 +0300, Vladimir Sementsov-Ogievskiy wrote: > On 04.03.24 14:09, Peter Krempa wrote: > > On Mon, Mar 04, 2024 at 11:48:54 +0100, Kevin Wolf wrote: > > > Am 28.02.2024 um 19:07 hat Vladimir Sementsov-Ogievskiy geschrieben: > > > > On 03.11.23 18:56, Markus Armbruster

Re: [PATCH v4 00/19] contrib/elf2dmp: Improve robustness

2024-03-10 Thread Viktor Prutyanov
> elf2dmp sometimes fails to work with partially corrupted dumps, and also > emits warnings when sanitizers are in use. This series are collections > of changes to improve the situation. > > Signed-off-by: Akihiko Odaki > --- > Changes in v4: > - Remove unnecessary !! idiom (Peter Maydell) > -

Re: [PATCH v4 15/19] MAINTAINERS: Add Akihiko Odaki as a elf2dmp reviewer

2024-03-10 Thread Viktor Prutyanov
> Signed-off-by: Akihiko Odaki > Reviewed-by: Peter Maydell > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 65dfdc9677e4..d25403f3709b 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3583,6 +3583,7 @@ F: util/iova-tree.c > > e

[PULL 0/2] vfio queue

2024-03-10 Thread Cédric Le Goater
/pull-vfio-20240310 for you to fetch changes up to 0cb51c183a91e882b10ead4ddf2321296a537c47: vfio: allow cpr-reboot migration if suspended (2024-03-08 22:10:13 +0100) vfio queue: * Allow cpr-reboo

[PULL 1/2] vfio: register container for cpr

2024-03-10 Thread Cédric Le Goater
From: Steve Sistare Define entry points to perform per-container cpr-specific initialization and teardown. Signed-off-by: Steve Sistare Reviewed-by: Cédric Le Goater --- include/hw/vfio/vfio-common.h | 3 +++ hw/vfio/container.c | 11 ++- hw/vfio/cpr.c | 19

[PULL 2/2] vfio: allow cpr-reboot migration if suspended

2024-03-10 Thread Cédric Le Goater
From: Steve Sistare Allow cpr-reboot for vfio if the guest is in the suspended runstate. The guest drivers' suspend methods flush outstanding requests and re-initialize the devices, and thus there is no device state to save and restore. The user is responsible for suspending the guest before in

Re: [PATCH v3] hw/scsi/lsi53c895a: add timer to scripts processing

2024-03-10 Thread Helge Deller
On 3/10/24 16:35, Michael Tokarev wrote: 04.03.2024 19:37, Sven Schnelle : HP-UX 10.20 seems to make the lsi53c895a spinning on a memory location under certain circumstances. As the SCSI controller and CPU are not running at the same time this loop will never finish. After some time, the check l

Re: [PATCH v2] target/arm: Fix 32-bit SMOPA

2024-03-10 Thread Michael Tokarev
10.03.2024 21:13, Richard Henderson : ... If it all applies without drama, all is well. This very fix applies and works just fine on top of 7.2, it is only the tests part (the Makefile.target fragment) which isn't, so it's kinda problematic to apply it without a test. And while figuring out wh

Re: [PATCH v2] target/arm: Fix 32-bit SMOPA

2024-03-10 Thread Richard Henderson
On 3/9/24 08:40, Michael Tokarev wrote: 05.03.2024 19:39, Richard Henderson wrote: While the 8-bit input elements are sequential in the input vector, the 32-bit output elements are not sequential in the output matrix. Do not attempt to compute 2 32-bit outputs at the same time. Cc: qemu-sta...@

Re: [PATCH v9 09/10] target/riscv: Clear vstart_qe_zero flag

2024-03-10 Thread Daniel Henrique Barboza
On 3/10/24 15:04, Richard Henderson wrote: On 3/10/24 00:17, Daniel Henrique Barboza wrote: On 3/10/24 04:47, Richard Henderson wrote: On 3/9/24 10:43, Daniel Henrique Barboza wrote: From: Ivan Klokov The vstart_qe_zero flag is set at the beginning of the translation Here and subject,

Re: [PATCH v9 09/10] target/riscv: Clear vstart_qe_zero flag

2024-03-10 Thread Richard Henderson
On 3/10/24 00:17, Daniel Henrique Barboza wrote: On 3/10/24 04:47, Richard Henderson wrote: On 3/9/24 10:43, Daniel Henrique Barboza wrote: From: Ivan Klokov The vstart_qe_zero flag is set at the beginning of the translation Here and subject, s/qe/ne/. H  ... the flag name is correc

Re: [PATCH 1/2] tcg/aarch64: Fix tcg_out_cmp for test comparisons

2024-03-10 Thread Michael Tokarev
09.03.2024 20:51, Richard Henderson wrote: Pass the type to tcg_out_logicali; remove the assert, duplicated at the start of tcg_out_logicali. Cc: qemu-sta...@nongnu.org Fixes: 339adf2f38e ("tcg/aarch64: Support TCG_COND_TST{EQ,NE}") Signed-off-by: Richard Henderson v8.2.0-1139-g339adf2f38 isn

Re: [PATCH v3] hw/scsi/lsi53c895a: add timer to scripts processing

2024-03-10 Thread Michael Tokarev
04.03.2024 19:37, Sven Schnelle : HP-UX 10.20 seems to make the lsi53c895a spinning on a memory location under certain circumstances. As the SCSI controller and CPU are not running at the same time this loop will never finish. After some time, the check loop interrupts with a unexpected device di

[PATCH] docs/specs/pvpanic: document shutdown event

2024-03-10 Thread Thomas Weißschuh
+ a regular guest shutdown has happened and should be processed by the host PCI Interface - --- base-commit: f901bf11b3ddf852e591593b09b8aa7a177f9a0b change-id: 20240310-pvpanic-shutdown-spec-4ea2172529e8 Best regards, -- Thomas Weißschuh

Re: [PATCH] hw/ide/ahci: Rename ahci_internal.h to ahci-internal.h

2024-03-10 Thread BALATON Zoltan
On Tue, 27 Feb 2024, Philippe Mathieu-Daudé wrote: On 27/2/24 14:13, BALATON Zoltan wrote: Other headers now use dash instead of underscore. Rename ahci_internal.h accordingly for consistency. Signed-off-by: BALATON Zoltan --- hw/ide/{ahci_internal.h => ahci-internal.h} | 0 hw/ide/ahci.c

Re: [PULL 00/11] Trivial patches for 2024-03-09

2024-03-10 Thread Peter Maydell
On Sat, 9 Mar 2024 at 15:59, Michael Tokarev wrote: > > The following changes since commit 84644ac1b0f80d41b8a2f66547b83b2ad4a98576: > > Merge tag 'darwin-20240305' of https://github.com/philmd/qemu into staging > (2024-03-08 18:19:25 +) > > are available in the Git repository at: > > htt

Re: [PULL 00/43] Misc HW patches for 2024-03-09

2024-03-10 Thread Peter Maydell
On Sat, 9 Mar 2024 at 19:23, Philippe Mathieu-Daudé wrote: > > The following changes since commit 84644ac1b0f80d41b8a2f66547b83b2ad4a98576: > > Merge tag 'darwin-20240305' of https://github.com/philmd/qemu into staging > (2024-03-08 18:19:25 +) > > are available in the Git repository at: >

Re: [PATCH v2] docs/conf.py: Remove usage of distutils

2024-03-10 Thread Peter Maydell
On Sat, 9 Mar 2024 at 17:27, Peter Maydell wrote: > > On Tue, 5 Mar 2024 at 10:39, Thomas Huth wrote: > > Ok, while I was writing my mail, I was looking at https://brew.sh/ and > > didn't see a link to a bug tracker there ... but now I realized that they > > are simply using the github tracker, s

Re: [PATCH v9 08/21] i386/cpu: Consolidate the use of topo_info in cpu_x86_cpuid()

2024-03-10 Thread Zhao Liu
Hi Xiaoyao, On Sat, Mar 09, 2024 at 09:48:34PM +0800, Xiaoyao Li wrote: > Date: Sat, 9 Mar 2024 21:48:34 +0800 > From: Xiaoyao Li > Subject: Re: [PATCH v9 08/21] i386/cpu: Consolidate the use of topo_info in > cpu_x86_cpuid() > > On 2/27/2024 6:32 PM, Zhao Liu wrote: > > From: Zhao Liu > > > >

Re: [PATCH v9 06/21] i386/cpu: Use APIC ID info to encode cache topo in CPUID[4]

2024-03-10 Thread Zhao Liu
Hi Xiaoyao, > > case 3: /* L3 cache info */ > > -die_offset = apicid_die_offset(&topo_info); > > if (cpu->enable_l3_cache) { > > +addressable_threads_width = > > apicid_die_offset(&topo_info); > > Please get rid of the local var

Re: [PATCH v9 00/21] Introduce smp.modules for x86 in QEMU

2024-03-10 Thread Zhao Liu
> I dropped this 4 patches in favor of "Cleanup on SMP and its test" > v2 > (https://lore.kernel.org/qemu-devel/20240308160148.3130837-1-zhao1@linux.intel.com/) > which seems more important, to get the "parameter=0" deprecation > in the next release. (Patch 2 diverged). > Thanks! This series

Re: [PATCH v2 00/13] Cleanup on SMP and its test

2024-03-10 Thread Zhao Liu
> Ah no, it is due to commit 01e449809b ("*-user: Deprecate and > disable -p pagesize"). > > No need to respin this series, I queued it in favor of the 4 other > patches. Thanks for your queuing! -Zhao

Re: [PATCH 03/14] hw/core/machine-smp: Simplify variables' initialization in machine_parse_smp_config()

2024-03-10 Thread Prasad Pandit
Hi, On Fri, 8 Mar 2024 at 20:50, Zhao Liu wrote: > On Fri, Mar 08, 2024 at 02:20:45PM +0100, Thomas Huth wrote: > > Can we always rely on that? ... or is this just by luck due to the current > > implementation? In the latter case, I'd maybe rather drop this patch again. > > Thanks for the correct

[PATCH v10 02/10] target/riscv: handle vstart >= vl in vext_set_tail_elems_1s()

2024-03-10 Thread Daniel Henrique Barboza
We're going to make changes that will required each helper to be responsible for the 'vstart' management, i.e. we will relieve the 'vstart < vl' assumption that helpers have today. To do that we'll need to deal with how we're updating tail elements first. We can't update them if vstart >= vl, but

[PATCH v10 09/10] target/riscv: enable 'vstart_qe_zero' in the end of insns

2024-03-10 Thread Daniel Henrique Barboza
From: Ivan Klokov The vstart_qe_zero flag is updated at the beginning of the translation phase from the env->vstart variable. During the execution phase all functions will set env->vstart = 0 after a successful execution, but the vstart_eq_zero flag remains the same as at the start of the block.

[PATCH v10 10/10] target/riscv/vector_helper.c: optimize loops in ldst helpers

2024-03-10 Thread Daniel Henrique Barboza
Change the for loops in ldst helpers to do a single increment in the counter, and assign it env->vstart, to avoid re-reading from vstart every time. Suggested-by: Richard Henderson Signed-off-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis Reviewed-by: Richard Henderson --- target/r

[PATCH v10 07/10] target/riscv: remove 'over' brconds from vector trans

2024-03-10 Thread Daniel Henrique Barboza
Most of the vector translations has this following pattern at the start: TCGLabel *over = gen_new_label(); tcg_gen_brcond_tl(TCG_COND_GEU, cpu_vstart, cpu_vl, over); And then right at the end: gen_set_label(over); return true; This means that if vstart >= vl we'll not set vsta

[PATCH v10 05/10] target/riscv: use vext_set_tail_elems_1s() in vcrypto insns

2024-03-10 Thread Daniel Henrique Barboza
Vcrypto insns should also use the same helper the regular vector insns uses to update the tail elements. Move vext_set_tail_elems_1s() to vector_internals.c and make it public. Use it in vcrypto_helper.c to set tail elements instead of vext_set_elems_1s(). Helpers must set env->vstart = 0 after se

[PATCH v10 08/10] trans_rvv.c.inc: remove redundant mark_vs_dirty() calls

2024-03-10 Thread Daniel Henrique Barboza
trans_vmv_v_i , trans_vfmv_v_f and the trans_##NAME macro from GEN_VMV_WHOLE_TRANS() are calling mark_vs_dirty() in both branches of their 'ifs'. conditionals. Call it just once in the end like other functions are doing. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Richard Henderson Revi

[PATCH v10 04/10] target/riscv/vector_helper.c: update tail with vext_set_tail_elems_1s()

2024-03-10 Thread Daniel Henrique Barboza
Change all code that updates tail elems to use vext_set_tail_elems_1s() instead of vext_set_elems_1s(). Setting 'env->vstart=0' needs to be the very last thing a helper does because env->vstart is being checked by vext_set_tail_elems_1s(). A side effect of this change is that a lot of 'vta' local

[PATCH v10 01/10] target/riscv/vector_helper.c: set vstart = 0 in GEN_VEXT_VSLIDEUP_VX()

2024-03-10 Thread Daniel Henrique Barboza
The helper isn't setting env->vstart = 0 after its execution, as it is expected from every vector instruction that completes successfully. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/vector_helper.c | 1 + 1 file changed,

[PATCH v10 03/10] target/riscv/vector_helper.c: do vstart=0 after updating tail

2024-03-10 Thread Daniel Henrique Barboza
vext_vv_rm_1() and vext_vv_rm_2() are setting vstart = 0 before their respective callers (vext_vv_rm_2 and vext_vx_rm_2) update the tail elements. This is benign now, but we'll convert the tail updates to use vext_set_tail_elems_1s(), and this function is sensitive to vstart changes. Do vstart =

[PATCH v10 06/10] trans_rvv.c.inc: set vstart = 0 in int scalar move insns

2024-03-10 Thread Daniel Henrique Barboza
trans_vmv_x_s, trans_vmv_s_x, trans_vfmv_f_s and trans_vfmv_s_f aren't setting vstart = 0 after execution. This is usually done by a helper in vector_helper.c but these functions don't use helpers. We'll set vstart after any potential 'over' brconds, and that will also mandate a mark_vs_dirty() to

[PATCH v10 00/10] riscv: set vstart_eq_zero on mark_vs_dirty

2024-03-10 Thread Daniel Henrique Barboza
Hi, This version has changes in the wording on patch 9 subject and commit msg. The previous subject, "target/riscv: Clear vstart_qe_zero flag", isn't accurate. We're not clearing (i.e. setting to false/zero) the flag, we're setting the flag to 'true' in the end of each insns. The first paragraph

Re: [PATCH 0/2] hw/nvme: fix hibernation-based migration

2024-03-10 Thread Klaus Jensen
re/machine.c | 1 + > hw/nvme/ctrl.c| 73 > --- > hw/nvme/nvme.h| 1 + > 3 files changed, 50 insertions(+), 25 deletions(-) > --- > base-commit: f901bf11b3ddf852e591593b09b8aa7a177f9a0b > change-id: 20240310-fix-msix-

[PATCH 1/2] hw/nvme: generalize the mbar size helper

2024-03-10 Thread Klaus Jensen
From: Klaus Jensen Generalize the mbar size helper such that it can handle cases where the MSI-X table and PBA are expected to be in an exclusive bar. Signed-off-by: Klaus Jensen --- hw/nvme/ctrl.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a

[PATCH 2/2] hw/nvme: add machine compatibility parameter to enable msix exclusive bar

2024-03-10 Thread Klaus Jensen
From: Klaus Jensen Commit 1901b4967c3f ("hw/block/nvme: move msix table and pba to BAR 0") moved the MSI-X table and PBA to BAR 0 to make room for enabling CMR and PMR at the same time. As reported by Julien Grall in #2184, this breaks migration through system hibernation. Add a machine compatib

[PATCH 0/2] hw/nvme: fix hibernation-based migration

2024-03-10 Thread Klaus Jensen
| 1 + 3 files changed, 50 insertions(+), 25 deletions(-) --- base-commit: f901bf11b3ddf852e591593b09b8aa7a177f9a0b change-id: 20240310-fix-msix-exclusive-bar-d65564414a2c Best regards, -- Klaus Jensen

Re: [PATCH v9 09/10] target/riscv: Clear vstart_qe_zero flag

2024-03-10 Thread Daniel Henrique Barboza
On 3/10/24 04:47, Richard Henderson wrote: On 3/9/24 10:43, Daniel Henrique Barboza wrote: From: Ivan Klokov The vstart_qe_zero flag is set at the beginning of the translation Here and subject, s/qe/ne/. H ... the flag name is correct - vstart_qe_zero. But the patch isn't clearing

Re: [PATCH v9 04/10] target/riscv/vector_helper.c: update tail with vext_set_tail_elems_1s()

2024-03-10 Thread Daniel Henrique Barboza
On 3/10/24 04:41, Richard Henderson wrote: On 3/9/24 10:43, Daniel Henrique Barboza wrote: Change all code that updates tail elems to use vext_set_tail_elems_1s() instead of vext_set_elems_1s(). Setting 'env->vstart=0' needs to be the very last thing a helper does because env->vstart is bein

Re: [PATCH 3/7] scripts/nsis.py: Automatically package required DLLs of QEMU executables

2024-03-10 Thread Mark Cave-Ayland
On 26/02/2024 06:30, Stefan Weil via wrote: Am 26.02.24 um 05:35 schrieb Bin Meng: On Mon, Feb 26, 2024 at 1:37 AM Stefan Weil wrote: Am 10.09.22 um 02:37 schrieb Bin Meng: On Sat, Sep 10, 2022 at 12:49 AM Mark Cave-Ayland wrote: On 08/09/2022 14:28, Bin Meng wrote: From: Bin Meng At