Re: [PATCH v6 34/60] i386/tdx: implement tdx_cpu_realizefn()

2025-01-14 Thread Xiaoyao Li
On 12/13/2024 6:04 AM, Ira Weiny wrote: On Tue, Nov 05, 2024 at 12:53:25PM +0100, Paolo Bonzini wrote: On 11/5/24 12:38, Xiaoyao Li wrote: On 11/5/2024 6:06 PM, Paolo Bonzini wrote: On 11/5/24 07:23, Xiaoyao Li wrote: +static void tdx_cpu_realizefn(X86ConfidentialGuest *cg, CPUState *cs, +   

Re: [PATCH v3 1/8] qapi: golang: Generate enum type

2025-01-14 Thread Markus Armbruster
Victor Toso writes: > This patch handles QAPI enum types and generates its equivalent in Go. > We sort the output based on enum's type name. Any particular reason for sorting? The existing backends generate output it source order, on the (bold?) assumption that developers care to pick an order

Re: [PATCH] feat: add loongarch page table walker support for debugger memory access

2025-01-14 Thread bibo mao
Miao, What is status about this patch? Will there be updated version? Regards Bibo Mao On 2025/1/2 下午2:33, Miao Hao wrote: On 2024/12/31 19:29, bibo mao wrote: On 2024/12/30 下午3:04, Miao Hao wrote: Hi Bibo, Thanks for your review. I apologize for my late respond due to some personal rea

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

2025-01-14 Thread Philippe Mathieu-Daudé
On 14/1/25 09:20, Alex Bennée wrote: Pierrick Bouvier writes: 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 by Clang. After investigation,

Re: [PATCH v7 1/2] memory: Update inline documentation

2025-01-14 Thread Akihiko Odaki
On 2025/01/14 0:57, Peter Xu wrote: On Sat, Jan 11, 2025 at 01:15:24PM +0900, Akihiko Odaki wrote: On 2025/01/11 0:18, Peter Xu wrote: On Fri, Jan 10, 2025 at 05:43:15PM +0900, Akihiko Odaki wrote: On 2025/01/10 4:37, Peter Xu wrote: On Thu, Jan 09, 2025 at 02:29:21PM -0500, Peter Xu wrote:

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

2025-01-14 Thread Alex Bennée
Pierrick Bouvier writes: > 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 by Clang. After investigation, we proved it was safe to drop it

Re: [PATCH 01/23] docs/qapidoc: support header-less freeform sections

2025-01-14 Thread Markus Armbruster
John Snow writes: > On Mon, Dec 16, 2024 at 8:15 AM Markus Armbruster wrote: > >> John Snow writes: >> >> > The code as written can't handle if a header isn't found, because `node` >> > will be uninitialized. >> >> Yes, we initialize @node only if we have a heading. >> >> Made me wonder what ha

Re: [PATCH] scripts/nsis.py: Run dependency check for each DLL file only once

2025-01-14 Thread Alex Bennée
Stefan Weil via writes: > Each DLL should only be checked once for dependencies, but > several hundred (781 in my test) unneeded checks were done. > > Now the script is significantly faster (16 s in my build). > > Signed-off-by: Stefan Weil Queued to maintainer/jan-2025, thanks. -- Alex Benné

Re: [PATCH v4 0/6] Enhance documentation for new developers

2025-01-14 Thread Alex Bennée
Pierrick Bouvier writes: > This series extends our documentation with new pages to help developers > onboarding on QEMU. It focuses on providing a big picture of QEMU (to a > modest extend). > > > Pierrick Bouvier (6): > docs/devel: remove dead video link for sourcehut submit process This was

[PATCH v2 13/37] tests/tcg/plugins/syscall: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-4-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- tests/tcg/plugins/syscall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/t

[PATCH v2 05/37] semihosting/arm-compat: Include missing 'cpu.h' header

2025-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé ARM semihosting implementations in "common-semi-target.h" must de-reference the target CPUArchState, which is declared in each target "cpu.h" header. Include it in order to avoid when refactoring: In file included from ../../semihosting/arm-compat-semi.c:169: ../

[PATCH v2 10/37] system: propagate Error to gdbserver_start (and other device setups)

2025-01-14 Thread Alex Bennée
This started as a clean-up to properly pass a Error handler to the gdbserver_start so we could do the right thing for command line and HMP invocations. Now that we have cleaned up foreach_device_config_or_exit() in earlier patches we can further simplify by it by passing &error_fatal instead of ch

[PATCH v2 12/37] contrib/plugins/howvec: ensure we don't regress if this plugin is extended

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-3-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/howvec.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/p

[PATCH v2 34/37] docs/devel: add information on how to setup build environments

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier MacOS and Linux are straightforward, but Windows needs a bit more details. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241209183104.365796-5-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- docs/about/build-platforms.rst |

[PATCH v2 00/37] maintainer updates for jan '25 (semihosting, gdb, plugins, docs) pre-PR

2025-01-14 Thread Alex Bennée
This covers my remaining trees outside of testing/next and is mostly a consolidation of patches I've pulled from other people. For semihosting: - a bunch of cleanups from Philippe to aide single binary builds For gdbstub (touches system/vl.c as well): - propagate *Error to setup functions

[PATCH v2 18/37] contrib/plugins/cflow: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-9-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/cflow.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[PATCH v2 07/37] semihosting/meson: Build config.o and console.o once

2025-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé config.c and console.c don't use any target specific headers anymore, move them from specific_ss[] to system_ss[] so they are built once, but will also be linked once, removing global symbol clash in a single QEMU binary. Signed-off-by: Philippe Mathieu-Daudé Review

[PATCH v2 37/37] scripts/nsis.py: Run dependency check for each DLL file only once

2025-01-14 Thread Alex Bennée
From: Stefan Weil via Each DLL should only be checked once for dependencies, but several hundred (781 in my test) unneeded checks were done. Now the script is significantly faster (16 s in my build). Signed-off-by: Stefan Weil Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé

[PATCH v2 11/37] tests/tcg/plugins/insn: remove unused callback parameter

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-2-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- tests/tcg/plugins/insn.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

[PATCH v2 16/37] contrib/plugins/cache: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson Message-Id: <20241217224306.2900490-7-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/cache.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git

[PATCH v2 36/37] docs: add a glossary

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241209183104.365796-7-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- docs/devel/control-flow-integrity.rst | 2 + docs/devel/multi-thread-tcg.rst | 2 + docs/glossary.rs

[PATCH v2 06/37] semihosting/console: Avoid including 'cpu.h'

2025-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé The CPUState structure is declared in "hw/core/cpu.h", the EXCP_HALTED definition in "exec/cpu-common.h". Both headers are indirectly include by "cpu.h". In order to remove "cpu.h" from "semihosting/console.h", explicitly include them in console.c, otherwise we'd get:

[PATCH v2 02/37] semihosting/uaccess: Briefly document returned values

2025-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé Since it is not obvious the get/put_user*() methods can return an error, add brief docstrings about it. Also remind to use *unlock_user() when appropriate. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20241212115413.42109-1-phi.

[PATCH v2 26/37] plugins: fix kdoc annotation

2025-01-14 Thread Alex Bennée
The function is qemu_plugin_mem_get_value() Signed-off-by: Alex Bennée --- include/qemu/qemu-plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 0fba36ae02..3a850aa216 100644 --- a/include/qemu/qemu-plugin.h +

[PATCH v2 15/37] contrib/plugins/stoptrigger: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson Message-Id: <20241217224306.2900490-6-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/stoptrigger.c | 48 --- 1 file changed, 27 insertions(+), 21

Re: [PATCH] ui/dbus: on win32, allow ANONYMOUS with p2p

2025-01-14 Thread Marc-André Lureau
On Tue, Jan 14, 2025 at 2:50 PM wrote: > > From: Marc-André Lureau > > GLib doesn't implement EXTERNAL on win32 at the moment, and disables > ANONYMOUS by default. zbus dropped support for COOKIE_SHA1 in 5.0, > making it no longer possible to connect to qemu -display dbus. > > Since p2p connectio

[PATCH v2 30/37] include/exec: remove warning_printed from MemoryRegion

2025-01-14 Thread Alex Bennée
Since d197063fcf9 (memory: move unassigned_mem_ops to memory.c) this field is unused. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu --- include/exec/memory.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/exec/m

[PATCH v2 19/37] contrib/plugins/hwprofile: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-10-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/hwprofile.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions

[PATCH v2 24/37] docs/devel/style: add a section about bitfield, and disallow them for packed structures

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Tested-by: Stefan Weil Tested-by: Philippe Mathieu-Daudé Message-Id: <20250110203401.178532-3-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- docs/devel/sty

[PATCH v2 21/37] configure: reenable plugins by default for 32-bit hosts

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-12-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- configure | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/configur

[PATCH v2 32/37] docs/devel: add git-publish for patch submitting

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241209183104.365796-3-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- docs/devel/submitting-a-patch.rst | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH v2 27/37] editorconfig: update for perl scripts

