Re: [PATCH v6 0/9] target/riscv: Add support for Smdbltrp and Ssdbltrp extensions

2024-12-17 Thread Clément Léger
On 17/12/2024 04:44, Alistair Francis wrote: > On Fri, Nov 29, 2024 at 12:15 AM Clément Léger wrote: >> >> A double trap typically arises during a sensitive phase in trap handling >> operations — when an exception or interrupt occurs while the trap >> handler (the component responsible for mana

[PATCH v14 1/7] target/riscv: Remove obsolete pointer masking extension code.

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Zjpm extension is finally ratified. And it's much simplier compared to the experimental one. The newer version doesn't allow to specify custom mask or base for pointer masking. Instead it allows only certain options for masking top bits. Signed-off-by: Alexey Baturo Acked-

[PATCH v14 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 1 + target/riscv/cpu_helper.c| 19 + target/riscv/internals.h | 54 target/riscv/op

[PATCH v14 0/7] Pointer Masking update for Zjpm v1.0

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Hi, Rebased and addressed Alistair's comments on code style. Thanks [v13]: Rebased and addressed Daniel's comments about the return type of the helper. Thanks [v12]: Rebased and addressed Richard's comments about proper masking virtualized accesses. Thanks [v11]: As su

[PATCH v14 7/7] target/riscv: Enable updates for pointer masking variables and thus enable pointer masking extension

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 0a00be66f1..144ce822d5 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -186,

[PATCH v14 5/7] target/riscv: Update address modify functions to take into account pointer masking

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/translate.c | 22 -- target/riscv/vector_helper.c | 16 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/targe

[PATCH v14 4/7] target/riscv: Add pointer masking tb flags

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: LIU Zhiwei --- target/riscv/cpu.h| 3 +++ target/riscv/cpu_helper.c | 3 +++ target/riscv/translate.c | 5 + 3 files changed, 11 insertions(+) diff --git a

[PATCH v14 2/7] target/riscv: Add new CSR fields for S{sn, mn, m}pm extensions as part of Zjpm v1.0

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 8 target/riscv/cpu_bits.h | 4 target/riscv/cpu_cfg.h | 3 +++ target/riscv/csr.c | 31 ++- tar

[PATCH v14 3/7] target/riscv: Add helper functions to calculate current number of masked bits for pointer masking

2024-12-17 Thread baturo . alexey
From: Alexey Baturo Signed-off-by: Alexey Baturo Reviewed-by: Daniel Henrique Barboza --- target/riscv/cpu.h| 5 +++ target/riscv/cpu_helper.c | 78 +++ 2 files changed, 83 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 41

Re: [PATCH v13 6/7] target/riscv: Apply pointer masking for virtualized memory accesses

2024-12-17 Thread Alexey Baturo
Hi Alistair, Thanks for the review. I've tried to address your comments and submitted a new version. Could you please take a look if it's ok with you and if so, could you please put these patches to the queue for the next qemu update? Thanks! вт, 17 дек. 2024 г. в 09:13, Alistair Francis : > On

Re: [PATCH] roms: re-add edk2-basetools target

2024-12-17 Thread Michael Tokarev
17.12.2024 14:13, Michael Tokarev wrote: 12.12.2024 11:44, Gerd Hoffmann wrote: Needed to build ipxe nic roms. This one seems to be for qemu-stable too, no? For 8.2.x, I also picked 6539c73dccfa8fff1 "edk2: get version + date from git submodule", fwiw. Thanks, /mjt

[PATCH 2/2] target/i386: Print CPUID subleaf info for unsupported feature

2024-12-17 Thread Xiaoyao Li
Some CPUID leaves have meaningful subleaf index. Print the subleaf info in feature_word_description for CPUID features. Signed-off-by: Xiaoyao Li Reviewed-by: Eduardo Habkost --- target/i386/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/i386/cpu.c b/targe

[PATCH 1/2] i386: Remove unused parameter "uint32_t bit" in feature_word_description()

2024-12-17 Thread Xiaoyao Li
From: Lei Wang Parameter "uint32_t bit" is not used in function feature_word_description(), so remove it. Signed-off-by: Lei Wang Reviewed-by: Igor Mammedov Reviewed-by: Xiaoyao Li Signed-off-by: Xiaoyao Li --- target/i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

Re: [PATCH 03/13] tests/tcg/plugins/insn: remove unused callback parameter

2024-12-17 Thread Richard Henderson
On 12/16/24 19:06, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- tests/tcg/plugins/insn.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/tests/tcg/plugins/insn.c b/tests/tcg/plugins/insn.c index baf2d07205d..0c723cb

Re: [PATCH 04/13] contrib/plugins/howvec: ensure we don't regress if this plugin is extended

2024-12-17 Thread Richard Henderson
On 12/16/24 19:06, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- contrib/plugins/howvec.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) Reviewed-by: Richard Henderson r~

Re: [PATCH v2 4/9] hw/arm: Include missing 'exec/tswap.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
On 12/12/24 00:53, Richard Henderson wrote: On 12/11/24 17:03, Philippe Mathieu-Daudé wrote: Some files indirectly get "exec/tswap.h" declarations via "exec/cpu-all.h". Include it directly to be able to remove the former from the latter, otherwise we get:    hw/arm/boot.c:175:19: error: call to

[PATCH 0/3] include: Cleanups around 'exec/cpu-common.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
Do not include "exec/cpu-common.h" when we don't need it. (I plan to merge this series myself). Philippe Mathieu-Daudé (3): hw/xen: Remove unnecessary 'exec/cpu-common.h' header system/numa: Remove unnecessary 'exec/cpu-common.h' header system/accel-ops: Remove unnecessary 'exec/cpu-common.

[PATCH 1/3] hw/xen: Remove unnecessary 'exec/cpu-common.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
Nothing requires definitions from "exec/cpu-common.h", do not include this header. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/xen/xen.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h index ecb89ecfc14..e94c6e5a318 100644 --- a/include/h

[PATCH 2/3] system/numa: Remove unnecessary 'exec/cpu-common.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
Nothing requires definitions from "exec/cpu-common.h", do not include this header. Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/numa.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/sysemu/numa.h b/include/sysemu/numa.h index 04676141470..1338db9502d 100644 --- a/include/

Re: [PATCH RFCv2 00/20] kvm/arm: Introduce a customizable aarch64 KVM host model

2024-12-17 Thread Marc Zyngier
On Fri, 06 Dec 2024 11:21:53 +, Cornelia Huck wrote: > > A respin/update on the aarch64 KVM cpu models. Also available at > gitlab.com/cohuck/qemu arm-cpu-model-rfcv2 > > Find Eric's original cover letter below, so that I do not need to > repeat myself on the aspects that have not changed si

Re: [PATCH v2] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support

2024-12-17 Thread Gerd Hoffman
Hi, > +Fw-cfg Files > + > + > +Guests drive vmfwupdate through special ``fw-cfg`` files that control its > flow > +followed by a standard system reset operation. When vmfwupdate is available, > +it provides the following ``fw-cfg`` files: > + > +* ``vmfwupdate/cap`` (``u64``) - Read

[PATCH 3/3] system/accel-ops: Remove unnecessary 'exec/cpu-common.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
Since commit c4b3f46c151 ("include/exec: Move vaddr defines to separate file") we only need to include "exec/vaddr.h" to get the 'vaddr' type definition, no need for "exec/cpu-common.h". Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/accel-ops.h | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH 03/13] tests/tcg/plugins/insn: remove unused callback parameter

