Re: [PATCH] i386/cpu: Cleanup host_cpu_max_instance_init()

2025-07-15 Thread Philippe Mathieu-Daudé
On 16/7/25 08:31, Xiaoyao Li wrote: The implementation of host_cpu_max_instance_init() was merged into host_cpu_instance_init() by commit 29f1ba338baf ("target/i386: merge host_cpu_instance_init() and host_cpu_max_instance_init()"), while the declaration of it remains in host-cpu.h. Clean it up.

[PATCH] i386/cpu: Cleanup host_cpu_max_instance_init()

2025-07-15 Thread Xiaoyao Li
The implementation of host_cpu_max_instance_init() was merged into host_cpu_instance_init() by commit 29f1ba338baf ("target/i386: merge host_cpu_instance_init() and host_cpu_max_instance_init()"), while the declaration of it remains in host-cpu.h. Clean it up. Signed-off-by: Xiaoyao Li --- targ

Re: [PATCH-for-10.1] system/runstate: Document qemu_add_vm_change_state_handler_prio* in hdr

2025-07-15 Thread Xiaoyao Li
On 7/16/2025 1:19 AM, Philippe Mathieu-Daudé wrote: Generally APIs to the rest of QEMU should be documented in the headers. Comments on individual functions or internal details are fine to live in the C files. Make qemu_add_vm_change_state_handler_prio[_full]() docstrings consistent by moving the

Re: [PATCH v2 2/2] target/i386: Add TSA feature flag verw-clear

2025-07-15 Thread Xiaoyao Li
On 7/11/2025 3:46 AM, Babu Moger wrote: Transient Scheduler Attacks (TSA) are new speculative side channel attacks related to the execution timing of instructions under specific microarchitectural conditions. In some cases, an attacker may be able to use this timing information to infer data from

Re: [PATCH v2 1/2] target/i386: Add TSA attack variants TSA-SQ and TSA-L1

2025-07-15 Thread Xiaoyao Li
On 7/11/2025 3:46 AM, Babu Moger wrote: Transient Scheduler Attacks (TSA) are new speculative side channel attacks related to the execution timing of instructions under specific microarchitectural conditions. In some cases, an attacker may be able to use this timing information to infer data from

RE: [RFC PATCH v3 06/15] hw/arm/smmuv3-accel: Restrict accelerated SMMUv3 to vfio-pci endpoints with iommufd

2025-07-15 Thread Duan, Zhenzhong
>-Original Message- >From: Nicolin Chen >Subject: Re: [RFC PATCH v3 06/15] hw/arm/smmuv3-accel: Restrict >accelerated SMMUv3 to vfio-pci endpoints with iommufd > >On Tue, Jul 15, 2025 at 10:53:50AM +, Duan, Zhenzhong wrote: >> >> >> >-Original Message- >> >From: Shameer Kolo

Re: [PATCH v10 (RESEND) 00/20] Change ghes to use HEST-based offsets and add support for error inject

2025-07-15 Thread Mauro Carvalho Chehab
Em Tue, 15 Jul 2025 13:36:26 -0400 "Michael S. Tsirkin" escreveu: > On Thu, Jun 12, 2025 at 05:17:24PM +0200, Mauro Carvalho Chehab wrote: > > Hi Michael, > > > > This is v10 of the patch series, rebased to apply after release > > 10.0. The only difference against v9 is a minor confict resolutio

[PATCH] tests/functional: add --debug CLI arg

2025-07-15 Thread Manos Pitsidianakis
Add argument parsing to functional tests to improve developer experience when running individual tests. All logs are printed to stdout interspersed with TAP output. ./pyvenv/bin/python3 ../tests/functional/test_aarch64_virt.py --help usage: test_aarch64_virt [-h] [-d] QEMU Functional test

Re: [PATCH v8 0/4] target/arm: Add FEAT_MEC to max cpu

2025-07-15 Thread Pierrick Bouvier
On 7/15/25 8:13 PM, Gustavo Romero wrote: Hi Pierrick, On 7/14/25 22:26, Pierrick Bouvier wrote: On 7/14/25 4:31 PM, Gustavo Romero wrote: Hi folks, Richard, thanks for v8. Pierrick, thanks for testing it. :) On 7/14/25 14:09, Pierrick Bouvier wrote: On 7/14/25 8:58 AM, Richard Henderson wr

Re: [PATCH 2/2] tests/functional/test_aarch64_rme: update image

2025-07-15 Thread Manos Pitsidianakis
On Wed, Jul 16, 2025 at 12:25 AM Pierrick Bouvier wrote: > > TF-A needs to be patched to enable support for FEAT_TCR2 and > FEAT_SCTLR2. This new image contains updated firmware. > > Signed-off-by: Pierrick Bouvier > --- > tests/functional/test_aarch64_rme_sbsaref.py | 9 + > tests/funct

[PATCH 4/6] contrib/plugins/uftrace: add timestamp-based-on-real-time option

2025-07-15 Thread Pierrick Bouvier
usage: timestamp-based-on-real-time=[on|off] Instead of using number of instructions executed (which is per vcpu), we use the wall time for timestamps. This is useful when tracing user mode programs as well. Signed-off-by: Pierrick Bouvier --- contrib/plugins/uftrace.c | 27