2025-01-14 Thread Alex Bennée
We have two types of perl scripts in the tree. The ones from the kernel are mostly tab based where as scripts we have written ourselves use 4 space indentation. Attempt to codify that in our .editorconfig Signed-off-by: Alex Bennée --- .editorconfig | 13 + 1 file changed, 13 insert

[PATCH v2 20/37] contrib/plugins/hotpages: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-11-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/hotpages.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib

[PATCH v2 28/37] tests/qtest: fix some copy and paste errors in kdoc

2025-01-14 Thread Alex Bennée
A number of copy and paste kdoc comments are referring to the wrong definition. Fix those cases. Signed-off-by: Alex Bennée --- tests/qtest/libqos/qgraph.h | 2 +- tests/qtest/libqtest.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qtest/libqos/qgraph.h b

[PATCH v2 29/37] include/exec: fix some copy and paste errors in kdoc

2025-01-14 Thread Alex Bennée
A number of copy and paste kdoc comments are referring to the wrong definition. Fix those cases. Signed-off-by: Alex Bennée --- include/exec/memory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 9458e2801d..605687befa

[PATCH v2 31/37] docs/sphinx: include kernel-doc script as a dependency

2025-01-14 Thread Alex Bennée
When we update the script we should rebuild the docs. Otherwise breaking changes made to the kdoc script don't become apparent until later. Signed-off-by: Alex Bennée --- docs/sphinx/depfile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/sphinx/depfile.py b/docs/sphinx/depfile.py

