Re: [PATCH v9 2/4] chardev/char-hub: implement backend chardev aggregator

2025-02-17 Thread Markus Armbruster
Just realized this has been committed already. I'm not complaining, I was late. Address my doc nits in a followup patch?

Re: [PATCH v9 2/4] chardev/char-hub: implement backend chardev aggregator

2025-02-17 Thread Markus Armbruster
Roman Penyaev writes: > This patch implements a new chardev backend `hub` device, which > aggregates input from multiple backend devices and forwards it to a > single frontend device. Additionally, `hub` device takes the output > from the frontend device and sends it back to all the connected > b

Re: [PATCH v3 3/9] migration: Change migrate_fd_ to migration_

2025-02-17 Thread Zhijian Li (Fujitsu)
On 14/02/2025 01:59, Fabiano Rosas wrote: > Remove all instances of _fd_ from the migration generic code. These > functions have grown over time and the _fd_ part is now just > confusing. > > migration_fd_error() -> migration_error() makes it a little > vague. Since it's only used for migration_

Re: [PATCH v4 26/33] vfio/migration: Multifd device state transfer support - receive init/cleanup

2025-02-17 Thread Cédric Le Goater
On 2/17/25 23:13, Maciej S. Szmigiero wrote: On 17.02.2025 10:38, Cédric Le Goater wrote: On 2/14/25 21:55, Maciej S. Szmigiero wrote: On 12.02.2025 11:55, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Add support for VFIOMultifd data struc

Re: [PATCH v4] net: vhost-user: add QAPI events to report connection state

2025-02-17 Thread Markus Armbruster
Laurent Vivier writes: > The netdev reports NETDEV_VHOST_USER_CONNECTED event when > the chardev is connected, and NETDEV_VHOST_USER_DISCONNECTED > when it is disconnected. > > The NETDEV_VHOST_USER_CONNECTED event includes the chardev id. > > This allows a system manager like libvirt to detect w

[PATCH] rust: Prefer std::ptr over core::ptr

2025-02-17 Thread Zhao Liu
The std::ptr is same as core::ptr, but std has already been used in many cases and there's no need to choose non-std library. So, use std::ptr directly to make the used ptr library as consistent as possible. Signed-off-by: Zhao Liu --- rust/hw/char/pl011/src/device.rs | 2 +- rust/hw/char

[PATCH 1/2] migration: Prioritize RDMA in ram_save_target_page()

2025-02-17 Thread Li Zhijian via
Address an error in RDMA-based migration by ensuring RDMA is prioritized when saving pages in `ram_save_target_page()`. Previously, the RDMA protocol's page-saving step was placed after other protocols due to a refactoring in commit bc38dc2f5f3. This led to migration failures characterized by unkn

[PATCH 2/2] [NOT-FOR-MERGE] Add qtest for migration over RDMA

2025-02-17 Thread Li Zhijian via
This qtest requirs there is RXE link in the host. Here is an example to show how to add this RXE link: $ ./new-rdma-link.sh 192.168.22.93 Signed-off-by: Li Zhijian --- The RDMA migration was broken again...due to lack of sufficient test/qtest. It's urgly to add and execute a script to establish

[PATCH] aspeed: Remove duplicate typename in AspeedSoCClass

2025-02-17 Thread Cédric Le Goater
The SoC type name is stored under AspeedSoCClass which is redundant. Use object_get_typename() instead where needed. Signed-off-by: Cédric Le Goater --- include/hw/arm/aspeed_soc.h | 1 - hw/arm/aspeed_ast10x0.c | 3 +-- hw/arm/aspeed_ast2400.c | 4 +--- hw/arm/aspeed_ast2600.c | 3 +

Re: [PATCH v2 0/5] Fix vIOMMU reset order

2025-02-17 Thread Eric Auger
Hi Zhenzhong, On 2/18/25 4:32 AM, Duan, Zhenzhong wrote: > Hi Eric, > >> -Original Message- >> From: Eric Auger >> Subject: [PATCH v2 0/5] Fix vIOMMU reset order >> >> With current reset scheme, DMA capable devices are reset before > s/before/after ugh definitively! :-) > >> the vIOMMU wh

[PATCH] hw/timer/hpet: Detect invalid access to TN registers

2025-02-17 Thread Zhao Liu
"addr & 0x18" ignores invalid address, so that the trace in default branch (trace_hpet_ram_{read|write}_invalid()) doesn't work. Mask addr by "0x1f & ~4", in which 0x1f means to get the complete TN registers access and ~4 means to keep any invalid address offset. Signed-off-by: Zhao Liu --- * N

Re: [PATCH v3 21/28] hw/misc/aspeed_hace: Fix boot issue in the Crypto Manager Self Test

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Currently, it does not support the CRYPT command. Instead, it only sends an interrupt to notify the firmware that the crypt command has completed. It is a temporary workaround to resolve the boot issue in the Crypto Manager Self Test. Signed-off-by: Jamin Lin

RE: [RFC PATCH 0/5] hw/arm/virt: Add support for user-creatable nested SMMUv3

2025-02-17 Thread Shameerali Kolothum Thodi via
Hi Zhenzhong, > -Original Message- > From: Duan, Zhenzhong > Sent: Monday, February 17, 2025 9:17 AM > To: Shameerali Kolothum Thodi > ; Nicolin Chen > ; Donald Dutile > Cc: eric.au...@redhat.com; Peter Maydell ; > Jason Gunthorpe ; Daniel P. Berrangé > ; qemu-...@nongnu.org; qemu- > de.