2024-12-17 Thread Alex Bennée
Pierrick Bouvier writes: > Signed-off-by: Pierrick Bouvier Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 05/13] tests/tcg/plugins/syscall: fix 32-bit build

2024-12-17 Thread Richard Henderson
On 12/16/24 19:06, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- tests/tcg/plugins/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/tests/tcg/plugins/syscall.c b/tests/tcg/plugins/syscall.c index ff452178

Re: [PATCH 1/1] tests/avocado: update sbsa-ref firmware

2024-12-17 Thread Peter Maydell
On Tue, 17 Dec 2024 at 07:10, Marcin Juszkiewicz wrote: > > W dniu 16.12.2024 o 13:46, Peter Maydell pisze: > > On Mon, 25 Nov 2024 at 13:25, Peter Maydell > > wrote: > >> > >> On Mon, 25 Nov 2024 at 12:54, Marcin Juszkiewicz > >> wrote: > >>> > >>> Firmware is built using Debian 'bookworm' cro

Re: [PATCH v3 0/7] migration/multifd: Some VFIO / postcopy preparations on flush

2024-12-17 Thread Fabiano Rosas
Peter Xu writes: > CI: https://gitlab.com/peterx/qemu/-/pipelines/1577280033 > (note: it's a pipeline of two patchsets, to save CI credits and time) > > v1: https://lore.kernel.org/r/20241205185303.897010-1-pet...@redhat.com > v2: https://lore.kernel.org/r/20241206005834.1050905-1-pet...@redhat.

Re: [PATCH] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set

2024-12-17 Thread Fabiano Rosas
Shameer Kolothum via writes: > Removes accidental inclusion of unrelated functions within CONFIG_UADK > as this causes compile errors like: > > error: redefinition of ‘migrate_hook_start_xbzrle’ > > Fixes: 932f74f3fe6e ("tests/qtest/migration: Split compression tests from > migration-test.c") >

Re: [PATCH v2 0/6] migration/block: disk activation rewrite

2024-12-17 Thread Fabiano Rosas
Peter Xu writes: > CI: https://gitlab.com/peterx/qemu/-/pipelines/1577280033 > (note: it's a pipeline of two patchsets, to save CI credits and time) > > v1: https://lore.kernel.org/r/20241204005138.702289-1-pet...@redhat.com > > This is v2 of the series, removing RFC tag, because my goal is to h

Re: [PATCH 06/13] tests/tcg/plugins/mem: fix 32-bit build

2024-12-17 Thread Richard Henderson
On 12/16/24 19:07, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- tests/tcg/plugins/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/tests/tcg/plugins/mem.c b/tests/tcg/plugins/mem.c index b0fa8a9f277..d87d662