[PATCH v2 22/37] accel/tcg: also suppress asynchronous IRQs for cpu_io_recompile

2025-01-14 Thread Alex Bennée
While it would be technically correct to allow an IRQ to happen (as the offending instruction never really completed) it messes up instrumentation. We already take care to only use memory instrumentation on the block, we should also suppress IRQs. Message-Id: <20250109170619.2271193-23-alex.ben...

[PATCH v2 23/37] win32: remove usage of attribute gcc_struct

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier This attribute is not recognized by clang. An investigation has been performed to ensure this attribute has no effect on layout of structures we use in QEMU [1], so it's safe to remove now. In the future, we'll forbid introducing new bitfields in packed struct, as they ar

Re: [PATCH v4 4/5] virtio-gpu: Support asynchronous fencing

2025-01-14 Thread Dmitry Osipenko
On 1/14/25 01:00, Alex Bennée wrote: ... > This needs to be gated on support from virglrenderer: > > /display/virtio-gpu-virgl.c > ../../hw/display/virtio-gpu-virgl.c: In function > ‘virtio_gpu_virgl_process_cmd’: > ../../hw/display/virtio-gpu-virgl.c:980:15: error: implicit declaration of

Re: [PATCH v4] scripts/qcow2-to-stdout.py: Add script to write qcow2 images to stdout

2025-01-14 Thread Alberto Garcia
ping On Tue, Jul 30, 2024 at 04:15:52PM +0200, Alberto Garcia wrote: > This tool converts a disk image to qcow2, writing the result directly > to stdout. This can be used for example to send the generated file > over the network.

Re: [PULL 04/49] hw: Add QOM parentship relation with CPUs

2025-01-14 Thread Markus Armbruster
Igor Mammedov writes: > On Mon, 13 Jan 2025 17:00:55 +0100 > Philippe Mathieu-Daudé wrote: > >> On 13/1/25 13:28, Igor Mammedov wrote: >> > On Sun, 12 Jan 2025 23:16:40 +0100 >> > Philippe Mathieu-Daudé wrote: >> > >> >> QDev objects created with object_new() need to manually add >> >> their

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

2025-01-14 Thread Xiaoyao Li
On 12/17/2024 9:10 PM, Tony Lindgren wrote: 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-

Re: [PATCH v6 09/16] acpi/ghes: make the GHES record generation more generic

2025-01-14 Thread Jonathan Cameron via
On Sat, 7 Dec 2024 09:54:15 +0100 Mauro Carvalho Chehab wrote: > Split the code into separate functions to allow using the > common CPER filling code by different error sources. > > The generic code was moved to ghes_record_cper_errors(), > and ghes_gen_err_data_uncorrectable_recoverable() now

Re: CXL emulation on aarch64

2025-01-14 Thread Jonathan Cameron via
On Tue, 14 Jan 2025 12:03:03 +0900 Itaru Kitayama wrote: > Hi Jonathan, > > > On Jan 10, 2025, at 21:31, Jonathan Cameron > > wrote: > > > > On Fri, 10 Jan 2025 09:20:54 + > > "Zhijian Li (Fujitsu)" via wrote: > > > >> On 10/01/2025 13:29, Itaru Kitayama wrote: > >>> Hi, > >>> Is a

Re: [PATCH 0/3] cpuhp: ensure that cpu hotremove works the 1st time

2025-01-14 Thread Michael S. Tsirkin
On Tue, Jan 14, 2025 at 11:20:54AM +0100, Igor Mammedov wrote: > On Tue, 10 Dec 2024 17:39:42 +0100 > Igor Mammedov wrote: > > > CPU hotremove event is not delivered to OSPM if the CPU > > has been hotplugged before OS has booted. > > For details see [2/3]. > > Michael, > can you pick it up plea

Re: [PATCH v3 1/8] qapi: golang: Generate enum type