Re: [PULL 23/32] tests/functional: extend test_aarch64_virt with vulkan test

2025-02-17 Thread Thomas Huth
On 17/02/2025 17.30, Peter Maydell wrote: On Fri, 10 Jan 2025 at 13:23, Alex Bennée wrote: Now that we have virtio-gpu Vulkan support, let's add a test for it. Currently this is using images build by buildroot: https://lists.buildroot.org/pipermail/buildroot/2024-December/768196.html Revie

Re: [RFC] migration: Introduce migration throttle event

2025-02-17 Thread Yong Huang
On Tue, Feb 18, 2025 at 1:44 PM Markus Armbruster wrote: > yong.hu...@smartx.com writes: > > > From: Hyman Huang > > > > When the developer is examining the time distribution of > > the migration, it is useful to record the migration throttle > > timestamp. Consequently, include the migration th

Re: [PATCH v3 18/28] hw/arm/aspeed: Add SoC and Machine Support for AST2700 A1

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: The memory map for AST2700 A1 remains compatible with AST2700 A0. However, the IRQ mapping has been updated for AST2700 A1, with GIC interrupts now ranging from 192 to 201. Add a new IRQ map table for AST2700 A1. Add "aspeed_soc_ast2700a1_class_init" to initiali

Re: [PATCH v3 15/28] hw/misc/aspeed_scu: Fix the revision ID cannot be set in the SOC layer for AST2700

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: According to the design of the AST2600, it has a Silicon Revision ID Register, specifically SCU004 and SCU014, to set the Revision ID for the AST2600. For the AST2600 A3, SCU004 is set to 0x05030303 and SCU014 is set to 0x05030303. In the "aspeed_ast2600_scu_res

Re: [PATCH v4 2/9] vhost_user.rst: Align VhostUserMsg excerpt members

2025-02-17 Thread Stefan Hajnoczi
On Mon, Feb 17, 2025 at 05:40:05PM +0100, Albert Esteve wrote: > Add missing members to the VhostUserMsg excerpt in > the vhost-user spec documentation. > > Signed-off-by: Albert Esteve > --- > docs/interop/vhost-user.rst | 4 > 1 file changed, 4 insertions(+) Reviewed-by: Stefan Hajnoczi

Re: [PATCH v4 1/9] vhost-user: Add VirtIO Shared Memory map request

2025-02-17 Thread Stefan Hajnoczi
On Mon, Feb 17, 2025 at 05:40:04PM +0100, Albert Esteve wrote: > Add SHMEM_MAP/UNMAP requests to vhost-user to > handle VIRTIO Shared Memory mappings. > > This request allows backends to dynamically map > fds into a VIRTIO Shared Memory Region indentified > by its `shmid`. The map is performed by

Re: [PATCH 1/1] target/loongarch: fix 'make check-functional failed'

2025-02-17 Thread bibo mao
On 2025/2/17 上午8:54, Song Gao wrote: For LoongArch th min tlb_ps is 12(4KB), for TLB code, the tlb_ps may be 0,this may case UndefinedBehavior Add a check-tlb_ps fuction to check tlb_ps, when use csrwr insn to write CRMD PG=1, check the tlb_ps, and when use csrwr insn to write STLBPS, check th

Re: [PATCH v5 8/8] docs/system: Expand the virtio-gpu documentation

2025-02-17 Thread Dmitry Osipenko
On 2/18/25 09:27, Dmitry Osipenko wrote: >> To be honest, I'm concerned that you may be using QEMU as a staging tree >> for Mesa/virglrenderer. Submitting a documentation to QEMU as a >> preparation to submit one to Mesa is not OK. >> >> You shouldn't submit a documentation to QEMU if upstream >> M

Re: [PATCH v3 14/28] hw/misc/aspeed_scu: Add Support for AST2700/AST2750 A1 Silicon Revisions

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Added new definitions for AST2700_A1_SILICON_REV and AST2750_A1_SILICON_REV to identify the A1 silicon revisions. Signed-off-by: Jamin Lin Reviewed-by: Cédric Le Goater Thanks, C. --- hw/misc/aspeed_scu.c | 2 ++ include/hw/misc/aspeed_scu.

Re: [PATCH v2 3/3] hw/cxl/cxl-mailbox-utils: Add support for Media operations Sanitize and Write Zeros commands (8.2.9.9.5.3)

2025-02-17 Thread Vinayak Holikatti
On 14/02/25 02:40PM, Jonathan Cameron wrote: On Thu, 13 Feb 2025 14:45:58 +0530 Vinayak Holikatti wrote: CXL spec 3.1 section 8.2.9.9.5.3 describes media operations commands. As in previous - please update to the r3.2 spec. ok will update as per 3.2 A few comments inline. Thanks, Jonatha

Re: [PATCH v3 23/28] test/functional/aspeed: Introduce new function to fetch assets

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: This method simplifies the process of fetching and extracting assets from the Aspeed GitHub repository. Signed-off-by: Jamin Lin --- tests/functional/test_aarch64_aspeed.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/f