Re: [PATCH v2] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support

2024-12-17 Thread Philippe Mathieu-Daudé
On 17/12/24 11:06, Ani Sinha wrote: On 16 Dec 2024, at 8:35 PM, Philippe Mathieu-Daudé wrote: Hi Ani, On 16/12/24 12:48, Ani Sinha wrote: VM firmware update is a mechanism where the virtual machines can use their preferred and trusted firmware image in their execution environment without h

[PATCH 0/2] Clean up and enhance of feature_word_description()

2024-12-17 Thread Xiaoyao Li
This series grabs two patches related to feature_word_description() from two different old threads, they are simple and straightforward. Patch 1 is grabbed from [1] while patch 2 is grabbed from [2]. [1]: https://lore.kernel.org/qemu-devel/20230106083826.5384-3-lei4.w...@intel.com/ [2]: https:

Re: [PATCH 1/1] pc-bios: add missing riscv64 descriptor

2024-12-17 Thread Heinrich Schuchardt
On 17.12.24 12:12, Michael Tokarev wrote: 12.12.2024 12:00, Heinrich Schuchardt wrote: Without descriptor libvirt cannot discover the EDK II binaries via the qemu:///system connection. Shouldn't this one be picked up for qemu-stable@? Thanks, /mjt Hello Michael, Yes, please, the patch sho

Re: [PATCH 09/13] contrib/plugins/hotblocks: fix 32-bit build

2024-12-17 Thread Richard Henderson
On 12/16/24 19:07, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- contrib/plugins/hotblocks.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/plugins/hotblocks.c b/contrib/plugins/hotblocks.c index 02bc5078bdd..09b0932275c 100644 --- a/contrib/

Re: [PATCH 10/13] contrib/plugins/cflow: fix 32-bit build

2024-12-17 Thread Richard Henderson
On 12/16/24 19:07, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- contrib/plugins/cflow.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/contrib/plugins/cflow.c b/contrib/plugins/cflow.c index b39974

Re: [PATCH 13/13] configure: reenable plugins by default for 32-bit hosts

2024-12-17 Thread Richard Henderson
On 12/16/24 19:07, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- configure | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/configure b/configure index 18336376bff..02f1dd2311f 100755 --- a/configur

Re: [PATCH 12/13] contrib/plugins/hotpages: fix 32-bit build

2024-12-17 Thread Richard Henderson
On 12/16/24 19:07, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- contrib/plugins/hotpages.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/contrib/plugins/hotpages.c b/contrib/plugins/hotpages.c index 8316ae50c72

Re: [PATCH 11/13] contrib/plugins/hwprofile: fix 32-bit build

2024-12-17 Thread Richard Henderson
On 12/16/24 19:07, Pierrick Bouvier wrote: Signed-off-by: Pierrick Bouvier --- contrib/plugins/hwprofile.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) Reviewed-by: Richard Henderson r~ diff --git a/contrib/plugins/hwprofile.c b/contrib/plugins/hw

Re: [PATCH 0/3] include: Cleanups around 'exec/cpu-common.h' header

2024-12-17 Thread Richard Henderson
On 12/17/24 09:13, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (3): hw/xen: Remove unnecessary 'exec/cpu-common.h' header system/numa: Remove unnecessary 'exec/cpu-common.h' header system/accel-ops: Remove unnecessary 'exec/cpu-common.h' header Reviewed-by: Richard Henderson

Re: [PATCH 0/9] migration: Drop/unexport migration_is_device() and migration_is_active()

2024-12-17 Thread Avihai Horon
On 16/12/2024 23:43, Cédric Le Goater wrote: External email: Use caution opening links or attachments On 12/16/24 10:46, Avihai Horon wrote: Hello, This follows up on Peter's series [1] to simplify migration status API to a single migration_is_running() function. Peter's series tried to dr

Re: [PATCH 7/9] system/dirtylimit: Don't use migration_is_active()

2024-12-17 Thread Avihai Horon
On 17/12/2024 5:01, Yong Huang wrote: *External email: Use caution opening links or attachments* On Mon, Dec 16, 2024 at 5:47 PM Avihai Horon wrote: vcpu_dirty_rate_stat_collect() uses migration_is_active() to detect whether migration is running or not, in order to get the correct

[PATCH] qapi: fix colon in Since tag section

2024-12-17 Thread Victor Toso
As described in docs/devel/qapi-code-gen.rst line 998, there should be no space between "Since" and ":". Signed-off-by: Victor Toso --- qapi/cxl.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qapi/cxl.json b/qapi/cxl.json index 9f65589bce..dd947d3bbc 100644 --- a/qa

Re: [PATCH 3/3] target/arm: implement SEL2 physical and virtual timers

2024-12-17 Thread Peter Maydell
On Fri, 6 Dec 2024 at 16:02, Alex Bennée wrote: > > When FEAT_SEL2 was implemented the SEL2 timers where missed. This > shows up when building the latest Hafnium with SPMC_AT_EL=2. The > actual implementation utilises the same logic as the rest of the > timers so all we need to do is: > > - defi

[PATCH] tests/lcitool: remove temp workaround for debian mips64el