2025-01-14 Thread Daniel P . Berrangé
On Tue, Jan 14, 2025 at 09:52:23AM +0100, Markus Armbruster wrote: > Victor Toso writes: > > > This patch handles QAPI enum types and generates its equivalent in Go. > > We sort the output based on enum's type name. > > Any particular reason for sorting? > > The existing backends generate outpu

Re: [PATCH] hw/timer: fix int underflow

2025-01-14 Thread Paolo Bonzini
On 1/14/25 11:14, Peter Maydell wrote: So, to my opinion, explicit cast to "long long" is necessary here to get the expected behavior. I wasn't saying the existing code was necessarily correct, or that your proposed change was necessarily wrong. I was saying your patch didn't come with any anal

Re: [PATCH v6 35/60] i386/cpu: Introduce enable_cpuid_0x1f to force exposing CPUID 0x1f

2025-01-14 Thread Xiaoyao Li
On 12/13/2024 6:16 AM, Ira Weiny wrote: On Tue, Nov 05, 2024 at 01:23:43AM -0500, Xiaoyao Li wrote: Currently, QEMU exposes CPUID 0x1f to guest only when necessary, i.e., when topology level that cannot be enumerated by leaf 0xB, e.g., die or module level, are configured for the guest, e.g., -sm

Re: [PATCH v6 36/60] i386/tdx: Force exposing CPUID 0x1f

2025-01-14 Thread Xiaoyao Li
On 12/13/2024 6:17 AM, Ira Weiny wrote: On Tue, Nov 05, 2024 at 01:23:44AM -0500, Xiaoyao Li wrote: TDX uses CPUID 0x1f to configure TD guest's CPU topology. So set enable_cpuid_0x1f for TDs. If you squashed this into patch 35 I think it might make more sense overall after some commit message

Re: [PATCH v2 00/13] i.MX and SDHCI improvements

2025-01-14 Thread Bernhard Beschow
Am 11. Januar 2025 18:36:58 UTC schrieb Bernhard Beschow : >This series fixes some details in i.MX platform devices, improves SDHCI > >compatibility with U-Boot and modernizes some code. > > > >The first 5 patches are bugfixes 1/ resolving infinite loop in U-Boot esdhc > >driver, 2/ fixing a cha

Re: [PATCH v6 41/60] hw/i386: add option to forcibly report edge trigger in acpi tables

2025-01-14 Thread Xiaoyao Li
On 12/13/2024 6:39 AM, Ira Weiny wrote: On Tue, Nov 05, 2024 at 01:23:49AM -0500, Xiaoyao Li wrote: From: Isaku Yamahata When level trigger isn't supported on x86 platform, forcibly report edge trigger in acpi tables. This commit message is pretty sparse. I was thinking of suggesting to squ

Re: [PATCH] target/riscv/csr.c: Turn off mstatus.vs when misa.v is turned off

2025-01-14 Thread Daniel Henrique Barboza
On 1/14/25 6:20 AM, Evgenii Prokopiev wrote: A behavior of misa.v must be similar as misa.f. So when this bit's field is turned off, mstatus.vs must be turned off too. It follows from the privileged manual of RISC-V, paragraph 3.1.1. "Machine ISA (misa) Register". Signed-off-by: Evgenii Proko

Re: [PATCH v6 55/60] i386/tdx: Fetch and validate CPUID of TD guest

2025-01-14 Thread Xiaoyao Li
On 12/13/2024 1:52 AM, Ira Weiny wrote: On Tue, Nov 05, 2024 at 01:24:03AM -0500, Xiaoyao Li wrote: Use KVM_TDX_GET_CPUID to get the CPUIDs that are managed and enfored by TDX module for TD guest. Check QEMU's configuration against the fetched data. Print wanring message when 1. a feature is n

Re: [PATCH v3 0/8] qapi-go: add generator for Golang interfaces

2025-01-14 Thread Victor Toso
Hi, On Mon, Jan 13, 2025 at 01:52:25PM +0100, Markus Armbruster wrote: > Victor Toso writes: > > > This patch series intent is to introduce a generator that produces a Go > > module for Go applications to interact over QMP with QEMU. > > > > The initial Goal is to have a Go module that works as

[PATCH] ui/dbus: clarify the kind of win32 handle that is shared

2025-01-14 Thread marcandre . lureau
From: Marc-André Lureau "-display dbus" hands over a file mapping handle to the peer process (not a file handle). Signed-off-by: Marc-André Lureau --- ui/dbus-display1.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/dbus-display1.xml b/ui/dbus-display1.xml index

[PATCH] ui/dbus: on win32, allow ANONYMOUS with p2p

2025-01-14 Thread marcandre . lureau
From: Marc-André Lureau GLib doesn't implement EXTERNAL on win32 at the moment, and disables ANONYMOUS by default. zbus dropped support for COOKIE_SHA1 in 5.0, making it no longer possible to connect to qemu -display dbus. Since p2p connections are gated by existing QMP (or a D-Bus connection),