[PATCH 3/6] contrib/plugins/uftrace: add trace-privilege-level option

2025-07-15 Thread Pierrick Bouvier
usage: trace-privilege-level=[on|off] This option generates different traces (represented as different processes in uftrace), allowing to follow privilege level changes. For aarch64, we track current EL and Security State. As well, we make sure that sampling works correctly with this option. If

[PATCH 6/6] contrib/plugins/uftrace: add documentation

2025-07-15 Thread Pierrick Bouvier
This documentation summarizes how to use the plugin, and present two examples of the possibilities offered by it. As well, it explains how to rebuild and reproduce easily the system boot example. Signed-off-by: Pierrick Bouvier --- docs/about/emulation.rst | 184 +++

[PATCH 5/6] contrib/plugins/uftrace_symbols.py

2025-07-15 Thread Pierrick Bouvier
usage: contrib/plugins/uftrace_symbols.py \ --prefix-symbols \ arm-trusted-firmware/build/qemu/debug/bl1/bl1.elf \ arm-trusted-firmware/build/qemu/debug/bl2/bl2.elf \ arm-trusted-firmware/build/qemu/debug/bl31/bl31.elf \ u-boot/u-boot:0x6000 \ u-

[PATCH 1/6] contrib/plugins/uftrace: new uftrace plugin

2025-07-15 Thread Pierrick Bouvier
This plugin generates a binary trace compatible with: https://github.com/namhyung/uftrace It tracks frame pointer during execution, detecting function calls/returns and works in system and user mode. It's implemented for aarch64 only (adding other architecture should be trivial, especially x86_64

[PATCH 0/6] contrib/plugins: uftrace

2025-07-15 Thread Pierrick Bouvier
This plugin generates a binary trace compatible with the excellent uftrace: https://github.com/namhyung/uftrace In short, it tracks all function calls performed during execution, based on frame pointer analysis. A big advantage over "uftrace record" is that it works in system mode, allowing to tra

[PATCH 2/6] contrib/plugins/uftrace: add trace-sample option

2025-07-15 Thread Pierrick Bouvier
usage: trace-sample=N Allow to use sampling (every N instructions) for tracking the stack. We implement a fast mode, where instrumentation is only per tb, and simply dump current stack, and unwind new one, instead of tracking every frame pointer change. Signed-off-by: Pierrick Bouvier --- contr

Re: [PATCH 0/2] docs, python: bump sphinx preferred version

2025-07-15 Thread Thomas Huth
On 16/07/2025 00.20, John Snow wrote: fwiw, I think this is important enough / harmless enough to sneak into the rc releases, if possible. Yes, sounds like a good idea to avoid breakage with the latest Python versions. Series Reviewed-by: Thomas Huth On Tue, Jul 15, 2025 at 5:28 PM John Sn

Re: [PULL 00/13] Net patches

2025-07-15 Thread Philippe Mathieu-Daudé
On 16/7/25 04:21, Jason Wang wrote: Hi Stefan: On Wed, Jul 16, 2025 at 3:55 AM Stefan Hajnoczi wrote: Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. I sent a V2 of the PULL: https://mail.gnu.org/archive/html/qemu-devel/2

Re: [PATCH v2 2/2] target/i386: Add TSA feature flag verw-clear

2025-07-15 Thread Zhao Liu
On Thu, Jul 10, 2025 at 02:46:11PM -0500, Babu Moger wrote: > Date: Thu, 10 Jul 2025 14:46:11 -0500 > From: Babu Moger > Subject: [PATCH v2 2/2] target/i386: Add TSA feature flag verw-clear > X-Mailer: git-send-email 2.34.1 > > Transient Scheduler Attacks (TSA) are new speculative side channel at

Re: [PATCH v2 1/2] target/i386: Add TSA attack variants TSA-SQ and TSA-L1

2025-07-15 Thread Zhao Liu
On Thu, Jul 10, 2025 at 02:46:10PM -0500, Babu Moger wrote: > Date: Thu, 10 Jul 2025 14:46:10 -0500 > From: Babu Moger > Subject: [PATCH v2 1/2] target/i386: Add TSA attack variants TSA-SQ and > TSA-L1 > X-Mailer: git-send-email 2.34.1 > > Transient Scheduler Attacks (TSA) are new speculative si

Re: [PATCH v2] intel_iommu: Allow both Status Write and Interrupt Flag in QI wait

2025-07-15 Thread Konstantin Belousov
On Wed, Jul 16, 2025 at 12:01:44PM +0800, Yi Liu wrote: > On 2025/7/15 20:27, CLEMENT MATHIEU--DRIF wrote: > > > > > > On 15/07/2025 10:27 am, David Woodhouse wrote: > > > On Tue, 2025-07-15 at 06:11 +, CLEMENT MATHIEU--DRIF wrote: > > > > > > > > > > > > On 14/07/2025 11:22 pm, Konstantin

Re: [PATCH v2] intel_iommu: Allow both Status Write and Interrupt Flag in QI wait