2024-12-17 Thread Daniel P . Berrangé
The workaround applied in commit c60473d29254b79d9437eface8b342e84663ba66 Author: Alex Bennée Date: Wed Oct 2 10:03:33 2024 +0200 testing: bump mips64el cross to bookworm and fix package list Is no longer required since the affected builds are now fixed. Signed-off-by: Daniel P. Be

Re: [PATCH v2] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support

2024-12-17 Thread Philippe Mathieu-Daudé
On 17/12/24 12:09, Ani Sinha wrote: On 17 Dec 2024, at 4:11 PM, Philippe Mathieu-Daudé wrote: On 17/12/24 11:06, Ani Sinha wrote: On 16 Dec 2024, at 8:35 PM, Philippe Mathieu-Daudé wrote: Hi Ani, +static void vmfwupdate_device_class_init(ObjectClass *klass, void *data) +{ +DeviceC

Re: [PATCH v6 09/60] i386/tdx: Initialize TDX before creating TD vcpus

2024-12-17 Thread Tony Lindgren
On Thu, Dec 12, 2024 at 11:24:03AM -0600, Ira Weiny wrote: > On Wed, Nov 06, 2024 at 07:13:56AM +0200, Tony Lindgren wrote: > > On Wed, Nov 06, 2024 at 10:01:04AM +0800, Xiaoyao Li wrote: > > > On 11/6/2024 4:51 AM, Edgecombe, Rick P wrote: > > > > +Tony > > > > > > > > On Tue, 2024-11-05 at 01:23

[PATCH v1 0/1] Fix the VSTART register was not checked correctly in the vext_vv_rm_2 function

2024-12-17 Thread Chao Liu
Hi, all: Recently, when I was writing a RISCV test, I found that when VL is set to 0, the instruction should be nop, but when I tested it, I found that QEMU will treat all elements as tail elements, and in the case of VTA=1, write all elements to 1. After troubleshooting, it was found that the ve

[PATCH v1 1/1] target/riscv: Fix handling of NOP for vstart >= vl in vext_vx_rm_2()

2024-12-17 Thread Chao Liu
fix: https://lore.kernel.org/all/20240322085319.1758843-8-alistair.fran...@wdc.com/ Signed-off-by: Chao Liu --- target/riscv/vector_helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index a85dd1d200..54bac

Re: [PATCH 2/5] x86/loader: only patch linux kernels

2024-12-17 Thread Michael Tokarev
11.04.2024 12:48, Gerd Hoffmann wrote: If the binary loaded via -kernel is *not* a linux kernel (in which case protocol == 0), do not patch the linux kernel header fields. It's (a) pointless and (b) might break binaries by random patching and (c) changes the binary hash which in turn breaks secu

Re: [PATCH 1/1] pc-bios: add missing riscv64 descriptor

2024-12-17 Thread Michael Tokarev
12.12.2024 12:00, Heinrich Schuchardt wrote: Without descriptor libvirt cannot discover the EDK II binaries via the qemu:///system connection. Shouldn't this one be picked up for qemu-stable@? Thanks, /mjt

Re: [PATCH v2] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support

2024-12-17 Thread Ani Sinha
> On 17 Dec 2024, at 4:11 PM, Philippe Mathieu-Daudé wrote: > > On 17/12/24 11:06, Ani Sinha wrote: >>> On 16 Dec 2024, at 8:35 PM, Philippe Mathieu-Daudé >>> wrote: >>> >>> Hi Ani, >>> >>> On 16/12/24 12:48, Ani Sinha wrote: VM firmware update is a mechanism where the virtual machine

Re: [PATCH] roms: re-add edk2-basetools target

2024-12-17 Thread Michael Tokarev
12.12.2024 11:44, Gerd Hoffmann wrote: Needed to build ipxe nic roms. This one seems to be for qemu-stable too, no? Thanks, /mjt

Re: [PATCH v6 43/60] i386/tdx: Only configure MSR_IA32_UCODE_REV in kvm_init_msrs() for TDs

2024-12-17 Thread Paolo Bonzini
On 12/13/24 15:42, Ira Weiny wrote: On Tue, Nov 05, 2024 at 01:23:51AM -0500, Xiaoyao Li wrote: For TDs, only MSR_IA32_UCODE_REV in kvm_init_msrs() can be configured by VMM, while the features enumerated/controlled by other MSRs except MSR_IA32_UCODE_REV in kvm_init_msrs() are not under control

Re: [PATCH 3/9] vfio/migration: Refactor vfio_devices_all_running_and_mig_active() logic

2024-12-17 Thread Avihai Horon
On 16/12/2024 17:58, Joao Martins wrote: External email: Use caution opening links or attachments On 16/12/2024 14:55, Avihai Horon wrote: On 16/12/2024 14:45, Joao Martins wrote: External email: Use caution opening links or attachments On 16/12/2024 09:46, Avihai Horon wrote: During DMA

Re: [PATCH v2] hw/misc/vmfwupdate: Introduce hypervisor fw-cfg interface support

2024-12-17 Thread Ani Sinha
> On 16 Dec 2024, at 8:35 PM, Philippe Mathieu-Daudé wrote: > > Hi Ani, > > On 16/12/24 12:48, Ani Sinha wrote: >> VM firmware update is a mechanism where the virtual machines can use their >> preferred and trusted firmware image in their execution environment without >> having to depend on a

Re: [PATCH 0/2] include: Two cleanups around missing 'qemu/atomic.h'

2024-12-17 Thread Ilya Leoshkevich
On Tue, 2024-12-17 at 15:13 +0100, Philippe Mathieu-Daudé wrote: > We have 2 headers using qatomic_read() without including > its declaration from "qemu/atomic.h". Include the missing > header. For my own convenience I plan to merge these 2 patches > via my tree. > > Regards, > > Phil. > > Phili

Re: [PATCH 01/13] plugins: change signature of qemu_plugin_insn_haddr

2024-12-17 Thread Richard Henderson
On 12/16/24 19:06, Pierrick Bouvier wrote: It makes more sense to return the same type than qemu_plugin_insn_vaddr. Signed-off-by: Pierrick Bouvier --- include/qemu/qemu-plugin.h | 2 +- plugins/api.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) No, it