Re: [PATCH v5 8/8] docs/system: Expand the virtio-gpu documentation

2025-02-17 Thread Dmitry Osipenko
On 2/13/25 07:32, Akihiko Odaki wrote: > On 2025/02/10 6:03, Dmitry Osipenko wrote: >> On 2/6/25 08:41, Akihiko Odaki wrote: >>> On 2025/02/06 2:40, Dmitry Osipenko wrote: On 2/3/25 08:31, Akihiko Odaki wrote: ... >> Requirements don't vary much. For example virglrenderer minigbm

Re: [PATCH v2 1/3] hw/cxl/cxl-mailbox-utils: Add support for Media operations discovery commands (8.2.9.9.5.3)

2025-02-17 Thread Vinayak Holikatti
On 14/02/25 02:08PM, Jonathan Cameron wrote: On Thu, 13 Feb 2025 14:45:56 +0530 Vinayak Holikatti wrote: CXL spec 3.1 section 8.2.9.9.5.3 describes media operations commands. Given the CXL consortium only makes the latest spec available, generally we try to reference that. It's move to 8.2.1

Re: [PATCH v3 19/28] hw/misc/aspeed_hace: Fix coding style

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Fix coding style issues from checkpatch.pl. Signed-off-by: Jamin Lin Reviewed-by: Cédric Le Goater Thanks, C. --- hw/misc/aspeed_hace.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/misc/aspeed_hace.c b/hw/misc

Re: [PATCH v3 09/28] hw/intc/aspeed: Refactor INTC to support separate input and output pin indices

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Refactors the INTC to distinguish between input and output pin indices, improving interrupt handling clarity and accuracy. Updated the functions to handle both input and output pin indices. Added detailed logging for input and output pin indices in trace events

Re: [PATCH v3 08/28] hw/intc/aspeed: Add support for multiple output pins in INTC

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Added support for multiple output pins in the INTC controller to accommodate the AST2700 A1. Introduced "num_outpins" to represent the number of output pins. Updated the IRQ handling logic to initialize and connect output pins separately from input pins. Modifi

Re: [PATCH v3 07/28] hw/intc/aspeed: Rename num_ints to num_inpins for clarity

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: To support AST2700 A1, some registers of the INTC(CPU Die) support one input pin to multiple output pins. Renamed "num_ints" to "num_inpins" in the INTC controller code for better clarity and consistency in naming conventions. Signed-off-by: Jamin Lin Revie

Re: [PATCH v3 06/28] hw/intc/aspeed: Support different memory region ops

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: The previous implementation set the "aspeed_intc_ops" struct, containing read and write callbacks, to be used when I/O is performed on the INTC region. Both "aspeed_intc_read" and "aspeed_intc_write" callback functions were used for INTC (CPU Die). To support t

Re: [PATCH v3 05/28] hw/arm/aspeed_ast27x0: Sort the IRQ table by IRQ number

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: To improve readability, sort the IRQ table by IRQ number. Signed-off-by: Jamin Lin Reviewed-by: Cédric Le Goater Thanks, C. --- hw/arm/aspeed_ast27x0.c | 50 - 1 file changed, 25 insertions(+), 25 deletions(-

Re: [PATCH v3 04/28] hw/arm/aspeed: Rename IRQ table and machine name for AST2700 A0

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Currently, AST2700 SoC only supports A0. To support AST2700 A1, rename its IRQ table and machine name. Signed-off-by: Jamin Lin --- hw/arm/aspeed.c | 8 hw/arm/aspeed_ast27x0.c | 8 2 files changed, 8 insertions(+), 8 deletions(-)

[PATCH v3] hw/cxl/cxl-mailbox-utils: CXL CCI Get/Set alert config commands implmented as per CXL Specification 3.2 section 8.2.10.9.3

2025-02-17 Thread Sweta Kumari
1)get alert configuration(Opcode 4201h) 2)set alert configuration(Opcode 4202h) The patch is generated against the Johnathan's tree https://gitlab.com/jic23/qemu.git and branch cxl-2024-11-27. Signed-off-by: Sweta Kumari --- Changes in V2: - Removed cover letter as it's a single patch - Added la

Re: [RFC] migration: Introduce migration throttle event

2025-02-17 Thread Markus Armbruster
yong.hu...@smartx.com writes: > From: Hyman Huang > > When the developer is examining the time distribution of > the migration, it is useful to record the migration throttle > timestamp. Consequently, include the migration throttle event. Can you explain what you'd like to do with the informatio

Re: [PATCH v3 03/28] hw/intc/aspeed: Add object type name to trace events for better debugging

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: Currently, these trace events only refer to INTC. To simplify the INTC model, both INTC(CPU Die) and INTCIO(IO Die) will share the same helper functions. However, it is difficult to recognize whether these trace events are comes from INTC or INTCIO. To make the

Re: [PATCH v3 02/28] hw/intc/aspeed: Introduce helper functions for enable and status registers

2025-02-17 Thread Cédric Le Goater
On 2/13/25 04:35, Jamin Lin wrote: The behavior of the enable and status registers is almost identical between INTC(CPU Die) and INTCIO(IO Die). To reduce duplicated code, adds "aspeed_intc_enable_handler" functions to handle enable register write behavior and "aspeed_intc_status_handler" functio

Re: [PATCH v3 01/28] hw/intc/aspeed: Support setting different memory and register size