2025-07-15 Thread Yi Liu
On 2025/7/15 20:27, CLEMENT MATHIEU--DRIF wrote: On 15/07/2025 10:27 am, David Woodhouse wrote: On Tue, 2025-07-15 at 06:11 +, CLEMENT MATHIEU--DRIF wrote: On 14/07/2025 11:22 pm, Konstantin Belousov wrote: On Mon, Jul 14, 2025 at 05:41:22PM +0100, David Woodhouse wrote: On 14 July 2

RE: [RFC PATCH v3 05/15] hw/arm/smmuv3-accel: Introduce smmuv3 accel device

2025-07-15 Thread Duan, Zhenzhong
>-Original Message- >From: Nicolin Chen >Subject: Re: [RFC PATCH v3 05/15] hw/arm/smmuv3-accel: Introduce >smmuv3 accel device > >On Tue, Jul 15, 2025 at 10:48:31AM +, Duan, Zhenzhong wrote: >> >+static const TypeInfo types[] = { >> >+{ >> >+.name = TYPE_ARM_SMMUV3_ACCEL

Re: [PATCH] system/qdev: Remove pointless NULL check in qdev_device_add_from_qdict

2025-07-15 Thread Philippe Mathieu-Daudé
On 10/7/25 16:48, Peter Maydell wrote: On Mon, 10 Feb 2025 at 12:10, Philippe Mathieu-Daudé wrote: Coverity reported a unnecessary NULL check: qemu/system/qdev-monitor.c: 720 in qdev_device_add_from_qdict() 683 /* create device */ 684 dev = qdev_new(driver); ... 719

RE: [PATCH v3 05/20] hw/pci: Export pci_device_get_iommu_bus_devfn() and return bool

2025-07-15 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Subject: Re: [PATCH v3 05/20] hw/pci: Export >pci_device_get_iommu_bus_devfn() and return bool > > > >On 7/8/25 1:05 PM, Zhenzhong Duan wrote: >> Returns true if PCI device is aliased or false otherwise. This will be >> used in following pat

Re: [PATCH v8 0/4] target/arm: Add FEAT_MEC to max cpu

2025-07-15 Thread Gustavo Romero
Hi Pierrick, On 7/14/25 22:26, Pierrick Bouvier wrote: On 7/14/25 4:31 PM, Gustavo Romero wrote: Hi folks, Richard, thanks for v8. Pierrick, thanks for testing it. :) On 7/14/25 14:09, Pierrick Bouvier wrote: On 7/14/25 8:58 AM, Richard Henderson wrote: Changes for v8:     - Re-order SCTLR2

Re: [RFC PATCH v3 14/15] Read and validate host SMMUv3 feature bits

2025-07-15 Thread Nicolin Chen via
On Mon, Jul 14, 2025 at 04:59:40PM +0100, Shameer Kolothum wrote: > From: Nicolin Chen > > Not all fields in the SMMU IDR registers are meaningful for userspace. > Only the following fields can be used: > >   - IDR0: ST_LEVEL, TERM_MODEL, STALL_MODEL, TTENDIAN, CD2L, ASID16, TTF   >   - IDR1: SI

Re: [PATCH] net/tap: drop too small packets

2025-07-15 Thread Jason Wang
On Tue, Jul 15, 2025 at 10:59 PM Vladimir Sementsov-Ogievskiy wrote: > > On 14.07.25 05:12, Jason Wang wrote: > > On Wed, Jul 9, 2025 at 10:43 PM Vladimir Sementsov-Ogievskiy > > wrote: > >> > >> On 07.07.25 06:49, Jason Wang wrote: > >>> On Thu, Jul 3, 2025 at 10:59 PM Daniil Tatianin > >>> wro

Re: [PULL 00/13] Net patches

2025-07-15 Thread Jason Wang
Hi Stefan: On Wed, Jul 16, 2025 at 3:55 AM Stefan Hajnoczi wrote: > > Applied, thanks. > > Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any > user-visible changes. I sent a V2 of the PULL: https://mail.gnu.org/archive/html/qemu-devel/2025-07/msg03794.html That inclu

Re: [PATCH v1] hw/pci-host/designware: Support 64Bit resource for DesignwarePCIEHost

2025-07-15 Thread zhangzhijie
在 2025/7/15 16:57, Peter Maydell 写道: On Tue, 15 Jul 2025 at 08:33, zhangzhijie wrote: 0. DW pcie support 64bit resource 1. DW version type using Linux kernel Signed-off-by: zhangzhijie --- hw/pci-host/designware.c | 12 +--- include/hw/pci-host/designware.h | 2 +- 2

[PATCH] hw/misc/max78000_aes: Comment Internal Key Storage

2025-07-15 Thread Jackson Donaldson
Coverity Scan noted an unusual pattern in the MAX78000 aes device, with duplicated calls to set_decrypt. This commit adds a comment noting why the implementation is correct. Signed-off-by: Jackson Donaldson --- hw/misc/max78000_aes.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/hw/m

Re: [RFC PATCH v3 09/15] hw/arm/smmuv3-accel: Support nested STE install/uninstall support

2025-07-15 Thread Nicolin Chen
On Mon, Jul 14, 2025 at 04:59:35PM +0100, Shameer Kolothum wrote: > +static void > +smmuv3_accel_ste_range(gpointer key, gpointer value, gpointer user_data) > +{ > +SMMUDevice *sdev = (SMMUDevice *)key; > +uint32_t sid = smmu_get_sid(sdev); > +SMMUSIDRange *sid_range = (SMMUSIDRange *)u

Re: [PATCH v10 (RESEND) 00/20] Change ghes to use HEST-based offsets and add support for error inject

2025-07-15 Thread Michael S. Tsirkin
On Thu, Jun 12, 2025 at 05:17:24PM +0200, Mauro Carvalho Chehab wrote: > Hi Michael, > > This is v10 of the patch series, rebased to apply after release > 10.0. The only difference against v9 is a minor confict resolution. Unfortunately, this needs a rebase on top of latest PCIHP changes in my tr

Re: [PATCH] python: fix editable installs for modern pip/setuptools

2025-07-15 Thread John Snow
On Tue, Jul 15, 2025, 6:27 PM John Snow wrote: > The way editable installs work has changed at some point since Fedora 40 > was released. Generally, we should be opting to use pyproject.toml > installs (PEP517/518) - but those are not fully supported until v61 of > setuptools, and CentOS Stream 9

Re: [PATCH v2 1/2] target/i386: Add TSA attack variants TSA-SQ and TSA-L1

2025-07-15 Thread Moger, Babu
Hi Paolo, Can these two patches be included in the QEMU 10.1 release? We are only adding bit definitions and not updating the CPU models, so the risk should be very low. thanks Babu On 7/10/2025 2:46 PM, Babu Moger wrote: Transient Scheduler Attacks (TSA) are new speculative side channel at

[PATCH] python: fix editable installs for modern pip/setuptools

2025-07-15 Thread John Snow
The way editable installs work has changed at some point since Fedora 40 was released. Generally, we should be opting to use pyproject.toml installs (PEP517/518) - but those are not fully supported until v61 of setuptools, and CentOS Stream 9 ships v53. Until that time, we can make use of a transi

Re: [PATCH 3/4] hw/net/npcm_gmac.c: Correct test for when to reallocate packet buffer

2025-07-15 Thread Hao Wu
Thank you for catching that! On Mon, Jul 14, 2025 at 1:08 PM Philippe Mathieu-Daudé wrote: > On 14/7/25 18:55, Peter Maydell wrote: > > In gmac_try_send_next_packet() we have code that does "if this block > > of data won't fit in the buffer, reallocate it". However, the > > condition it uses is

Re: [PATCH 0/2] docs, python: bump sphinx preferred version

2025-07-15 Thread John Snow
fwiw, I think this is important enough / harmless enough to sneak into the rc releases, if possible. On Tue, Jul 15, 2025 at 5:28 PM John Snow wrote: > > CI: https://gitlab.com/jsnow/qemu/-/pipelines/1928836481 > > Unlike the previous series, this series only adjusts the *preferred* > sphinx vers

Re: [PATCH 1/2] tests/functional/test_aarch64_device_passthrough: update image

2025-07-15 Thread Manos Pitsidianakis
On Wed, Jul 16, 2025 at 12:25 AM Pierrick Bouvier wrote: > > TF-A needs to be patched to enable support for FEAT_TCR2 and > FEAT_SCTLR2. This new image contains updated firmware. > > Signed-off-by: Pierrick Bouvier > --- > tests/functional/test_aarch64_device_passthrough.py | 9 + > 1 fi

Re: [PATCH v4 19/28] pc-bios/s390-ccw: Refactor zipl_load_segment function

2025-07-15 Thread Collin Walling
[...] >>> @@ -662,6 +661,9 @@ static int zipl_load_segment(ComponentEntry *entry) >>> */ >>> break; >>> } >>> + >>> +comp_len += bprs->size * (bprs[i].blockct + 1); >>> + >> >> I'm confused by the arithmetic here. Why is size multiplied

[PATCH] target/i386: fix x86_64 pushw op

2025-07-15 Thread Thomas Ogrisegg
For x86_64 a 16 bit push op (pushw) of a memory address would generate a 64 bit store on the stack instead of a 16 bit store. For example: pushw (%rax) behaves like pushq (%rax) which is incorrect. This patch fixes that. Signed-off-by: Thomas Ogrisegg --- target/i386/tcg/deco

[PATCH 2/2] MAINTAINERS: Add docs/requirements.txt

2025-07-15 Thread John Snow
From: Akihiko Odaki Add docs/requirements.txt to "Sphinx documentation configuration and build machinery". Signed-off-by: Akihiko Odaki Signed-off-by: John Snow --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index e88ed2c0a97..809cd1aa53c 100644

Re: [PATCH v8 0/4] target/arm: Add FEAT_MEC to max cpu

2025-07-15 Thread Pierrick Bouvier
On 7/14/25 10:09 AM, Pierrick Bouvier wrote: On 7/14/25 8:58 AM, Richard Henderson wrote: Changes for v8: - Re-order SCTLR2 and TCR2 so that they are independent of MEC. - Enable the SCTLR2 and TCR2 enable bits. - Squash 3 smaller MEC patches together. This still fails the RME tests

[PATCH 0/2] docs, python: bump sphinx preferred version

2025-07-15 Thread John Snow
CI: https://gitlab.com/jsnow/qemu/-/pipelines/1928836481 Unlike the previous series, this series only adjusts the *preferred* sphinx version to be higher, leaving the accepted version at 3.4.3, the version that CentOS Stream 9 still ships with. Unfortunately, this means we can't cut out the compa

[PATCH 1/2] docs: Bump sphinx to 6.2.1

2025-07-15 Thread John Snow
From: Akihiko Odaki sphinx 5.3.0 fails with Python 3.13.1: ../docs/meson.build:37: WARNING: /home/me/qemu/build/pyvenv/bin/sphinx-build: Extension error: Could not import extension sphinx.builders.epub3 (exception: No module named 'imghdr') ../docs/meson.build:39:6: ERROR: Problem encountered:

[PATCH 2/2] tests/functional/test_aarch64_rme: update image

2025-07-15 Thread Pierrick Bouvier
TF-A needs to be patched to enable support for FEAT_TCR2 and FEAT_SCTLR2. This new image contains updated firmware. Signed-off-by: Pierrick Bouvier --- tests/functional/test_aarch64_rme_sbsaref.py | 9 + tests/functional/test_aarch64_rme_virt.py| 9 + 2 files changed, 10 inse

[PATCH 1/2] tests/functional/test_aarch64_device_passthrough: update image

2025-07-15 Thread Pierrick Bouvier
TF-A needs to be patched to enable support for FEAT_TCR2 and FEAT_SCTLR2. This new image contains updated firmware. Signed-off-by: Pierrick Bouvier --- tests/functional/test_aarch64_device_passthrough.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/functiona

[PATCH 0/2] aarch64: update test images with new trusted firmware

2025-07-15 Thread Pierrick Bouvier
The FEAT_MEC series [1] introduces FEAT_TCR2 and FEAT_SCTLR2. TF-A needs to be aware of that change to allow accesses to those registers, and thus must be patched [2] to enable this for QEMU platforms. Concerned test images need to be updated to allow them to boot. [1] https://lore.kernel.org/qe

Re: [PATCH] target/arm: Provide always-false kvm_arm_*_supported() stubs for usermode

2025-07-15 Thread Pierrick Bouvier
On 7/14/25 10:38 AM, Pierrick Bouvier wrote: On 7/14/25 8:52 AM, Richard Henderson wrote: On 7/14/25 09:41, Pierrick Bouvier wrote: Indeed, clang does not fold the condition "value && kvm_enabled() && ! kvm_arm_sve_supported()". Looks like a missing case. This code compiles with gcc -O0, but no

Re: [PULL 0/6] Trivial patches for 2025-07-13

2025-07-15 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. signature.asc Description: PGP signature

[PULL 08/17] accel: Extract AccelClass definition to 'accel/accel-ops.h'

2025-07-15 Thread Philippe Mathieu-Daudé
Only accelerator implementations (and the common accelator code) need to know about AccelClass internals. Move the definition out but forward declare AccelState and AccelClass. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Zhao Liu Reviewed-by: Richard Henderson Message-Id: <20250703173248

[PULL 04/17] qapi/machine: Add @qom-type field to CpuInfoFast structure

2025-07-15 Thread Philippe Mathieu-Daudé
Knowing the QOM type name of a CPU can be useful, in particular to infer its model name. Reviewed-by: Richard Henderson Reviewed-by: Zhao Liu Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Xiaoyao Li Message-Id: <20250715090624.52377-2-phi...@linaro.org> --- qapi/machine.json | 3

[PULL 17/17] system/runstate: Document qemu_add_vm_change_state_handler_prio* in hdr

2025-07-15 Thread Philippe Mathieu-Daudé
Generally APIs to the rest of QEMU should be documented in the headers. Comments on individual functions or internal details are fine to live in the C files. Make qemu_add_vm_change_state_handler_prio[_full]() docstrings consistent by moving them from source to header. Suggested-by: Xiaoyao Li Si

[PULL 16/17] system/runstate: Document qemu_add_vm_change_state_handler()

2025-07-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Alex Bennée Reviewed-by: Zhao Liu Message-Id: <20250703173248.44995-4-phi...@linaro.org> --- include/system/runstate.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/system/runstate.h b/i

[PULL 00/17] Accelerators patches for 2025-07-15

2025-07-15 Thread Philippe Mathieu-Daudé
The following changes since commit 9a4e273ddec3927920c5958d2226c6b38b543336: Merge tag 'pull-tcg-20250711' of https://gitlab.com/rth7680/qemu into staging (2025-07-13 01:46:04 -0400) are available in the Git repository at: https://github.com/philmd/qemu.git tags/accel-20250715

[PULL 15/17] accel/hvf: Implement AccelClass::get_vcpu_stats() handler

2025-07-15 Thread Philippe Mathieu-Daudé
Co-developed-by: Mads Ynddal Signed-off-by: Mads Ynddal Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250715104015.72663-8-phi...@linaro.org> --- accel/hvf/hvf-accel-ops.c | 25 + 1 file changed, 25 insertions(+) diff --git a/accel

[PULL 11/17] accel/system: Introduce @x-accel-stats QMP command

2025-07-15 Thread Philippe Mathieu-Daudé
Unstable QMP 'x-accel-stats' dispatches to the AccelOpsClass::get_stats() and get_vcpu_stats() handlers. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Markus Armbruster Reviewed-by: Zhao Liu Message-Id: <20250715140048.84942-4-phi...@linaro.org> --- qapi/acc

[PULL 10/17] accel/tcg: Extract statistic related code to tcg-stats.c

2025-07-15 Thread Philippe Mathieu-Daudé
Statistic code is not specific to system emulation (except cross-page checks) and can be used to analyze user-mode binaries. Extract statistic related code to its own file: tcg-stats.c, keeping the original LGPL-2.1-or-later license tag. Note, this code is not yet reachable by user-mode. Signed-of

[PULL 07/17] accel: Rename 'system/accel-ops.h' -> 'accel/accel-cpu-ops.h'

2025-07-15 Thread Philippe Mathieu-Daudé
Unfortunately "system/accel-ops.h" handlers are not only system-specific. For example, the cpu_reset_hold() hook is part of the vCPU creation, after it is realized. Mechanical rename to drop 'system' using: $ sed -i -e s_system/accel-ops.h_accel/accel-cpu-ops.h_g \ $(git grep -l s

[PULL 05/17] hw/core/machine: Display CPU model name in 'info cpus' command

2025-07-15 Thread Philippe Mathieu-Daudé
Display the CPU model in 'info cpus'. Example before: $ qemu-system-aarch64 -M xlnx-versal-virt -S -monitor stdio QEMU 10.0.0 monitor - type 'help' for more information (qemu) info cpus * CPU #0: thread_id=42924 CPU #1: thread_id=42924 CPU #2: thread_id=42924 CPU #3: thread_id=42924

[PULL 03/17] qapi/accel: Move definitions related to accelerators in their own file

2025-07-15 Thread Philippe Mathieu-Daudé
Extract KVM definitions from machine.json to accelerator.json. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Zhao Liu Message-Id: <20250703105540.67664-29-phi...@linaro.org> --- MAINTAINERS| 1 + qapi/accelerator.json | 39 ++

Re: [PULL 0/8] maintainer updates for rc0 (gitlab, gdbstub, plugins, docs)

2025-07-15 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. signature.asc Description: PGP signature

Re: [PULL 00/77] Rust, target/i386 changes for QEMU 10.1 soft freeze

2025-07-15 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. signature.asc Description: PGP signature

Re: [PULL 00/13] Net patches

2025-07-15 Thread Stefan Hajnoczi
Applied, thanks. Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes. signature.asc Description: PGP signature

[PULL 12/17] accel/system: Add 'info accel' on human monitor

2025-07-15 Thread Philippe Mathieu-Daudé
'info accel' dispatches to the AccelOpsClass::get_stats() and get_vcpu_stats() handlers. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Reviewed-by: Pierrick Bouvier Message-Id: <20250715140048.84942-5-phi...@linaro.org> --- accel/accel-system.c | 8 hmp-commands-i

[PULL 13/17] accel/tcg: Propagate AccelState to dump_accel_info()

2025-07-15 Thread Philippe Mathieu-Daudé
Declare tcg_dump_stats() in "tcg/tcg.h" so it can be used out of accel/tcg/, like by {bsd,linux}-user. Next commit will register the TCG AccelClass::get_stats handler, which expects a AccelState, so propagate it to dump_accel_info(). Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderso

[PULL 14/17] accel/tcg: Implement AccelClass::get_stats() handler

2025-07-15 Thread Philippe Mathieu-Daudé
Factor tcg_get_stats() out of tcg_dump_stats(), passing the current accelerator argument to match the AccelClass::get_stats() prototype. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250715140048.84942-7-phi...@linaro.org> --- accel/tcg/internal-common.h |

[PULL 09/17] Revert "accel/tcg: Unregister the RCU before exiting RR thread"

2025-07-15 Thread Philippe Mathieu-Daudé
This reverts commit bc93332fe460211c2d2f4ff50e1a0e030c7b5159, which was merged prematurely, re-introducing Coverity CID 1547782 (unreachable code). Reported-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Reviewed-by: Richard Henderson Message-Id: <2025

[PULL 01/17] hw/xen/arch_hvm: Unify x86 and ARM variants

2025-07-15 Thread Philippe Mathieu-Daudé
As each target declares the same prototypes, we can use a single header, removing the TARGET_XXX uses. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Stefano Stabellini Message-Id: <20250513171737.74386-1-phi...@linaro.org> --- include/hw/arm/xen_arch_hvm.h |

[PULL 02/17] hw/arm/xen-pvh: Remove unnecessary 'hw/xen/arch_hvm.h' header

2025-07-15 Thread Philippe Mathieu-Daudé
"hw/xen/arch_hvm.h" only declares the arch_handle_ioreq() and arch_xen_set_memory() prototypes, which are not used by xen-pvh.c. Remove the unnecessary header inclusion. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Xiaoyao Li Reviewed-by: Manos Pitsidianakis Message-Id: <20250715071528.46

[PULL 06/17] accel/tcg: Do not dump NaN statistics

2025-07-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Manos Pitsidianakis Message-Id: <20250710111303.8917-1-phi...@linaro.org> --- accel/tcg/monitor.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/accel/tcg/monitor.c b/accel/tcg/monitor.c index e7ed728

Re: [PATCH-for-10.1 v6 0/8] accel/system: Add 'info accel' on human monitor

2025-07-15 Thread Philippe Mathieu-Daudé
On 15/7/25 16:00, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (8): Revert "accel/tcg: Unregister the RCU before exiting RR thread" accel/tcg: Extract statistic related code to tcg-stats.c accel/system: Introduce @x-accel-stats QMP command accel/system: Add 'info accel' on hu

Re: [PATCH-for-10.1] system/runstate: Document qemu_add_vm_change_state_handler_prio* in hdr

2025-07-15 Thread Philippe Mathieu-Daudé
On 15/7/25 19:19, Philippe Mathieu-Daudé wrote: Generally APIs to the rest of QEMU should be documented in the headers. Comments on individual functions or internal details are fine to live in the C files. Make qemu_add_vm_change_state_handler_prio[_full]() docstrings consistent by moving them fr

Re: [PATCH-for-10.1 v7 0/2] hw/core/machine: Display CPU model name in 'info cpus' command

2025-07-15 Thread Philippe Mathieu-Daudé
On 15/7/25 11:06, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (2): qapi/machine: Add @qom-type field to CpuInfoFast structure hw/core/machine: Display CPU model name in 'info cpus' command Queued, thanks.

[PULL 42/57] qemu-img: convert: refresh options/--help (short option change)

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output. Reorder options for consistency. Use -b for --backing, and recognize -B for backwards compatibility. Unfortunately we can't use -B to specify backing format. Signed-off-by: Michael Tokarev Message-ID: <20250715140702.131321-1-

Re: [PATCH] accel/tcg: Do not dump NaN statistics

2025-07-15 Thread Philippe Mathieu-Daudé
On 10/7/25 13:13, Philippe Mathieu-Daudé wrote: Signed-off-by: Philippe Mathieu-Daudé --- accel/tcg/monitor.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) Queued, thanks.

[PULL 45/57] qemu-img: snapshot: allow specifying -f fmt

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev For consistency with other commands, and since it already accepts --image-opts, allow specifying -f fmt too. Signed-off-by: Michael Tokarev Reviewed-by: Daniel P. Berrangé Message-ID: <20250531171609.197078-16-...@tls.msk.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin

[PULL 49/57] qemu-img: resize: do not always eat last argument

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev 'qemu-img resize --help' does not work, since it wants more arguments. Also -size is only recognized as a very last argument, but it is common for tools to handle other options after positional arguments too. Tell getopt_long() to return non-options together with options,

Re: [PATCH] hw/xen/arch_hvm: Unify x86 and ARM variants

2025-07-15 Thread Philippe Mathieu-Daudé
On 13/5/25 19:17, Philippe Mathieu-Daudé wrote: As each target declares the same prototypes, we can use a single header, removing the TARGET_XXX uses. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/arm/xen_arch_hvm.h | 9 - include/hw/i386/xen_arch_hvm.h | 11 --- in

[PULL 48/57] qemu-img: rebase: refresh options/--help (short option change)

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output, reorder options for consistency. Use -B for --backing-format, keep -F for backwards compatibility. Options added: --format, --cache - for the image in question --backing, --backing-format, --backing-cache, --backing-unsafe -

[PULL 40/57] qemu-img: compare: use helper function for --object

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Use the same function to parse --object as used by all other qemu-img subcommands. Signed-off-by: Michael Tokarev Message-ID: <20250531171609.197078-11-...@tls.msk.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- qemu-img.c | 16 ++-- 1 file changed

[PULL 22/57] block: mark bdrv_drop_intermediate() as GRAPH_UNLOCKED

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner The function bdrv_drop_intermediate() calls bdrv_drained_begin(), which must be called with the graph unlocked. Signed-off-by: Fiona Ebner Message-ID: <20250530151125.955508-45-f.eb...@proxmox.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- include/block/block-gl

Re: [PATCH v2] hw/arm/xen-pvh: Remove unnecessary 'hw/xen/arch_hvm.h' header

2025-07-15 Thread Philippe Mathieu-Daudé
On 15/7/25 09:15, Philippe Mathieu-Daudé wrote: "hw/xen/arch_hvm.h" only declares the arch_handle_ioreq() and arch_xen_set_memory() prototypes, which are not used by xen-pvh.c. Remove the unnecessary header inclusion. Cc: Xiaoyao Li Signed-off-by: Philippe Mathieu-Daudé --- Based-on: <20250513

[PULL 55/57] qemu-img: measure: refresh options/--help

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output, reorder options for consistency. Also add -s short option for --size (and remove OPTION_SIZE). Signed-off-by: Michael Tokarev Message-ID: <20250531171609.197078-26-...@tls.msk.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wo

[PULL 50/57] qemu-img: resize: refresh options/--help

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output, reorder options for consistency. Signed-off-by: Michael Tokarev Message-ID: <20250531171609.197078-21-...@tls.msk.ru> [kwolf: Fixed up qemu-iotests] Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- qemu-img.c

[PULL 24/57] block: mark bdrv_close() as GRAPH_UNLOCKED

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner The functions blk_log_writes_close(), blkverify_close(), quorum_close(), vmdk_close() via vmdk_free_extents(), and other bdrv_close() implementations call bdrv_graph_wrlock_drained(), which must be called with the graph unlocked. They are reached via the BlockDriver's bdrv_close

[PULL 34/57] qemu-img: pass current cmd info into command handlers

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev This info will be used to generate --help output. Signed-off-by: Michael Tokarev Reviewed-by: Daniel P. Berrangé Reviewed-by: Kevin Wolf Message-ID: <20250531171609.197078-5-...@tls.msk.ru> Signed-off-by: Kevin Wolf --- qemu-img.c | 34 +

[PULL 30/57] iotests: add test for changing the 'drive' property via 'qom-set'

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner Signed-off-by: Fiona Ebner Message-ID: <20250605100938.43133-1-f.eb...@proxmox.com> [kwolf: Fixed up pylint warnings flagged by 297] Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/qemu-iotests/tests/qom-set-drive | 75 ++ tests/qemu-iotes

[PULL 27/57] block/qapi: include child references in block device info

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner In combination with using a throttle filter to enforce IO limits for a guest device, knowing the 'file' child of a block device can be useful. If the throttle filter is only intended for guest IO, block jobs should not also be limited by the throttle filter, so the block operati

[PULL 37/57] qemu-img: check: refresh options/--help

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output, reorder options for consistency. Signed-off-by: Michael Tokarev Message-ID: <20250531171609.197078-8-...@tls.msk.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- qemu-img.c | 60 +--

[PULL 13/57] block: mark bdrv_inactivate() as GRAPH_RDLOCK and move drain to callers

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner The function bdrv_inactivate() calls bdrv_drain_all_begin(), which needs to be called with the graph unlocked, so either bdrv_inactivate() should be marked as GRAPH_UNLOCKED or the drain needs to be moved to the callers. The caller in qmp_blockdev_set_active() requires that the

[PULL 01/57] block: never use atomics to access bs->quiesce_counter

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner All accesses of bs->quiesce_counter are in the main thread, either after a GLOBAL_STATE_CODE() macro or in a function with GRAPH_WRLOCK annotation. This is essentially a revert of 414c2ec358 ("block: access quiesce_counter with atomic ops"). At that time, neither the GLOBAL_STA

[PULL 32/57] qemu-img: create: convert img_size to signed, simplify handling

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Initializing an unsigned as -1, or using temporary sval for conversion is awkward. Since we don't allow other "negative" values anyway, use signed value and pass it to bdrv_img_create() (where it is properly converted to unsigned), simplifying code. Signed-off-by: Michael

[PULL 47/57] qemu-img: snapshot: refresh options/--help

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output, reorder options for consistency. Signed-off-by: Michael Tokarev Message-ID: <20250531171609.197078-18-...@tls.msk.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- qemu-img.c | 60 ++

[PULL 02/57] block: add bdrv_graph_wrlock_drained() convenience wrapper

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner Many write-locked sections are also drained sections. A new bdrv_graph_wrunlock_drained() wrapper around bdrv_graph_wrunlock() is introduced, which will begin a drained section first. A global variable is used so bdrv_graph_wrunlock() knows if it also needs to end such a drained

[PULL 17/57] block-backend: mark blk_io_limits_disable() as GRAPH_UNLOCKED

2025-07-15 Thread Kevin Wolf
From: Fiona Ebner The function blk_io_limits_disable() calls bdrv_drained_begin(), which must be called with the graph unlocked. Signed-off-by: Fiona Ebner Message-ID: <20250530151125.955508-40-f.eb...@proxmox.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- include/system/block-ba

[PULL 33/57] qemu-img: global option processing and error printing

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev In order to correctly print executable name in various error messages, pass argv[0] to error_exit() function. This way, error messages will refer to actual executable name, which may be different from 'qemu-img'. For subcommands, pass original command name from the qemu-img

[PULL 31/57] qemu-img: measure: convert img_size to signed, simplify handling

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev qemu_opt_set_number() expects signed int64_t. Use int64_t instead of uint64_t for img_size, use -1 as "unset" value instead of UINT64_MAX, and do not require temporary sval for conversion from string. Signed-off-by: Michael Tokarev Reviewed-by: Daniel P. Berrangé Reviewe

[PULL 44/57] qemu-img: map: refresh options/--help

2025-07-15 Thread Kevin Wolf
From: Michael Tokarev Add missing long options and --help output, reorder options for consistency. While at it, remove unused option_index variable. Signed-off-by: Michael Tokarev Message-ID: <20250715140903.131529-1-...@tls.msk.ru> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- qemu

  1   2   3   4   >