[PATCH] contrib/plugins/bbv.c: Start bb index from 1

2024-12-17 Thread ckf104
Standard simpoint tool reqeusts that index of basic block index starts from 1. Signed-off-by: ckf104 <1900011...@pku.edu.cn> --- contrib/plugins/bbv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/plugins/bbv.c b/contrib/plugins/bbv.c index a5256517dd..b9da6f815e 100

Re: [PATCH] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set

2024-12-17 Thread Peter Xu
On Tue, Dec 17, 2024 at 01:10:46PM +, Shameer Kolothum wrote: > Removes accidental inclusion of unrelated functions within CONFIG_UADK > as this causes compile errors like: > > error: redefinition of ‘migrate_hook_start_xbzrle’ > > Fixes: 932f74f3fe6e ("tests/qtest/migration: Split compressio

Re: [PATCH 25/26] rust: qemu-api: add a module to wrap functions and zero-sized closures

2024-12-17 Thread Zhao Liu
> +pub unsafe trait FnCall: 'static + Sync + Sized { > +/// Referring to this internal constant asserts that the `Self` type is > +/// zero-sized. Can be replaced by an inline const expression in > +/// Rust 1.79.0+. > +const ASSERT_ZERO_SIZED: () = { assert!(mem::size_of::() == 0)

Re: [PATCH v3 08/24] migration: Add thread pool of optional load threads

2024-12-17 Thread Peter Xu
On Tue, Dec 17, 2024 at 12:15:36AM +0100, Maciej S. Szmigiero wrote: > On 16.12.2024 17:29, Peter Xu wrote: > > On Thu, Dec 12, 2024 at 11:53:24PM +0100, Maciej S. Szmigiero wrote: > > > On 12.12.2024 17:38, Peter Xu wrote: > > > > On Wed, Dec 11, 2024 at 12:05:23AM +0100, Maciej S. Szmigiero wrote

Re: [PATCH 0/2] Change default pointer authentication algorithm on aarch64 to impdef

2024-12-17 Thread Peter Maydell
On Tue, 17 Dec 2024 at 07:40, Alex Bennée wrote: > > Pierrick Bouvier writes: > > > On 12/16/24 11:50, Richard Henderson wrote: > >> On 12/16/24 13:26, Pierrick Bouvier wrote: > >>> On 12/16/24 11:10, Richard Henderson wrote: > On 12/4/24 15:12, Pierrick Bouvier wrote: > > qemu-system-aa

[PATCH v3 0/2] Convert the intel_iommu avocado test

2024-12-17 Thread Thomas Huth
The first patch introduces a helper function for retrieving the hostfwd ports from QEMU. We then use this helper function to run a HTTP server in the guest in the second patch to exercise the network of the guest. v3: - Use the new hostfwd helper function instead of trying to probe for an unused

[PATCH v3 2/2] tests/functional: Convert the intel_iommu avocado test

2024-12-17 Thread Thomas Huth
Convert the intel_iommu test to the new functional framework. This test needs some changes since we neither support the old 'LinuxTest' class in the functional framework yet, nor a way to use SSH for running commands in the guest. So we now directly download a Fedora kernel and initrd and set up th

[PATCH v3 1/2] tests/functional: Add a helper function for retrieving the hostfwd port

2024-12-17 Thread Thomas Huth
It's just a wrapper around get_info_usernet_hostfwd_port from the qemu module that is also calling the right monitor command for retrieving the information from QEMU. Signed-off-by: Thomas Huth --- tests/functional/qemu_test/utils.py | 7 +++ tests/functional/test_info_usernet.py | 8 +++--

[PATCH] tests/functional: Convert the hotplug_cpu avocado test

2024-12-17 Thread Thomas Huth
Since we don't have ssh support in the functional test framework yet, simply use the serial console for this test instead. It's also sufficient to only boot into an initrd here, no need to fire up a full-blown guest, so the test now finishes much faster. While we're at it, also unplug the CPU now

Re: [PATCH] accel/tcg: Restrict curr_cflags() declaration to 'internal-common.h'

2024-12-17 Thread Richard Henderson
On 12/16/24 15:40, Philippe Mathieu-Daudé wrote: curr_cflags() is only used within accel/tcg/, move its declaration to accel/tcg/internal-common.h. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- accel/tcg/internal-common.h | 3 +++ include/exec/cpu-common.h | 3

Re: [PATCH v2 0/7] Introduce SMP Cache Topology

2024-12-17 Thread Alireza Sanaee via
On Sun, 8 Sep 2024 20:59:13 +0800 Zhao Liu wrote: > Hi all, > > Compared with previous Patch v1 [1], I've put the cache properties > list into -machine, this is to meet current needs and also remain > compatible with my future topology support (more discussion details, > pls refer [2]). > > Th

Re: [PULL 3/7] x86/loader: expose unpatched kernel

2024-12-17 Thread Gerd Hoffmann
On Tue, Dec 17, 2024 at 02:15:15PM +, Daniel P. Berrangé wrote: > On Mon, Dec 16, 2024 at 11:50:49AM +0100, Gerd Hoffmann wrote: > > Add a new "etc/boot/kernel" fw_cfg file, containing the kernel without > > the setup header patches. Intended use is booting in UEFI with secure > > boot enabled

Re: [PATCH] accel/tcg: Declare cpu_loop_exit_requested() in 'exec/cpu-common.h'

2024-12-17 Thread Richard Henderson
On 12/17/24 08:06, Philippe Mathieu-Daudé wrote: Move cpu_loop_exit_requested() declaration to "exec/cpu-common.h", along with the related cpu_loop_exit_noexc(), cpu_loop_exit(), cpu_loop_exit_atomic() and cpu_loop_exit_restore() methods. Signed-off-by: Philippe Mathieu-Daudé --- Based-on:<20241

Re: [PULL 3/7] x86/loader: expose unpatched kernel

2024-12-17 Thread Daniel P . Berrangé
On Tue, Dec 17, 2024 at 03:26:35PM +0100, Gerd Hoffmann wrote: > On Tue, Dec 17, 2024 at 02:15:15PM +, Daniel P. Berrangé wrote: > > On Mon, Dec 16, 2024 at 11:50:49AM +0100, Gerd Hoffmann wrote: > > > Add a new "etc/boot/kernel" fw_cfg file, containing the kernel without > > > the setup header

[PATCH 3/6] qdev: Rename PropertyInfo member @name to @type

2024-12-17 Thread Markus Armbruster
PropertyInfo member @name becomes ObjectProperty member @type, while Property member @name becomes ObjectProperty member @name. Rename the former. Signed-off-by: Markus Armbruster --- include/hw/qdev-properties.h | 2 +- backends/tpm/tpm_util.c | 2 +- hw/block/xen-block.c

[PATCH 6/6] qdev: Improve a few more PropertyInfo @description members

2024-12-17 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- hw/block/xen-block.c | 2 +- hw/core/qdev-properties-system.c | 2 +- hw/core/qdev-properties.c| 1 + hw/s390x/ccw-device.c| 4 ++-- target/sparc/cpu.c | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff

Re: [PATCH 0/2] include: Two cleanups around missing 'qemu/atomic.h'

2024-12-17 Thread Richard Henderson
On 12/17/24 08:13, Philippe Mathieu-Daudé wrote: Philippe Mathieu-Daudé (2): exec/translation-block: Include missing 'qemu/atomic.h' header qemu/coroutine: Include missing 'qemu/atomic.h' header Reviewed-by: Richard Henderson r~

[PATCH 0/6] Property type reporting improvements

2024-12-17 Thread Markus Armbruster
QOM properties could use similar work. Left for another day. Markus Armbruster (6): qdev: Delete unused qdev_prop_enum qdev: Change qdev_prop_pci_devfn member @name from "int32" to "str" qdev: Rename PropertyInfo member @name to @type qdev: Change values of PropertyInfo member @type to be

[PATCH 4/6] qdev: Change values of PropertyInfo member @type to be QAPI types

2024-12-17 Thread Markus Armbruster
PropertyInfo member @type is externally visible via QMP device-list-properties and qom-list-properies. Its meaning is not documented at its definition. It gets passed to as @type argument to object_property_add() and object_class_property_add(). This argument's documentation isn't of much help,

[PATCH 1/6] qdev: Delete unused qdev_prop_enum

2024-12-17 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- include/hw/qdev-properties.h | 1 - hw/core/qdev-properties.c| 7 --- 2 files changed, 8 deletions(-) diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h index 26ebd23068..1e7ae2e01a 100644 --- a/include/hw/qdev-properties.h +++ b

[PATCH 5/6] qdev: Improve PropertyInfo member @description for enum properties

2024-12-17 Thread Markus Armbruster
Consistently use format "DESCRIPTION (VALUE/VALUE...)". Signed-off-by: Markus Armbruster --- hw/core/qdev-properties-system.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index

[PATCH 2/6] qdev: Change qdev_prop_pci_devfn member @name from "int32" to "str"

2024-12-17 Thread Markus Armbruster
Properties using qdev_prop_pci_devfn initially accepted a string of the form "DEV.FN" or "DEV" where DEV and FN are in hexadecimal. Member @name was "pci-devfn" initially. Commit b403298adb5 (qdev: make the non-legacy pci address property accept an integer) changed them to additionally accept inte

Re: [PATCH v4 6/8] chardev/char-mux: implement backend chardev multiplexing

2024-12-17 Thread Roman Penyaev
Hi Markus, Thanks for the explicit info. But I have a lot to ask :) Do I understand correctly that there are two ways to parse arguments: classic, via qemu_opts_parse_noisily() and modern, via qobject_input_visitor_new_str()? (for example, I look in net/net.c, netdev_parse_modern()). My goal is no