[PATCH] plugins: fix -Werror=maybe-uninitialized false-positive

2025-01-14 Thread marcandre . lureau
From: Marc-André Lureau ../contrib/plugins/cache.c:638:9: error: ‘l2_cache’ may be used uninitialized [-Werror=maybe-uninitialized] 638 | append_stats_line(rep, l1_dmem_accesses, l1_dmisses, | ^~~~ Is a false-positive, sinc

[PATCH] migration: fix -Werror=maybe-uninitialized

2025-01-14 Thread marcandre . lureau
From: Marc-André Lureau ../migration/savevm.c: In function ‘qemu_savevm_state_complete_precopy_non_iterable’: ../migration/savevm.c:1560:20: error: ‘ret’ may be used uninitialized [-Werror=maybe-uninitialized] 1560 | return ret; |^~~ Cc: Peter Xu Signed-

Re: [PATCH] hw/timer: fix int underflow

2025-01-14 Thread Peter Maydell
On Tue, 14 Jan 2025 at 10:40, Paolo Bonzini wrote: > > On 1/14/25 11:14, Peter Maydell wrote: > >> So, to my opinion, explicit cast to "long long" is necessary > >> here to get the expected behavior. > > > > I wasn't saying the existing code was necessarily correct, > > or that your proposed chang

Re: [PATCH 11/23] docs/qapidoc: add preamble() method

2025-01-14 Thread Markus Armbruster
John Snow writes: > On Fri, Jan 10, 2025 at 7:19 AM Markus Armbruster wrote: > >> John Snow writes: >> >> > On Thu, Jan 9, 2025, 5:34 AM Markus Armbruster wrote: >> > >> >> John Snow writes: >> >> >> >> > On Fri, Dec 20, 2024 at 9:15 AM Markus Armbruster >> >> > wrote: >> >> > >> >> >> John

[PATCH v3] feat: add loongarch page table walker support for debugger memory access

2025-01-14 Thread Miao Hao
Signed-off-by: Miao Hao --- v1 -> v2: 1. Addressed review comments. 2. Fix the assignment of variable shift. v2 -> v3: 1. Remove variable shift. target/loongarch/cpu_helper.c | 94 +-- target/loongarch/internals.h | 4 +- target/loongarch/tcg

Re: [PATCH] feat: add loongarch page table walker support for debugger memory access

2025-01-14 Thread Miao Hao
On 2025/1/14 17:00, bibo mao wrote: Miao, What is status about this patch? Will there be updated version? Regards Bibo Mao Sorry, I'm waiting for your reply. I have just updated the patch for version 3. Regards Miao Hao On 2025/1/2 下午2:33, Miao Hao wrote: On 2024/12/31 19:29, bibo

Re: [PATCH] hw/timer: fix int underflow

2025-01-14 Thread Peter Maydell
On Tue, 14 Jan 2025 at 06:41, Дмитрий Фролов wrote: > > Hello, Peter. > I beg a pardon, but I guess, we have a misunderstanding here. > > The problem is that comparison "if (limit < 0)" will never > be true. Thus, "true" branch is unreachable. According to > the comment below, it was assumed that

Re: [PATCH] feat: add loongarch page table walker support for debugger memory access

2025-01-14 Thread bibo mao
On 2025/1/14 下午5:55, Miao Hao wrote: On 2025/1/14 17:00, bibo mao wrote: Miao, What is status about this patch? Will there be updated version? Regards Bibo Mao Sorry, I'm waiting for your reply. I have just updated the patch for version 3. That is fine :) PTE width is only 64 bit now,

[PATCH] target/riscv/csr.c: Turn off mstatus.vs when misa.v is turned off

2025-01-14 Thread Evgenii Prokopiev
A behavior of misa.v must be similar as misa.f. So when this bit's field is turned off, mstatus.vs must be turned off too. It follows from the privileged manual of RISC-V, paragraph 3.1.1. "Machine ISA (misa) Register". Signed-off-by: Evgenii Prokopiev --- target/riscv/csr.c | 4 1 file cha

Re: [PATCH v3 1/8] qapi: golang: Generate enum type

2025-01-14 Thread Victor Toso
Hi, On Tue, Jan 14, 2025 at 09:52:23AM +0100, Markus Armbruster wrote: > Victor Toso writes: > > > This patch handles QAPI enum types and generates its equivalent in Go. > > We sort the output based on enum's type name. > > Any particular reason for sorting? It was a request from Daniel that I

[PATCH 1/2] hw/riscv/riscv-iommu: Remove redundant variables

2025-01-14 Thread Jason Chien
Signed-off-by: Jason Chien --- hw/riscv/riscv-iommu.h | 5 - 1 file changed, 5 deletions(-) diff --git a/hw/riscv/riscv-iommu.h b/hw/riscv/riscv-iommu.h index 9424989df4..fa8a50fa24 100644 --- a/hw/riscv/riscv-iommu.h +++ b/hw/riscv/riscv-iommu.h @@ -58,11 +58,6 @@ struct RISCVIOMMUState {

[PATCH 2/2] hw/riscv/riscv-iommu-bits: Remove redundant definitions

2025-01-14 Thread Jason Chien
Signed-off-by: Jason Chien --- hw/riscv/riscv-iommu-bits.h | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/hw/riscv/riscv-iommu-bits.h b/hw/riscv/riscv-iommu-bits.h index 485f36b9c9..de599b80d6 100644 --- a/hw/riscv/riscv-iommu-bits.h +++ b/hw/riscv/ris

Re: [PULL 04/49] hw: Add QOM parentship relation with CPUs

2025-01-14 Thread Igor Mammedov
On Mon, 13 Jan 2025 17:00:55 +0100 Philippe Mathieu-Daudé wrote: > On 13/1/25 13:28, Igor Mammedov wrote: > > On Sun, 12 Jan 2025 23:16:40 +0100 > > Philippe Mathieu-Daudé wrote: > > > >> QDev objects created with object_new() need to manually add > >> their parent relationship with object_pr

Re: [PATCH 0/3] cpuhp: ensure that cpu hotremove works the 1st time

2025-01-14 Thread Igor Mammedov
On Tue, 10 Dec 2024 17:39:42 +0100 Igor Mammedov wrote: > CPU hotremove event is not delivered to OSPM if the CPU > has been hotplugged before OS has booted. > For details see [2/3]. Michael, can you pick it up please? > > Igor Mammedov (3): > tests: acpi: whitelist expected blobs > cpuhp:

[PATCH v2 08/37] system/vl: more error exit into config enumeration code

2025-01-14 Thread Alex Bennée
All of the failures to configure devices will result in QEMU exiting with an error code. In preparation for passing Error * down the chain re-name the iterator to foreach_device_config_or_exit and exit using &error_fatal instead of returning a failure indication. Message-Id: <20250109170619.227119

[PATCH v2 35/37] docs: add a codebase section

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Present the various parts of QEMU and organization of codebase. Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241209183104.365796-6-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- docs/about/emulation.rst | 2

[PATCH v2 14/37] tests/tcg/plugins/mem: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241217224306.2900490-5-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- tests/tcg/plugins/mem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tcg/p

[PATCH v2 03/37] semihosting/syscalls: Include missing 'exec/cpu-defs.h' header

2025-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé target_ulong is defined in each target "cpu-param.h", itself included by "exec/cpu-defs.h". Include the latter in order to avoid when refactoring: include/semihosting/syscalls.h:26:24: error: unknown type name 'target_ulong' 26 |target_

[PATCH v2 33/37] docs/devel: add b4 for patch retrieval

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Message-Id: <20241209183104.365796-4-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- docs/devel/submitting-a-patch.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/docs/dev

[PATCH v2 01/37] semihosting: add guest_error logging for failed opens

2025-01-14 Thread Alex Bennée
This usually indicates the semihosting call was expecting to find something but didn't. Message-Id: <20250109170619.2271193-2-alex.ben...@linaro.org> Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée --- semihosting/syscalls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/semihos

[PATCH v2 09/37] system: squash usb_parse into a single function

2025-01-14 Thread Alex Bennée
We don't need to wrap usb_device_add as usb_parse is already gated with an if (machine_usb(current_machine)) check. Instead just assert and directly fail if usbdevice_create returns NULL. Message-Id: <20250109170619.2271193-10-alex.ben...@linaro.org> Reviewed-by: Philippe Mathieu-Daudé Signed-off

[PATCH v2 25/37] plugins: enable linking with clang/lld

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Windows uses a special mechanism to enable plugins to work (DLL delay loading). Option for lld is different than ld. MSYS2 clang based environment use lld by default, so restricting to this config on Windows is safe, and will avoid false bug reports. Reviewed-by: Philippe

[PATCH v2 17/37] contrib/plugins/hotblocks: fix 32-bit build

2025-01-14 Thread Alex Bennée
From: Pierrick Bouvier Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson Message-Id: <20241217224306.2900490-8-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- contrib/plugins/hotblocks.c | 29 - 1 file changed, 24 insertions(+), 5 deletions

[PATCH v2 04/37] semihosting/uaccess: Include missing 'exec/cpu-all.h' header

2025-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé TLB_INVALID_MASK is defined in "exec/cpu-all.h". Include it in order to avoid when refactoring: ../semihosting/uaccess.c:41:21: error: use of undeclared identifier 'TLB_INVALID_MASK' 41 | if (flags & TLB_INVALID_MASK) { | ^

Re: [PATCH v1] hw/intc/riscv_aplic: Remove redundant masking of hart_idx in riscv_aplic_msi_send()

2025-01-14 Thread Daniel Henrique Barboza
On 1/13/25 11:53 PM, Huang Borong wrote: The line "hart_idx &= APLIC_xMSICFGADDR_PPN_LHX_MASK(lhxw);" was removed because the same operation is performed later in the address calculation. This change improves code clarity and avoids unnecessary operations. Signed-off-by: Huang Borong --- h

Re: [PATCH v6 34/60] i386/tdx: implement tdx_cpu_realizefn()

2025-01-14 Thread Daniel P . Berrangé
On Tue, Jan 14, 2025 at 04:52:07PM +0800, Xiaoyao Li wrote: > On 12/13/2024 6:04 AM, Ira Weiny wrote: > > On Tue, Nov 05, 2024 at 12:53:25PM +0100, Paolo Bonzini wrote: > > > On 11/5/24 12:38, Xiaoyao Li wrote: > > > > On 11/5/2024 6:06 PM, Paolo Bonzini wrote: > > > > > On 11/5/24 07:23, Xiaoyao L

Re: [PATCH 2/2] hw/riscv/riscv-iommu-bits: Remove redundant definitions

2025-01-14 Thread Daniel Henrique Barboza
On 1/14/25 6:36 AM, Jason Chien wrote: Signed-off-by: Jason Chien --- Reviewed-by: Daniel Henrique Barboza hw/riscv/riscv-iommu-bits.h | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/hw/riscv/riscv-iommu-bits.h b/hw/riscv/riscv-iommu-bits.h

[PATCH 1/4] target/riscv: add ssu64xl

2025-01-14 Thread Daniel Henrique Barboza
ssu64xl is defined in RVA22 as: "sstatus.UXL must be capable of holding the value 2 (i.e., UXLEN=64 must be supported)." This is always true in TCG and it's mandatory for RVA23, so claim support for it. Signed-off-by: Daniel Henrique Barboza --- target/riscv/cpu.c| 1 + tests

Re: [PATCH v2 11/13] hw/i2c/imx_i2c: Convert DPRINTF() to trace events

2025-01-14 Thread Corey Minyard
On Sat, Jan 11, 2025 at 07:37:09PM +0100, Bernhard Beschow wrote: > Also print the QOM canonical path when tracing which allows for distinguishing > the many instances a typical i.MX SoC has. > > Reviewed-by: Philippe Mathieu-Daudé > Tested-by: Philippe Mathieu-Daudé > Signed-off-by: Bernhard Be

Re: [PATCH 1/2] hw/riscv/riscv-iommu: Remove redundant variables

2025-01-14 Thread Daniel Henrique Barboza
On 1/14/25 6:36 AM, Jason Chien wrote: Signed-off-by: Jason Chien --- Reviewed-by: Daniel Henrique Barboza hw/riscv/riscv-iommu.h | 5 - 1 file changed, 5 deletions(-) diff --git a/hw/riscv/riscv-iommu.h b/hw/riscv/riscv-iommu.h index 9424989df4..fa8a50fa24 100644 --- a/hw/riscv/

[PATCH 2/4] target/riscv: use RVB in RVA22U64

2025-01-14 Thread Daniel Henrique Barboza
>From the time we added RVA22U64 until now the spec didn't declare 'RVB' as a dependency, using zba/zbb/zbs instead. Since then the RVA22 spec [1] added the following in the 'RVA22U64 Mandatory Extensions' section: "B Bit-manipulation instructions Note: The B extension comprises the Zba, Zbb, and

[PATCH 4/4] target/riscv: add RVA23S64 profile

2025-01-14 Thread Daniel Henrique Barboza
Add RVA23S64 as described in [1]. This profile inherits all mandatory extensions of RVA23U64, making it a child of the U64 profile. A new "rva23s64" profile CPU is also added. This is the generated riscv,isa for it (taken via -M dumpdtb): rv64imafdcbvh_zic64b_zicbom_zicbop_zicboz_ziccamoa_ziccif_

Re: [PATCH v4 1/7] hwpoison_page_list and qemu_ram_remap are based on pages

2025-01-14 Thread David Hildenbrand
On 10.01.25 21:56, William Roche wrote: On 1/8/25 22:34, David Hildenbrand wrote: On 14.12.24 14:45, “William Roche wrote: From: William Roche Subject should likely start with "system/physmem:". Maybe "system/physmem: handle hugetlb correctly in qemu_ram_remap()" I updated the commit tit

Re: [PATCH] Add zh_TW Traditional Chinese translation

2025-01-14 Thread Daniel P . Berrangé
On Tue, Jan 14, 2025 at 01:45:03PM +, Peter Dave Hello wrote: > On Tuesday, June 25th, 2024 at AM 1:06, Daniel P. Berrangé > wrote: > > > We can't give legal advice, but the QEMU project doesn't do > > > copyright assignment. Copyright remains with the original author > > > (or with their emp

Re: [RFC 07/13] rust: add bindings for timer

2025-01-14 Thread Zhao Liu
Hi Paolo, Thanks for your FnCall and the guidance below... > This gets tricky when you have more than one timer per device. With the right > infrastructure we can make this something like > > fn timer_init_full<'a, 'b: 'a, T, F: 'b Fn(&'b T)>( > &'a mut self, > timer_list_gr

Re: [RFC 07/13] rust: add bindings for timer

2025-01-14 Thread Zhao Liu
On Tue, Jan 14, 2025 at 11:36:48PM +0800, Zhao Liu wrote: > Date: Tue, 14 Jan 2025 23:36:48 +0800 > From: Zhao Liu > Subject: Re: [RFC 07/13] rust: add bindings for timer > > Hi Paolo, > > Thanks for your FnCall and the guidance below... > > > This gets tricky when you have more than one timer

Re: [PATCH 4/4] target/riscv: add RVA23S64 profile

2025-01-14 Thread Andrew Jones
On Tue, Jan 14, 2025 at 10:20:12AM -0300, Daniel Henrique Barboza wrote: > Add RVA23S64 as described in [1]. This profile inherits all mandatory > extensions of RVA23U64, making it a child of the U64 profile. > > A new "rva23s64" profile CPU is also added. This is the generated > riscv,isa for it

Re: [PATCH 2/2] hw/riscv/riscv-iommu-bits: Remove redundant definitions

2025-01-14 Thread Andrew Jones
On Tue, Jan 14, 2025 at 05:36:46PM +0800, Jason Chien wrote: > Signed-off-by: Jason Chien > --- > hw/riscv/riscv-iommu-bits.h | 22 ++ > 1 file changed, 6 insertions(+), 16 deletions(-) > > diff --git a/hw/riscv/riscv-iommu-bits.h b/hw/riscv/riscv-iommu-bits.h > index 485f36b

Re: [PATCH 1/2] hw/riscv/riscv-iommu: Remove redundant variables

2025-01-14 Thread Andrew Jones
s/redundant/unused/ <<<$SUBJECT s/variables/struct members/ <<<$SUBJECT Both this and the previous patch should get some sort of commit message explaining how the unused and redundant elements where found. On Tue, Jan 14, 2025 at 05:36:45PM +0800, Jason Chien wrote: > Signed-off-by: Jason Chien

Re: [RFC 07/13] rust: add bindings for timer

2025-01-14 Thread Paolo Bonzini
On Tue, Jan 14, 2025 at 4:18 PM Zhao Liu wrote: > ...Now I have a draft for timer binding: > > * timer binding: > > impl QEMUTimer { > pub fn new() -> Self { > Zeroable::ZERO > } Maybe Default too (not sure if you even need new())? > pub fn timer_init_full<'a, 'b: 'a, T, F>(

Re: [PATCH 2/4] target/riscv: use RVB in RVA22U64

2025-01-14 Thread Daniel Henrique Barboza
On 1/14/25 11:52 AM, Andrew Jones wrote: On Tue, Jan 14, 2025 at 10:20:10AM -0300, Daniel Henrique Barboza wrote: From the time we added RVA22U64 until now the spec didn't declare 'RVB' as a dependency, using zba/zbb/zbs instead. Since then the RVA22 spec [1] added the following in the 'RVA2

Re: [PATCH 4/4] target/riscv: add RVA23S64 profile

2025-01-14 Thread Daniel Henrique Barboza
On 1/14/25 12:25 PM, Andrew Jones wrote: On Tue, Jan 14, 2025 at 10:20:12AM -0300, Daniel Henrique Barboza wrote: Add RVA23S64 as described in [1]. This profile inherits all mandatory extensions of RVA23U64, making it a child of the U64 profile. A new "rva23s64" profile CPU is also added. Th

Re: [PATCH v1 0/5] Report vfio-ap configuration changes

2025-01-14 Thread Rorie Reyes
On 1/7/25 2:06 PM, Alex Williamson wrote: Why are configuration changes to the device allowed while the device is in use? Would a uevent be considered an inefficient mechanism? Why? Thanks, Alex I believe a vfio device is typically used to pass through a single I/O device, like a VGPU or P

Re: [PATCH 2/4] target/riscv: use RVB in RVA22U64

2025-01-14 Thread Andrew Jones
On Tue, Jan 14, 2025 at 01:08:46PM -0300, Daniel Henrique Barboza wrote: > > > On 1/14/25 11:52 AM, Andrew Jones wrote: > > On Tue, Jan 14, 2025 at 10:20:10AM -0300, Daniel Henrique Barboza wrote: > > > From the time we added RVA22U64 until now the spec didn't declare 'RVB' > > > as a dependency

  1   2   3   >