2025-02-17 Thread Cédric Le Goater
Hello Jamin, On 2/13/25 04:35, Jamin Lin wrote: According to the AST2700 datasheet, the INTC(CPU DIE) controller has 16KB (0x4000) of register space, and the INTCIO (I/O DIE) controller has 1KB (0x400) of register space. Introduced a new class attribute "mem_size" to set different memory sizes

Re: [PATCH] block/rbd: Do not use BDS's AioContext

2025-02-17 Thread Stefan Hajnoczi
On Wed, Feb 12, 2025 at 03:27:26PM +0100, Hanna Czenczek wrote: > On 12.02.25 14:26, Kevin Wolf wrote: > > Am 12.02.2025 um 10:32 hat Hanna Czenczek geschrieben: > > > RBD schedules the request completion code (qemu_rbd_finish_bh()) to run > > > in the BDS's AioContext. The intent seems to be to r

[PATCH] target/loongarch/gdbstub: Fix gdbstub incorrectly handling register R32

2025-02-17 Thread Bibo Mao
Write operation with R32 (orig_a0) and R32 (CSR_BADV) is discarded on gdbstub implementation for LoongArch system. And return value should be register size rather than 0, since it is used to calculate offset of next register such as R33 (PC) in function handle_write_all_regs(). Cc: qemu-sta...@non

Re: [PATCH v4 0/3] Enable clang build on Windows

2025-02-17 Thread Brian Cain
On 1/11/2025 4:08 PM, Stefan Weil via wrote: Am 10.01.25 um 21:33 schrieb Pierrick Bouvier: For now, it was only possible to build plugins using GCC on Windows. However, windows-aarch64 only supports Clang. This biggest roadblock was to get rid of gcc_struct attribute, which is not supported

[PATCH 1/2] target/riscv: fix access permission checks for CSR_SSP

2025-02-17 Thread Deepak Gupta
Commit:8205bc1 ("target/riscv: introduce ssp and enabling controls for zicfiss") introduced CSR_SSP but it mis-interpreted the spec on access to CSR_SSP in M-mode. Gated to CSR_SSP is not gated via `xSSE`. But rather rules clearly specified in section "2.2.4. Shadow Stack Pointer" of `zicfiss` spec

RE: [PATCH v2 0/5] Fix vIOMMU reset order

2025-02-17 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Subject: [PATCH v2 0/5] Fix vIOMMU reset order > >With current reset scheme, DMA capable devices are reset before s/before/after >the vIOMMU which translate them. This holds for the different >IOMMUs and various DMA capable devices such as

Re: [PULL v2.5 00/27] tcg patch queue

2025-02-17 Thread Stefan Hajnoczi
On Tue, Feb 18, 2025 at 3:35 AM Richard Henderson wrote: > > v2: Fix target/loongarch printf formats for vaddr > Include two more reviewed patches. > > This time with actual pull urls. :-/ > > r~ > > > The following changes since commit db7aa99ef894e88fc5eedf02ca2579b8c344b2ec: > > Merge ta

[PATCH 2/2] target/riscv: fixes a bug against `ssamoswap` behavior in M-mode

2025-02-17 Thread Deepak Gupta
Commit f06bfe3dc38c ("target/riscv: implement zicfiss instructions") adds `ssamoswap` instruction. `ssamoswap` takes the code-point from existing reserved encoding (and not a zimop like other shadow stack instructions). If shadow stack is not enabled (via xenvcfg.SSE), then `ssamoswap` must result

[RFC] migration: Introduce migration throttle event

2025-02-17 Thread yong . huang
From: Hyman Huang When the developer is examining the time distribution of the migration, it is useful to record the migration throttle timestamp. Consequently, include the migration throttle event. Signed-off-by: Hyman Huang --- migration/ram.c | 1 + qapi/migration.json | 15 +++

Re: [PATCH] target/riscv: Respect mseccfg.RLB bit for TOR mode PMP entry