Re: [PATCH 3/9] vfio/migration: Refactor vfio_devices_all_running_and_mig_active() logic

2024-12-17 Thread Joao Martins
On 17/12/2024 09:38, Avihai Horon wrote: > +bool vfio_dma_unmap_dirty_sync_needed(const VFIOContainerBase > *bcontainer) >    { > -    VFIODevice *vbasedev; > - > -    if (!migration_is_active()) { > +    if (!migration_is_running()) { >    return false; >>>

Re: [PATCH 2/9] vfio/migration: Refactor vfio_devices_all_dirty_tracking() logic

2024-12-17 Thread Avihai Horon
On 16/12/2024 21:53, Joao Martins wrote: External email: Use caution opening links or attachments On 16/12/2024 16:05, Joao Martins wrote: On 16/12/2024 15:52, Joao Martins wrote: On 16/12/2024 14:52, Avihai Horon wrote: On 16/12/2024 14:32, Joao Martins wrote: External email: Use caution

[PATCH] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set

2024-12-17 Thread Shameer Kolothum via
Removes accidental inclusion of unrelated functions within CONFIG_UADK as this causes compile errors like: error: redefinition of ‘migrate_hook_start_xbzrle’ Fixes: 932f74f3fe6e ("tests/qtest/migration: Split compression tests from migration-test.c") Signed-off-by: Shameer Kolothum --- tests/q

Re: [PATCH 7/9] system/dirtylimit: Don't use migration_is_active()

2024-12-17 Thread Yong Huang
On Tue, Dec 17, 2024 at 5:47 PM Avihai Horon wrote: > > On 17/12/2024 5:01, Yong Huang wrote: > > *External email: Use caution opening links or attachments* > > > > > > > > > > On Mon, Dec 16, 2024 at 5:47 PM Avihai Horon wrote: > > > > vcpu_dirty_rate_stat_collect() uses migration_is_active

Re: [PATCH 9/9] migration: Unexport migration_is_active()

2024-12-17 Thread Cédric Le Goater
On 12/16/24 10:46, Avihai Horon wrote: After being removed from VFIO and dirty limit, migration_is_active() no longer has any users outside the migration subsystem, and in fact, it's only used in migration.c. Unexport it and also relocate it so it can be made static. Signed-off-by: Avihai Horon

Re: [PATCH 8/9] migration: Drop migration_is_device()

2024-12-17 Thread Cédric Le Goater
On 12/16/24 10:46, Avihai Horon wrote: After being removed from VFIO, migration_is_device() no longer has any users. Drop it. Signed-off-by: Avihai Horon Reviewed-by: Cédric Le Goater Thanks, C. --- include/migration/misc.h | 1 - migration/migration.c| 7 --- 2 files chang

Re: [PATCH 3/3] target/arm: implement SEL2 physical and virtual timers

2024-12-17 Thread Peter Maydell
On Mon, 16 Dec 2024 at 19:32, Alex Bennée wrote: > > Peter Maydell writes: > > > On Fri, 6 Dec 2024 at 16:02, Alex Bennée wrote: > >> > >> When FEAT_SEL2 was implemented the SEL2 timers where missed. This > >> shows up when building the latest Hafnium with SPMC_AT_EL=2. The > >> actual implement

Re: [PATCH v2] tests/qtest/sse-timer-test: Add watchdog reset to sse-timer test

2024-12-17 Thread Peter Maydell
On Mon, 16 Dec 2024 at 19:27, Nabih Estefan wrote: > > Actually after some more debugging with the help of Roque (cc'd) we > realized that this patch doesn't actually fix the issue, it only hides > it behind the watchdog. > > The root issue comes from > https://lists.gnu.org/archive/html/qemu-s390

Re: [PATCH] accel/tcg: Declare cpu_loop_exit_requested() in 'exec/cpu-common.h'

2024-12-17 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Move cpu_loop_exit_requested() declaration to "exec/cpu-common.h", > along with the related cpu_loop_exit_noexc(), cpu_loop_exit(), > cpu_loop_exit_atomic() and cpu_loop_exit_restore() methods. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée

[PATCH] accel/tcg: Declare cpu_loop_exit_requested() in 'exec/cpu-common.h'

2024-12-17 Thread Philippe Mathieu-Daudé
Move cpu_loop_exit_requested() declaration to "exec/cpu-common.h", along with the related cpu_loop_exit_noexc(), cpu_loop_exit(), cpu_loop_exit_atomic() and cpu_loop_exit_restore() methods. Signed-off-by: Philippe Mathieu-Daudé --- Based-on: <20241212185341.2857-19-phi...@linaro.org> --- include

Re: [PATCH] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set

2024-12-17 Thread Fabiano Rosas
Shameer Kolothum via writes: > Removes accidental inclusion of unrelated functions within CONFIG_UADK > as this causes compile errors like: > > error: redefinition of ‘migrate_hook_start_xbzrle’ > > Fixes: 932f74f3fe6e ("tests/qtest/migration: Split compression tests from > migration-test.c") >

Re: [PATCH] roms: re-add edk2-basetools target

2024-12-17 Thread Gerd Hoffmann
On Tue, Dec 17, 2024 at 02:13:48PM +0300, Michael Tokarev wrote: > 12.12.2024 11:44, Gerd Hoffmann wrote: > > Needed to build ipxe nic roms. > > This one seems to be for qemu-stable too, no? Yes, makes sense indeed. thanks, Gerd

[PATCH 1/2] exec/translation-block: Include missing 'qemu/atomic.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
When moving tb_cflags() in commit 88d4b5138a8 ("tcg: Make tb_cflags() usable from target-agnostic code") we forgot to include "qemu/atomic.h", which declares qatomic_read(). Explicitly include it now to avoid issue when refactoring unrelated headers. Signed-off-by: Philippe Mathieu-Daudé --- inc

Re: [PATCH 2/5] x86/loader: only patch linux kernels

2024-12-17 Thread Gerd Hoffmann
On Tue, Dec 17, 2024 at 02:09:30PM +0300, Michael Tokarev wrote: > 11.04.2024 12:48, Gerd Hoffmann wrote: > > If the binary loaded via -kernel is *not* a linux kernel (in which > > case protocol == 0), do not patch the linux kernel header fields. > > > > It's (a) pointless and (b) might break bina

[PATCH 0/2] include: Two cleanups around missing 'qemu/atomic.h'

2024-12-17 Thread Philippe Mathieu-Daudé
We have 2 headers using qatomic_read() without including its declaration from "qemu/atomic.h". Include the missing header. For my own convenience I plan to merge these 2 patches via my tree. Regards, Phil. Philippe Mathieu-Daudé (2): exec/translation-block: Include missing 'qemu/atomic.h' head

[PATCH 2/2] qemu/coroutine: Include missing 'qemu/atomic.h' header

2024-12-17 Thread Philippe Mathieu-Daudé
Commit 944f3d5dd21 ("coroutine: Add qemu_co_mutex_assert_locked") added an inline method which uses qatomic_read(), itself declared in "qemu/atomic.h". Explicitly include it now to avoid issue when refactoring unrelated headers. Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/coroutine.h

Re: [PULL 3/7] x86/loader: expose unpatched kernel

2024-12-17 Thread Daniel P . Berrangé
On Mon, Dec 16, 2024 at 11:50:49AM +0100, Gerd Hoffmann wrote: > Add a new "etc/boot/kernel" fw_cfg file, containing the kernel without > the setup header patches. Intended use is booting in UEFI with secure > boot enabled, where the setup header patching breaks secure boot > verification. > > Ne

[PATCH v7 1/9] target/riscv: Fix henvcfg potentially containing stale bits

2024-12-17 Thread Clément Léger
With the current implementation, if we had the following scenario: - Set bit x in menvcfg - Set bit x in henvcfg - Clear bit x in menvcfg then, the internal variable env->henvcfg would still contain bit x due to both a wrong menvcfg mask used in write_henvcfg() as well as a missing update of henvcf

[PATCH v7 3/9] target/riscv: Implement Ssdbltrp sret, mret and mnret behavior

2024-12-17 Thread Clément Léger
When the Ssdbltrp extension is enabled, SSTATUS.SDT field is cleared when executing sret. When executing mret/mnret, SSTATUS.SDT is cleared when returning to U, VS or VU and VSSTATUS.SDT is cleared when returning to VU from HS. Signed-off-by: Clément Léger Reviewed-by: Alistair Francis --- targ

[PATCH v7 2/9] target/riscv: Add Ssdbltrp CSRs handling

2024-12-17 Thread Clément Léger
Add ext_ssdbltrp in RISCVCPUConfig and implement MSTATUS.SDT, {H|M}ENVCFG.DTE and modify the availability of MTVAL2 based on the presence of the Ssdbltrp ISA extension. Signed-off-by: Clément Léger Reviewed-by: Daniel Henrique Barboza Reviewed-by: Alistair Francis --- target/riscv/cpu.h

[PATCH v7 7/9] target/riscv: Implement Smdbltrp sret, mret and mnret behavior

2024-12-17 Thread Clément Léger
When the Ssdbltrp extension is enabled, SSTATUS.MDT field is cleared when executing sret if executed in M-mode. When executing mret/mnret, SSTATUS.MDT is cleared. Signed-off-by: Clément Léger Reviewed-by: Alistair Francis --- target/riscv/op_helper.c | 12 1 file changed, 12 insert

  1   2   3   4   >