2025-02-17 Thread Alistair Francis
On Tue, Feb 11, 2025 at 1:38 AM Rob Bradford wrote: > > When running in TOR mode (Top of Range) the next PMP entry controls > whether the entry is locked. However simply checking if the PMP_LOCK bit > is set is not sufficient with the Smepmp extension which now provides a > bit (mseccfg.RLB (Rule

Re: [PATCH] target/riscv: Respect mseccfg.RLB bit for TOR mode PMP entry

2025-02-17 Thread Alistair Francis
On Tue, Feb 11, 2025 at 1:38 AM Rob Bradford wrote: > > When running in TOR mode (Top of Range) the next PMP entry controls > whether the entry is locked. However simply checking if the PMP_LOCK bit > is set is not sufficient with the Smepmp extension which now provides a > bit (mseccfg.RLB (Rule

Re: [PATCH] physmem: replace assertion with error

2025-02-17 Thread Xiaoyao Li
On 2/17/2025 8:08 PM, Paolo Bonzini wrote: It is possible to start QEMU with a confidential-guest-support object even in TCG mode. While there is already a check in qemu_machine_creation_done: if (machine->cgs && !machine->cgs->ready) { error_setg(errp, "accelerator does not suppo

Re: [PATCH v2 2/5] hw/i386/intel-iommu: Migrate to 3-phase reset

2025-02-17 Thread Jason Wang
On Mon, Feb 17, 2025 at 9:38 PM Eric Auger wrote: > > Currently the IOMMU may be reset before the devices > it protects. For example this happens with virtio devices > but also with VFIO devices. In this latter case this > produces spurious translation faults on host. > > Let's use 3-phase reset m

Re: [PATCH v2 1/5] hw/virtio/virtio-iommu: Migrate to 3-phase reset

2025-02-17 Thread Jason Wang
On Mon, Feb 17, 2025 at 9:38 PM Eric Auger wrote: > > Currently the iommu may be reset before the devices > it protects. For example this happens with virtio-net. > > Let's use 3-phase reset mechanism and reset the IOMMU on > exit phase after all DMA capable devices have been > reset during the 'e

Re: [PATCH 03/22] target/riscv: store RISCVCPUDef struct directly in the class

2025-02-17 Thread Alistair Francis
On Fri, Feb 7, 2025 at 4:28 AM Paolo Bonzini wrote: > > Prepare for adding more fields to RISCVCPUDef and reading them in > riscv_cpu_init: instead of storing the misa_mxl_max field in > RISCVCPUClass, ensure that there's always a valid RISCVCPUDef struct > and go through it. > > Signed-off-by: Pa

Re: [PATCH 00/22] target/riscv: declarative CPU definitions

2025-02-17 Thread Alistair Francis
On Fri, Feb 7, 2025 at 4:28 AM Paolo Bonzini wrote: > > Hi Alastair, > > the subject is a slightly underhanded description, in that what I really > wanted to achieve was removing RISC-V's use of .instance_post_init; that's > because RISC-V operate with an opposite conception of .instance_post_init

Re: [PATCH 06/22] target/riscv: add more RISCVCPUDef fields

2025-02-17 Thread Alistair Francis
On Fri, Feb 7, 2025 at 4:29 AM Paolo Bonzini wrote: > > Allow using RISCVCPUDef to replicate all the logic of custom .instance_init > functions. To simulate inheritance, merge the child's RISCVCPUDef with > the parent and then finally move it to the CPUState at the end of > TYPE_RISCV_CPU's own i

Re: [PATCH 05/22] target/riscv: move RISCVCPUConfig fields to a header file

2025-02-17 Thread Alistair Francis
On Fri, Feb 7, 2025 at 4:27 AM Paolo Bonzini wrote: > > To support merging a subclass's RISCVCPUDef into the superclass, a list > of all the CPU features is needed. Put them into a header file that > can be included multiple times, expanding the macros BOOL_FIELD and > TYPE_FIELD to different ope

Re: [PATCH 04/22] target/riscv: merge riscv_cpu_class_init with the class_base function

2025-02-17 Thread Alistair Francis
On Fri, Feb 7, 2025 at 4:29 AM Paolo Bonzini wrote: > > Since all TYPE_RISCV_CPU subclasses support a class_data of type > RISCVCPUDef, process it even before calling the .class_init function > for the subclasses. > > Signed-off-by: Paolo Bonzini Reviewed-by: Alistair Francis Alistair > --- >

Re: [PATCH v2 16/18] hw/arm/fsl-imx8mp: Add boot ROM

2025-02-17 Thread Bernhard Beschow
Am 17. Februar 2025 13:28:42 UTC schrieb Peter Maydell : >On Tue, 4 Feb 2025 at 09:21, Bernhard Beschow wrote: >> >> On a real device, the boot ROM contains the very first instructions the CPU >> executes. Also, U-Boot calls into the ROM to determine the boot device. While >> we're not actuall

Re: [PATCH v4 27/33] vfio/migration: Multifd device state transfer support - received buffers queuing

2025-02-17 Thread Maciej S. Szmigiero
On 17.02.2025 14:48, Cédric Le Goater wrote: On 2/14/25 21:58, Maciej S. Szmigiero wrote: On 12.02.2025 14:47, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" The multifd received data needs to be reassembled since device state packets sent vi

Re: [PATCH v4 26/33] vfio/migration: Multifd device state transfer support - receive init/cleanup

2025-02-17 Thread Maciej S. Szmigiero
On 17.02.2025 10:38, Cédric Le Goater wrote: On 2/14/25 21:55, Maciej S. Szmigiero wrote: On 12.02.2025 11:55, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Add support for VFIOMultifd data structure that will contain most of the receive-sid

Re: [PATCH v4 31/33] vfio/migration: Multifd device state transfer support - send side

2025-02-17 Thread Maciej S. Szmigiero
On 12.02.2025 18:03, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Implement the multifd device state transfer via additional per-device thread inside save_live_complete_precopy_thread handler. Switch between doing the data transfer in the ne

Re: [PATCH v4 29/33] vfio/migration: Multifd device state transfer support - config loading support

2025-02-17 Thread Maciej S. Szmigiero
On 12.02.2025 17:21, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Load device config received via multifd using the existing machinery behind vfio_load_device_config_state(). Also, make sure to process the relevant main migration channel fla

Re: [PATCH v4 28/33] vfio/migration: Multifd device state transfer support - load thread

2025-02-17 Thread Maciej S. Szmigiero
On 12.02.2025 17:19, Cédric Le Goater wrote: On 2/12/25 16:48, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Since it's important to finish loading device state transferred via the main migration channel (via save_live_iterate SaveVMHandler)

Re: [PATCH v4 28/33] vfio/migration: Multifd device state transfer support - load thread

2025-02-17 Thread Maciej S. Szmigiero
On 12.02.2025 16:48, Cédric Le Goater wrote: On 1/30/25 11:08, Maciej S. Szmigiero wrote: From: "Maciej S. Szmigiero" Since it's important to finish loading device state transferred via the main migration channel (via save_live_iterate SaveVMHandler) before starting loading the data asynchrono

Re: [PATCH v6 2/4] migration: enable multifd and postcopy together

2025-02-17 Thread Fabiano Rosas
Prasad Pandit writes: > From: Prasad Pandit > > Enable Multifd and Postcopy migration together. > The migration_ioc_process_incoming() routine > checks magic value sent on each channel and > helps to properly setup multifd and postcopy > channels. > > The Precopy and Multifd threads work during

Re: [PULL 23/32] tests/functional: extend test_aarch64_virt with vulkan test

2025-02-17 Thread Peter Maydell
On Fri, 10 Jan 2025 at 13:23, Alex Bennée wrote: > Now that we have virtio-gpu Vulkan support, let's add a test for it. > Currently this is using images build by buildroot: > > https://lists.buildroot.org/pipermail/buildroot/2024-December/768196.html > > Reviewed-by: Thomas Huth > Signed-off-by

Re: [PATCH v9 0/3] TPM TIS SPI Support

2025-02-17 Thread dan tan
Stefan, I have yet found a ppc64le Linux distro that has SPI enabled in the kernel. Attempts to build my own was not successful either. I am trying to get the LTC (Linux Technology Center) involved. They have more expertise in building the ppc64le kernel. I am hoping to get that tested soon.

Re: [PATCH] Kconfig: Extract CONFIG_USB_CHIPIDEA from CONFIG_IMX

2025-02-17 Thread Bernhard Beschow
Am 9. Februar 2025 10:36:04 UTC schrieb Bernhard Beschow : >TYPE_CHIPIDEA models an IP block which is also used in TYPE_ZYNQ_MACHINE which >itself is not an IMX device. CONFIG_ZYNQ selects CONFIG_USB_EHCI_SYSBUS while >TYPE_CHIPIDEA is a separate compilation unit, so only works by accident if >C

Re: [PATCH 0/2] Move Fuloong2e PCI IRQ mapping to board code

2025-02-17 Thread Bernhard Beschow
Am 16. Oktober 2023 09:05:00 UTC schrieb "Philippe Mathieu-Daudé" : >On 5/1/23 16:44, Bernhard Beschow wrote: > >> Bernhard Beschow (2): >>hw/pci-host/bonito: Inline pci_register_root_bus() >>hw/pci-host/bonito: Map PCI IRQs in board code > >Thanks, queued to mips-next. Ping. I think i

Re: [PATCH v2 03/18] hw/gpio/pca955*: Move Kconfig switches next to implementations

2025-02-17 Thread Bernhard Beschow
Am 17. Februar 2025 13:35:04 UTC schrieb Peter Maydell : >On Tue, 4 Feb 2025 at 09:21, Bernhard Beschow wrote: >> >> While at it and since they are user-creatable, build them when >> CONFIG_I2C_DEVICES is set. > >The patch subject says this is just a rearrangement >of the Kconfig stanzas with

Re: [PATCH v4] vfio: Add property documentation

2025-02-17 Thread Eric Auger
On 2/17/25 6:34 PM, Cédric Le Goater wrote: > Investigate the git history to uncover when and why the VFIO > properties were introduced and update the models. This is mostly > targeting vfio-pci device, since vfio-platform, vfio-ap and vfio-ccw > devices are simpler. > > Sort the properties bas

Re: [PATCH v9 0/3] TPM TIS SPI Support

2025-02-17 Thread Stefan Berger
On 2/16/25 5:11 PM, dan tan wrote: *** BLURB HERE *** Version 9 summary: 1/3 tpm/tpm_tis_spi: Support TPM for SPI - rebased with the master, and conform with the latest device property definition 3/3 tests/qtest/tpm: add unit test to tis-spi - remove unn

Re: [PATCH v4 0/9] vhost-user: Add SHMEM_MAP/UNMAP requests

2025-02-17 Thread David Hildenbrand
On 17.02.25 17:40, Albert Esteve wrote: Hi all, Hi, looks like our debugging session was successfu :) One question below. v3->v4 - Change mmap strategy to use RAM blocks and subregions. - Add new bitfield to qmp feature map - Followed most review comments from last iteration. - Merge

Re: [PATCH v3 051/162] tcg: Merge INDEX_op_remu_{i32,i64}

2025-02-17 Thread Richard Henderson
On 2/17/25 00:29, Philippe Mathieu-Daudé wrote: On 17/2/25 00:08, Richard Henderson wrote: Signed-off-by: Richard Henderson ---   include/tcg/tcg-opc.h    | 5 +   tcg/optimize.c   | 9 +   tcg/tcg-op.c | 8   tcg/tcg.c    | 6 ++   tcg/tci.c

Re: [PATCH v3 066/162] tcg: Merge INDEX_op_ctpop_{i32,i64}

2025-02-17 Thread Richard Henderson
On 2/17/25 00:01, Philippe Mathieu-Daudé wrote: On 17/2/25 00:08, Richard Henderson wrote: Signed-off-by: Richard Henderson ---   include/tcg/tcg-opc.h    |  3 +--   tcg/optimize.c   |  9 +++--   tcg/tcg-op.c | 21 ++---   tcg/tcg.c    |  6 ++-

Re: [PATCH v2 2/2] qcow2: don't allow discard-no-unref when discard is not enabled

2025-02-17 Thread Jean-Louis Dupond
On 7/10/24 15:00, Hanna Czenczek wrote: On 05.06.24 15:25, Jean-Louis Dupond wrote: When discard is not set to unmap/on, we should not allow setting discard-no-unref. Is this important?  Technically, it’s an incompatible change, and would require a deprecation warning first. No it doesn't

[PULL v2 24/27] target/sparc: Fix gdbstub incorrectly handling registers f32-f62

2025-02-17 Thread Richard Henderson
From: Mikael Szreder The gdbstub implementation for the Sparc architecture would incorrectly calculate the the floating point register offset. This resulted in, for example, registers f32 and f34 to point to the same value. The issue was caused by the confusion between even register numbers and

Re: [PATCH v3 043/162] tcg: Merge INDEX_op_divu_{i32,i64}

2025-02-17 Thread Richard Henderson
On 2/17/25 00:29, Philippe Mathieu-Daudé wrote: On 17/2/25 00:08, Richard Henderson wrote: Signed-off-by: Richard Henderson ---   include/tcg/tcg-opc.h    |  3 +--   tcg/optimize.c   |  9 +   tcg/tcg-op.c | 16   tcg/tcg.c    |  6 ++  

[PULL v2 26/27] tcg/i386: Use tcg_{high, unsigned}_cond in tcg_out_brcond2

2025-02-17 Thread Richard Henderson
Eliminate code repetition by using the appropriate helpers. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 65 +-- 1 file changed, 8 insertions(+), 57 deletions(-) diff --git a/tcg/i386/tcg-target.c.inc b

[PULL v2 02/27] tcg: Remove TCG_OVERSIZED_GUEST

2025-02-17 Thread Richard Henderson
This is now prohibited in configuration. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- include/qemu/atomic.h | 18 +++-- include/tcg/oversized-guest.h | 23 -- accel/tcg/cputlb.c | 7 --- accel/tcg/tcg-all.c

Re: [PATCH 5/5] accel/tcg: Move cpu_memory_rw_debug() user implementation to user-exec.c

2025-02-17 Thread Richard Henderson
On 2/17/25 05:06, Philippe Mathieu-Daudé wrote: cpu_memory_rw_debug() system implementation is defined in system/physmem.c. Move the user one to accel/tcg/user-exec.c to simplify cpu-target.c maintenance. Signed-off-by: Philippe Mathieu-Daudé --- accel/tcg/user-exec.c | 80

Re: [PATCH 4/5] accel/tcg: Avoid using lock_user() in cpu_memory_rw_debug()

2025-02-17 Thread Richard Henderson
On 2/17/25 05:06, Philippe Mathieu-Daudé wrote: We checked the page flags with page_get_flags(), so locking the page is superfluous. Remove the lock_user() calls and directly use g2h() in place. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- cpu-target.c | 17 ++-

Re: [PATCH 3/5] accel/tcg: Take mmap lock in the whole cpu_memory_rw_debug() function

2025-02-17 Thread Richard Henderson
On 2/17/25 05:06, Philippe Mathieu-Daudé wrote: Simplify user implementation of cpu_memory_rw_debug() by taking the mmap lock globally. See commit 87ab2704296 ("linux-user: Allow gdbstub to ignore page protection") for why this lock is necessary. Suggested-by: Richard Henderson Signed-off-by: P

[PULL v2 10/27] plugins: Fix qemu_plugin_read_memory_vaddr parameters

2025-02-17 Thread Richard Henderson
The declaration uses uint64_t for addr. Fixes: 595cd9ce2ec ("plugins: add plugin API to read guest memory") Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- plugins/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/api.c b/plugins/api.c in

Re: [PATCH 2/5] accel/tcg: Include missing bswap headers in user-exec.c

2025-02-17 Thread Richard Henderson
On 2/17/25 05:06, Philippe Mathieu-Daudé wrote: Commit 35c653c4029 ("tcg: Add 128-bit guest memory primitives") introduced the use of bswap128() which is declared in "qemu/int128.h", commit de95016dfbf ("accel/tcg: Implement helper_{ld,st}*_mmu for user-only") introduced the other bswap*() uses,

[PULL v2 16/27] tcg/aarch64: Use 'z' constraint

2025-02-17 Thread Richard Henderson
Note that 'Z' is still used for addsub2. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target-con-set.h | 12 - tcg/aarch64/tcg-target.c.inc | 46 ++-- 2 files changed, 26 insertions(+), 32 deletions(-) diff --git a/tcg/aarch64/tcg-target-con-set.h

[PULL v2.5 00/27] tcg patch queue

2025-02-17 Thread Richard Henderson
v2: Fix target/loongarch printf formats for vaddr Include two more reviewed patches. This time with actual pull urls. :-/ r~ The following changes since commit db7aa99ef894e88fc5eedf02ca2579b8c344b2ec: Merge tag 'hw-misc-20250216' of https://github.com/philmd/qemu into staging (2025-02

[PULL v2 13/27] include/exec: Change vaddr to uintptr_t

2025-02-17 Thread Richard Henderson
Since we no longer support 64-bit guests on 32-bit hosts, we can use a 32-bit type on a 32-bit host. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/exec/vaddr.h | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/include/exec/va

[PULL v2 03/27] tcg: Drop support for two address registers in gen_ldst

2025-02-17 Thread Richard Henderson
Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tcg-op-ldst.c | 21 +++-- tcg/tcg.c | 4 +--- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/tcg/tcg-op-ldst.c b/tcg/tcg-op-ldst.c index 77271e0193..7ba9a3ef7e 100644 --- a/tcg/

[PULL v2 25/27] target/sparc: fake UltraSPARC T1 PCR and PIC registers

2025-02-17 Thread Richard Henderson
From: Artyom Tarasenko Fake access to PCR Performance Control Register and PIC Performance Instrumentation Counter. Ignore writes in privileged mode, and return 0 on reads. This allows booting Tribblix, MilaX and v9os under Niagara target. Signed-off-by: Artyom Tarasenko Reviewed-by: Ri

[PULL v2 27/27] tcg: Remove TCG_TARGET_HAS_{br, set}cond2 from riscv and loongarch64

2025-02-17 Thread Richard Henderson
These defines never should have been added as they were never used. Only 32-bit hosts may have these opcodes and they have them unconditionally. Fixes: 6cb14e4de29 ("tcg/loongarch64: Add the tcg-target.h file") Fixes: fb1f70f3685 ("tcg/riscv: Add the tcg-target.h file") Acked-by: Alistair Francis

[PULL v2 20/27] tcg/sparc64: Use 'z' constraint

2025-02-17 Thread Richard Henderson
Replace target-specific 'Z' with generic 'z'. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/sparc64/tcg-target-con-set.h | 12 ++-- tcg/sparc64/tcg-target-con-str.h | 1 - tcg/sparc64/tcg-target.c.inc | 17 +++-- 3 files changed, 13 insert

[PULL v2 00/27] tcg patch queue

2025-02-17 Thread Richard Henderson
v2: Fix target/loongarch printf formats for vaddr Include two more reviewed patches. r~

[PULL v2 12/27] target/loongarch: Use VADDR_PRIx for logging pc_next

2025-02-17 Thread Richard Henderson
DisasContextBase.pc_next has type vaddr; use the correct log format. Signed-off-by: Richard Henderson --- target/loongarch/tcg/translate.c | 2 +- target/loongarch/tcg/insn_trans/trans_atomic.c.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/lo

[PULL v2 23/27] target/sparc: Fix register selection for all F*TOx and FxTO* instructions

2025-02-17 Thread Richard Henderson
From: Mikael Szreder A bug was introduced in commit 0bba7572d40d which causes the fdtox and fqtox instructions to incorrectly select the destination registers. More information and a test program can be found in issue #2802. Cc: qemu-sta...@nongnu.org Fixes: 0bba7572d40d ("target/sparc: Perform

[PULL v2 05/27] tcg/arm: Drop addrhi from prepare_host_addr

2025-02-17 Thread Richard Henderson
The guest address will now always be TCG_TYPE_I32. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c.inc | 73 +--- 1 file changed, 23 insertions(+), 50 deletions(-) diff --git a/tcg/arm/tcg-target.c.inc b/tcg/arm/

[PULL v2 06/27] tcg/i386: Drop addrhi from prepare_host_addr

2025-02-17 Thread Richard Henderson
The guest address will now always fit in one register. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.c.inc | 56 ++- 1 file changed, 20 insertions(+), 36 deletions(-) diff --git a/tcg/i386/tcg-target.c.inc b/tcg

[PULL v2 09/27] tcg: Replace addr{lo, hi}_reg with addr_reg in TCGLabelQemuLdst

2025-02-17 Thread Richard Henderson
There is now always only one guest address register. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/tcg.c| 18 +- tcg/aarch64/tcg-target.c.inc | 4 ++-- tcg/arm/tcg-target.c.inc | 4 ++-- tcg/i386/tcg-target.c.i

[PULL v2 21/27] elfload: Fix alignment when unmapping excess reservation

2025-02-17 Thread Richard Henderson
From: Fabiano Rosas When complying with the alignment requested in the ELF and unmapping the excess reservation, having align_end not aligned to the guest page causes the unmap to be rejected by the alignment check at target_munmap and later brk adjustments hit an EEXIST. Fix by aligning the sta

[PULL v2 11/27] accel/tcg: Fix tlb_set_page_with_attrs, tlb_set_page

2025-02-17 Thread Richard Henderson
The declarations use vaddr for size. Signed-off-by: Richard Henderson --- accel/tcg/cputlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index 17e2251695..75d075d044 100644 --- a/accel/tcg/cputlb.c +++ b/accel/tcg/cputlb.c @@ -1

[PULL v2 07/27] tcg/mips: Drop addrhi from prepare_host_addr

2025-02-17 Thread Richard Henderson
The guest address will now always fit in one register. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c.inc | 62 ++- 1 file changed, 22 insertions(+), 40 deletions(-) diff --git a/tcg/mips/tcg-target.c.inc b/tcg

  1   2   3   4   >