KVM/QEMU community call 4/2/2025 agenda items

2025-01-31 Thread Alex Bennée
Hi, The KVM/QEMU community call is at: https://meet.jit.si/kvmcallmeeting @ 04/02/2025 14:00 UTC Are there any agenda items for the sync-up? -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: How does "rsi" get set in x86 prologue?

2025-01-31 Thread Alex Bennée
Gautam Bhat writes: > On Thu, Jan 2, 2025 at 3:45 PM Alex Bennée wrote: > >> The call into the prologue comes from: >> >> ret = tcg_qemu_tb_exec(cpu_env(cpu), tb_ptr); >> >> in cpu_tb_exec. With env in RDI and tb_ptr (the code address) being i

Re: [PATCH 4/6] tcg:tlb: use tcg_debug_assert() in assert_cpu_is_self()

2025-01-31 Thread Alex Bennée
n unnoticed. > > 1) 30933c4fb4f3d ("tcg/cputlb: remove other-cpu capability from TLB flushing") > Signed-off-by: Igor Mammedov > Suggested-by: Alex Bennée > --- > accel/tcg/cputlb.c | 11 --- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff

Re: [PATCH v2 5/5] vfio/igd: handle x-igd-opregion in vfio_probe_igd_config_quirk()

2025-01-30 Thread Alex Williamson
On Fri, 31 Jan 2025 02:33:03 +0800 Tomita Moeko wrote: > On 1/25/25 15:42, Tomita Moeko wrote: > > On 1/25/25 05:13, Alex Williamson wrote: > >> On Sat, 25 Jan 2025 03:12:45 +0800 > >> Tomita Moeko wrote: > >> > >>> Both enable opregion

Re: [PATCH v2 8/9] vfio: Check compatibility of CPU and IOMMU address space width

2025-01-30 Thread Alex Williamson
ication to the user how they can resolve the issue, such as implemented here, is better than none, but maybe we can elaborate in a comment that this is really more of a workaround for the current behavior of firmware relative to the 64-bit MMIO placement policy. Thanks, Alex > +error_setg

Re: [PATCH v2 1/9] util/error: Introduce warn_report_once_err()

2025-01-30 Thread Alex Williamson
\ }) So long as we only want once per call site and not once per object, which would pull in something like warn_report_once_cond(). Thanks, Alex > /* > * Convenience function to error_report() and free @err. > * The report includes h

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

2025-01-28 Thread Alex Bennée
ses, l1_dmisses, > | ^~~~ > > Is a false-positive, since cores > 1, so the variable is set in the > above loop. > > Signed-off-by: Marc-André Lureau Queued to plugins/next, thanks. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 2/2] plugin: extend API with qemu_plugin_tb_size

2025-01-28 Thread Alex Bennée
elf -Wmissing-format-attribute -Wmissing-prototypes -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -Wshadow=local -Wstrict-prototypes -Wtype-limits -Wundef -Wvla -Wwrite-strings -Wno-missing-include-dirs -Wno-psabi -Wno-shift-negative-value -isystem /home/ale

Re: [PATCH 1/2] plugin: extend API with qemu_plugin_tb_get_insn_by_vaddr

2025-01-28 Thread Alex Bennée
urn NULL; > +} > + I don't have any fundamental objection to this. I would prefer it if the new helper was used by either one of the test or contrib plugins to ensure we don't bitrot it. > /* > * Instruction information > * -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 0/1] meson: Deprecate 32-bit host systems

2025-01-28 Thread Alex Bennée
G_TYPE_I64 would remove a *lot* of >> 32-bit fallback code. I support going the whole hog. I would be curious what use cases still exist for an up to date 32-on-32 QEMU based emulation? > > Sound like a good alternative to me! > > Thomas -- Alex Bennée Virtualisation Tech Lead @ Linaro

Updated invitation: QEMU/KVM developers conference call @ Every 2 weeks from 14:00 to 15:00 on Tuesday (GMT) (qemu-devel@nongnu.org)

2025-01-27 Thread Alex Bennée
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VTIMEZONE TZID:America/New_York X-LIC-LOCATION:America/New_York BEGIN:DAYLIGHT TZOFFSETFROM:-0500 TZOFFSETTO:-0400 TZNAME:EDT DTSTART:19700308T02 RRULE:FREQ=YEARLY;BYMONTH=3;BYD

Updated invitation: QEMU/KVM developers conference call @ Every 2 weeks from 14:00 to 15:00 on Tuesday from Tue 26 Nov 2024 to Tue 4 Feb (GMT) (qemu-devel@nongnu.org)

2025-01-27 Thread Alex Bennée
BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REQUEST BEGIN:VTIMEZONE TZID:America/New_York X-LIC-LOCATION:America/New_York BEGIN:DAYLIGHT TZOFFSETFROM:-0500 TZOFFSETTO:-0400 TZNAME:EDT DTSTART:19700308T02 RRULE:FREQ=YEARLY;BYMONTH=3;BYD

Re: [PATCH v6 04/10] virtio-gpu: Support asynchronous fencing

2025-01-27 Thread Alex Bennée
encing mode isn't supported for DRM > contexts in virglrenderer. > > Reviewed-by: Akihiko Odaki > Acked-by: Michael S. Tsirkin > Tested-by: Alex Bennée > Signed-off-by: Dmitry Osipenko Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v6 00/10] Support virtio-gpu DRM native context

2025-01-27 Thread Alex Bennée
opened > - Asahi (Apple SoC GPUs), partially merged upstream > -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v5 0/8] Support virtio-gpu DRM native context

2025-01-27 Thread Alex Bennée
Dmitry Osipenko writes: > On 1/23/25 14:58, Alex Bennée wrote: >> Dmitry Osipenko writes: >> >>> On 1/22/25 20:00, Alex Bennée wrote: >>>> Dmitry Osipenko writes: >>>> >>>>> This patchset adds DRM native context support to VirtIO

Re: [PATCH v6 10/10] docs/system: virtio-gpu: Document host/guest requirements

2025-01-27 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/01/27 5:11, Dmitry Osipenko wrote: >> From: Alex Bennée >> This attempts to tidy up the VirtIO GPU documentation to make the >> list >> of requirements clearer. There are still a lot of moving parts and the >> distros have some

Re: [PULL 15/32] tests/functional/aarch64: add tests for FEAT_RME

2025-01-25 Thread Alex Bennée
Pierrick Bouvier writes: > Hi Thomas, > > On 1/24/25 05:29, Thomas Huth wrote: >> On 10/01/2025 14.17, Alex Bennée wrote: >>> From: Pierrick Bouvier >>> >>> This boot an OP-TEE environment, and launch a nested guest VM inside it >>> using

Re: [PATCH v2 5/5] vfio/igd: handle x-igd-opregion in vfio_probe_igd_config_quirk()

2025-01-24 Thread Alex Williamson
scenario. > - */ > -if (vdev->pdev.qdev.hotplugged) { > -error_report("IGD device %s hotplugged, ROM disabled, " > - "legacy mode disabled", vdev->vbasedev.name); > -vdev->rom_read_failed = true; > -

Re: [PATCH 02/76] tests/tcg/x86_64/fma: Test some x86 fused-multiply-add cases

2025-01-24 Thread Alex Bennée
if (r != tests[i].expected_r) { > +printf("expected result 0x%" PRIx64 "\n", tests[i].expected_r); > +passed = false; > +} > +if (mxcsr != tests[i].expected_mxcsr) { > +printf("expected MXCSR flags 0x%x\n", tests[i].expected_mxcsr); > +passed = false; > +} > +} > +return passed ? 0 : 1; > +} > diff --git a/tests/tcg/x86_64/Makefile.target > b/tests/tcg/x86_64/Makefile.target > index d6dff559c7d..be20fc64e88 100644 > --- a/tests/tcg/x86_64/Makefile.target > +++ b/tests/tcg/x86_64/Makefile.target > @@ -18,6 +18,7 @@ X86_64_TESTS += adox > X86_64_TESTS += test-1648 > X86_64_TESTS += test-2175 > X86_64_TESTS += cross-modifying-code > +X86_64_TESTS += fma > TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64 > else > TESTS=$(MULTIARCH_TESTS) -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 3/4] vfio/igd: refactor vfio_probe_igd_bar4_quirk() into pci config quirk

2025-01-24 Thread Alex Williamson
cessary (seems I wouldn't have invented such a need), removing it is really the only way to fully validate that, and we can always revisit if we start getting regression reports. Thanks, Alex > Signed-off-by: Tomita Moeko > --- > hw/vfio/igd.c| 30

Re: [PATCH] tcg: drop qemu_cpu_is_self() in tlb_flush_by_mmuidx[_async_work]

2025-01-24 Thread Alex Bennée
Igor Mammedov writes: > On Thu, 23 Jan 2025 12:23:43 +0100 > Igor Mammedov wrote: > >> On Thu, 23 Jan 2025 10:52:15 + >> Alex Bennée wrote: >> >> > Igor Mammedov writes: >> > >> > > QEMU will crash with following debug ena

Re: [PATCH] tests/functional: Add a test for the arm microbit machine

2025-01-24 Thread Alex Bennée
;Type "help()" for more information.') > +exec_command_and_wait_for_pattern(self, 'import machine as mch', > '>>>') > +exec_command_and_wait_for_pattern(self, 'mch.reset()', 'MicroPython') > +wait_for_console_pattern(self, '>>>') We could do more if we wanted - all the microbit specific stuff lives in the microbit module: https://microbit-micropython.readthedocs.io/en/latest/microbit_micropython_api.html Anyway: Reviewed-by: Alex Bennée > + > +if __name__ == '__main__': > +QemuSystemTest.main() -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 03/20] gdbstub: Check for TCG before calling tb_flush()

2025-01-24 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Use the tcg_enabled() check so the compiler can elide > the call when TCG isn't available, allowing to remove > the tb_flush() stub. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH] tcg: drop qemu_cpu_is_self() in tlb_flush_by_mmuidx[_async_work]

2025-01-23 Thread Alex Bennée
Igor Mammedov writes: > On Thu, 23 Jan 2025 10:52:15 + > Alex Bennée wrote: > >> Igor Mammedov writes: >> >> > QEMU will crash with following debug enabled >> > # define DEBUG_TLB_GATE 1 >> > # define DEBUG_TLB_LOG_GA

Re: [PATCH v5 0/8] Support virtio-gpu DRM native context

2025-01-23 Thread Alex Bennée
Dmitry Osipenko writes: > On 1/22/25 20:00, Alex Bennée wrote: >> Dmitry Osipenko writes: >> >>> This patchset adds DRM native context support to VirtIO-GPU on Qemu. >>> >>> Contarary to Virgl and Venus contexts that mediates high level GFX APIs, >&

Re: [PATCH] tcg: drop qemu_cpu_is_self() in tlb_flush_by_mmuidx[_async_work]

2025-01-23 Thread Alex Bennée
+417,6 @@ void tlb_flush_by_mmuidx(CPUState *cpu, uint16_t idxmap) > { > tlb_debug("mmu_idx: 0x%" PRIx16 "\n", idxmap); > > -assert_cpu_is_self(cpu); > - > tlb_flush_by_mmuidx_async_work(cpu, RUN_ON_CPU_HOST_INT(idxmap)); > } -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2 08/10] gdbstub: Prefer cached CpuClass over CPU_GET_CLASS() macro

2025-01-22 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > CpuState caches its CPUClass since commit 6fbdff87062 > ("cpu: cache CPUClass in CPUState for hot code paths"), > use it. > > Signed-off-by: Philippe Mathieu-Daudé > Reviewed-by: Richard Henderson Acked-by: Alex Bennée -- Ale

Re: [PATCH v2 02/10] gdbstub: Clarify no more than @gdb_num_core_regs can be accessed

2025-01-22 Thread Alex Bennée
le code on > the microblaze and tricore implementations. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [RFC 1/1 v3] target/riscv: use tcg ops generation to emulate whole reg rvv loads/stores.

2025-01-22 Thread Alex Bennée
re32_v, int32_t, 2, true) > +GEN_LDST_WHOLE_TRANS(vl2re64_v, int64_t, 2, true) > +GEN_LDST_WHOLE_TRANS(vl4re8_v, int8_t, 4, true) > +GEN_LDST_WHOLE_TRANS(vl4re16_v, int16_t, 4, true) > +GEN_LDST_WHOLE_TRANS(vl4re32_v, int32_t, 4, true) > +GEN_LDST_WHOLE_TRANS(vl4re64_v, int64_t, 4,

Re: [PATCH] tests/functional: Fix the aarch64_tcg_plugins test

2025-01-22 Thread Alex Bennée
suffix=".log") > @@ -91,7 +91,7 @@ def test_aarch64_virt_insn_icount(self): > kernel_path = self.ASSET_KERNEL.fetch() > kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + > 'console=ttyAMA0') > -console_pattern = 'Kernel panic - not syncing: VFS:' > +console_pattern = 'Please append a correct "root=" boot option' > > plugin_log = tempfile.NamedTemporaryFile(mode="r+t", prefix="plugin", > suffix=".log") -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v5 0/8] Support virtio-gpu DRM native context

2025-01-22 Thread Alex Bennée
ype 'help' for more information (qemu) quit Which looks very much like the PFN locking failure. However booting up with venus=on instead works. Could there be any differences in the way device memory is mapped in the two cases? > - Intel (i915), merge requests are opened &g

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

2025-01-22 Thread Alex Bennée
v=char0,mode=readline \ -chardev hub,id=hub0,chardevs.0=char0,chardevs.1=clog Giving: qemu-system-aarch64: -chardev -hub,id=hub0,chardevs.0=char0,chardevs.1=clog: hub: -multiplexers and hub devices can't be stacked, check chardev -'char0', chardev should not be a hub device or have 'mux=on' -enabled So what stops this sort of chain? -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2 4/5] hw/arm: enable secure EL2 timers for virt machine

2025-01-22 Thread Alex Bennée
Peter Maydell writes: > On Wed, 18 Dec 2024 at 18:15, Alex Bennée wrote: >> >> Signed-off-by: Alex Bennée >> Cc: qemu-sta...@nongnu.org >> --- >> hw/arm/virt.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/hw/arm/virt.c b/h

Re: [PATCH v7 4/4] qemu-options.hx: describe hub chardev and aggregation of several backends

2025-01-21 Thread Alex Bennée
Roman Penyaev writes: > On Tue, Jan 21, 2025 at 4:02 PM Alex Bennée wrote: >> >> Roman Penyaev writes: >> >> > This adds a few lines describing `hub` aggregator configuration >> > for aggregation of several backend devices with a single frontend >

Re: [PATCH v7 1/4] chardev/char-pty: send CHR_EVENT_CLOSED on disconnect

2025-01-21 Thread Alex Bennée
j) > pty_chr_state(chr, 0); > object_unref(OBJECT(s->ioc)); > pty_chr_timer_cancel(s); > -qemu_chr_be_event(chr, CHR_EVENT_CLOSED); > } It would be nice to clean up connected/s->connected to bools at some point. However this is fine: Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v7 4/4] qemu-options.hx: describe hub chardev and aggregation of several backends

2025-01-21 Thread Alex Bennée
+:: > + > + # Start TTY emulator > + tio /tmp/pty > + > + # Start VNC client and switch to virtual console Ctrl-Alt-2 > + vncviewer :0 > + > +Several frontend devices is not supported. Stacking of multiplexers > +and hub devices is not supp

Re: [PATCH 09/11] target/arm: Prefer cached CpuClass over CPU_GET_CLASS() macro

2025-01-21 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > CpuState caches its CPUClass since commit 6fbdff87062 > ("cpu: cache CPUClass in CPUState for hot code paths"), > use it. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 06/11] gdbstub: Prefer cached CpuClass over CPU_GET_CLASS() macro

2025-01-21 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > CpuState caches its CPUClass since commit 6fbdff87062 > ("cpu: cache CPUClass in CPUState for hot code paths"), > use it. > > Signed-off-by: Philippe Mathieu-Daudé Acked-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [RFC PATCH] tests/qtest: don't step clock at start of npcm7xx periodic IRQ test

2025-01-21 Thread Alex Bennée
. Of course. > > On Mon, Jan 20, 2025 at 11:00 PM Alex Bennée wrote: > > Until there are timers enabled the semantics of clock_step_next() will > fail. Since d524441a36 (system/qtest: properly feedback results of > clock_[step|set]) we will signal a FAIL if time doesn

[PATCH 5/7] tests/qtest: rename qtest_send_prefix and roll-up into qtest_send

2025-01-20 Thread Alex Bennée
). Signed-off-by: Alex Bennée --- include/system/qtest.h | 1 - hw/ppc/spapr_rtas.c| 1 - hw/riscv/riscv_hart.c | 1 - system/qtest.c | 26 +++--- 4 files changed, 3 insertions(+), 26 deletions(-) diff --git a/include/system/qtest.h b/include/system/qtest.h index

[PATCH 3/7] tests/qtest: don't step clock at start of npcm7xx periodic IRQ test

2025-01-20 Thread Alex Bennée
Until there are timers enabled the semantics of clock_step_next() will fail. Since d524441a36 (system/qtest: properly feedback results of clock_[step|set]) we will signal a FAIL if time doesn't advance. Signed-off-by: Alex Bennée --- tests/qtest/npcm7xx_timer-test.c | 1 - 1 file chang

[PATCH 7/7] Revert "util/timer: avoid deadlock when shutting down"

2025-01-20 Thread Alex Bennée
desirable for tests which are checking that nothing changes when things are disabled. Previously most tests got away with it because --enable-slirp always has a timer running while the test is active. Signed-off-by: Alex Bennée Cc: Peter Maydell --- util/qemu-timer.c | 16 +++- 1 file

[PATCH 6/7] tests/qtest: tighten up the checks on clock_step

2025-01-20 Thread Alex Bennée
It is invalid to call clock_step with an implied time to step forward as if no timers are running we won't be able to advance. Signed-off-by: Alex Bennée --- system/qtest.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/system/qtest.c b/system/qtest.c index 28b6f

[PATCH 2/7] tests/qtest: don't attempt to clock_step while waiting for virtio ISR

2025-01-20 Thread Alex Bennée
This replicates the changes from 92cb8f8bf6 (tests/qtest: remove clock_steps from virtio tests) as there are no timers in the virtio code. We still busy wait and timeout though. Signed-off-by: Alex Bennée --- tests/qtest/libqos/virtio-pci-modern.c | 6 ++ tests/qtest/libqos/virtio-pci.c

[PATCH 1/7] tests/docker: replicate the check-rust-tools-nightly CI job

2025-01-20 Thread Alex Bennée
This allows people to run the test locally: make docker-test-rust@fedora-rust-nightly Signed-off-by: Alex Bennée --- tests/docker/Makefile.include | 3 +++ tests/docker/test-rust| 21 + 2 files changed, 24 insertions(+) create mode 100755 tests/docker/test-rust

[PATCH 4/7] tests/qtest: simplify qtest_process_inbuf

2025-01-20 Thread Alex Bennée
Don't both creating a GString to temporarily hold our qtest command. Instead do a simpler g_strndup and use autofree to clean up afterwards. Signed-off-by: Alex Bennée --- system/qtest.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/system/qtes

[PATCH 0/7] testing/next (qtest timer stuff)

2025-01-20 Thread Alex Bennée
s/qtest: rename qtest_send_prefix and roll-up into qtest_send tests/qtest: simplify qtest_process_inbuf tests/qtest: don't step clock at start of npcm7xx periodic IRQ test tests/qtest: don't attempt to clock_step while waiting for virtio ISR tests/docker: replicate the check-rust-tools-ni

KVM/QEMU Community Call 21/01/25 agenda items?

2025-01-20 Thread Alex Bennée
Hi, The KVM/QEMU community call is at: https://meet.jit.si/kvmcallmeeting @ 21/01/2025 14:00 UTC Are there any agenda items for the sync-up? -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2 03/81] tcg: Move tcg_op_insert_{after, before} decls to tcg-internal.h

2025-01-17 Thread Alex Bennée
Richard Henderson writes: > These are not particularly useful outside of optimization passes. > > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2 01/81] tcg: Move call abi parameters from tcg-target.h to tcg-target.c.inc

2025-01-17 Thread Alex Bennée
Richard Henderson writes: > These defines are not required outside of tcg/tcg.c, > which includes tcg-target.c.inc before use. > Reduces the exported symbol set of tcg-target.h. > > Reviewed-by: Philippe Mathieu-Daudé > Signed-off-by: Richard Henderson Reviewed-by: Alex

Re: [PATCH v6 0/8] gdbstub: Allow late attachment

2025-01-17 Thread Alex Bennée
Ds. > > If this series is accepted, I will rebase the all-stop series on top > of it. Queued to gdbstub/next, thanks. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v6 6/8] gdbstub: Allow late attachment

2025-01-17 Thread Alex Bennée
ig() on the > first CPU and wakes it up with host_interrupt_signal. Note that the > result of this gdb_handlesig() invocation is handled, as opposed to > many other existing call sites. These other call sites probably need to > be fixed separately. > > Signed-off-by: Ilya Leosh

Re: [PATCH v6 2/8] gdbstub: Try unlinking the unix socket before binding

2025-01-17 Thread Alex Bennée
oroutine-io.c')) >util_ss.add(files(f'coroutine-@coroutine_backend@.c')) >util_ss.add(files('thread-pool.c', 'qemu-timer.c')) > +endif > +if have_block or have_ga or have_user >util_ss.add(files('qemu-sockets.c')) > endif > if have_block I guess have_block is synonymous with have_system: Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH] rust: add --check-cfg test to rustc arguments

2025-01-17 Thread Alex Bennée
gt; index 5525b3886fa..d79dc6d81f1 100644 > --- a/scripts/rust/rustc_args.py > +++ b/scripts/rust/rustc_args.py > @@ -215,6 +215,8 @@ def main() -> None: > > if rustc_version >= (1, 80): > if args.lints: > +print("--check-cfg") > +

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

2025-01-17 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 Message-Id: <20250116160306.1709518-21-alex.ben...@linaro.org> diff --git a/contrib/plugins/

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

2025-01-17 Thread Alex Bennée
: Philippe Mathieu-Daudé Signed-off-by: Pierrick Bouvier Tested-by: Stefan Weil Tested-by: Philippe Mathieu-Daudé Message-Id: <20250110203401.178532-4-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-26-alex.ben...@linaro.org> diff --git a/m

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

2025-01-17 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 Message-Id: <20250116160306.1709518-33-alex.ben...@linaro.org> diff --git a/docs/devel/submitting-a-

[PULL 26/37] plugins: fix kdoc annotation

2025-01-17 Thread Alex Bennée
The function is qemu_plugin_mem_get_value() Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-27-alex.ben...@linaro.org> diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index 0fba36ae02..3a850aa216 100644 --- a/include/qem

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

2025-01-17 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 Message-Id: <20250116160306.1709518-20-alex.ben...@linaro.org> diff --git a/contrib/plugins/h

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

2025-01-17 Thread Alex Bennée
Message-Id: <20250111215244.1680931-1...@weilnetz.de> Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-38-alex.ben...@linaro.org> diff --git a/scripts/nsis.py b/scripts/nsis.py index 03ed7608a2..af4e064819 100644 --- a/scripts/nsis.py +++ b/scripts/nsis.py @@ -37,10 +

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

2025-01-17 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. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-32-alex.ben...@linaro.org> diff --git a/

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

2025-01-17 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 Mess

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

2025-01-17 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 Message-Id: <20250116160306.1

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

2025-01-17 Thread Alex Bennée
A number of copy and paste kdoc comments are referring to the wrong definition. Fix those cases. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-29-alex.ben...@linaro.org> diff --git a/tests/qtest/libqos/qgraph.h b/tests/qtest/libqos/qgraph.h

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

2025-01-17 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 Message-Id: <20250116160306.1709518-16-alex.ben...@linaro.org> diff --git a/contrib/plugins/sto

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

2025-01-17 Thread Alex Bennée
Since d197063fcf9 (memory: move unassigned_mem_ops to memory.c) this field is unused. Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-31-alex.ben...@linaro.org> diff --git a/includ

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

2025-01-17 Thread Alex Bennée
: Julian Ganz Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-23-alex.ben...@linaro.org> diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 453eb20ec9..d56ca13cdd 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate

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

2025-01-17 Thread Alex Bennée
ared identifier 'EXCP_HALTED' 88 | cs->exception_index = EXCP_HALTED; | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250103171037.11265-5-phi...@linaro.org> Signed-off-by: Alex Bennée Message-

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

2025-01-17 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 Message-Id: <20250116160306.1709518-17-alex.ben...@linaro.org> diff --git a/contrib/plugins/cache

[PULL 35/37] docs/devel: add a codebase section

2025-01-17 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> [AJB: tweak commit summary, update MAINTAINERS] Signed-off-by: Alex

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

2025-01-17 Thread Alex Bennée
A number of copy and paste kdoc comments are referring to the wrong definition. Fix those cases. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-30-alex.ben...@linaro.org> diff --git a/include/exec/memory.h b/include/exec/memory.h index 9458

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

2025-01-17 Thread Alex Bennée
d of checking the return value. Having a return value is still useful for HMP though so tweak the return to use a simple bool instead. Reviewed-by: Pierrick Bouvier Acked-by: Ilya Leoshkevich Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-11-alex.ben...@linaro.org> di

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

2025-01-17 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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20250116160306.17

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

2025-01-17 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 Message-Id: <20250116160306.1709518-19-alex.ben...@linaro.org> diff --git a/contrib/plugins/cflow

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

2025-01-17 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 Message-Id: <20250116160306.1709518-13-alex.ben...@linaro.org> diff --git a/contrib/plugins/howvec

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

2025-01-17 Thread Alex Bennée
rm-compat-semi.c:169: ../target/riscv/common-semi-target.h:16:5: error: use of undeclared identifier 'RISCVCPU' 16 | RISCVCPU *cpu = RISCV_CPU(cs); | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250103171037.11265-4-phi..

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

2025-01-17 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 Message-Id: <20250116160306.1709518-34-alex.ben...@linaro.org> diff --git a/docs/devel/submitting-a-

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

2025-01-17 Thread Alex Bennée
From: Pierrick Bouvier Reviewed-by: Alex Bennée Reviewed-by: Richard Henderson Signed-off-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-12-alex.ben...@linaro.org> diff --git a/tests/tcg/plugins/insn.c b/tests/tcg/plugins/insn.c index baf2

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

2025-01-17 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 Message-Id: <20250116160306.1709518-14-alex.ben...@linaro.org> diff --git a/tests/tcg/plugins/sysca

[PULL 27/37] editorconfig: update for perl scripts

2025-01-17 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 Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id

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

2025-01-17 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 Message-Id: <20250116160306.1709518-18-alex.ben...@linaro.org> diff --git a/contrib/plugins/h

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

2025-01-17 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 Message-Id: <20250116160306.1709518-15-alex.ben...@linaro.org> diff --git a/tests/tcg/plugins/mem.c

[PULL 00/37] maintainer updates for gdb, plugins, documentation and windows builds

2025-01-17 Thread Alex Bennée
windows ndis script ---- Alex Bennée (11): semihosting: add guest_error logging for failed opens system/vl: more error exit into config enumeration code system: squash usb_parse into a single function system: propagate Error to gdbserver_start (and

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

2025-01-17 Thread Alex Bennée
Tested-by: Stefan Weil Tested-by: Philippe Mathieu-Daudé Message-Id: <20250110203401.178532-2-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-24-alex.ben...@linaro.org> diff --git a/meson.build b/meson.build index d06f59095c..da279cc112 10

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

2025-01-17 Thread Alex Bennée
Daudé Reviewed-by: Richard Henderson Message-Id: <20250103171037.11265-6-phi...@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-8-alex.ben...@linaro.org> diff --git a/semihosting/meson.build b/semihosting/meson.build index 34933e5a19..86f5004bed 100644

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

2025-01-17 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 Message-Id: <20250116160306.1709518-22-alex.ben...@linaro.org> diff --git a/configure b/con

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

2025-01-17 Thread Alex Bennée
s & TLB_INVALID_MASK) { | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250103171037.11265-3-phi...@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-5-alex.ben...@linaro.org> diff --git a/semihosting/uaccess.c b/se

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

2025-01-17 Thread Alex Bennée
x27;target_ulong' 26 |target_ulong fname, target_ulong fname_len, |^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250103171037.11265-2-phi...@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20250116160306.

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

2025-01-17 Thread Alex Bennée
hieu-Daudé Reviewed-by: Pierrick Bouvier Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-9-alex.ben...@linaro.org> diff --git a/system/vl.c b/system/vl.c index be029c52ef..22c1444da4 100644 --- a/system/vl.c ++

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

2025-01-17 Thread Alex Bennée
phi...@linaro.org> Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-3-alex.ben...@linaro.org> diff --git a/include/semihosting/uaccess.h b/include/semihosting/uaccess.h index c2fa5a655d..6bc90b12d6 100644 --- a/include/semihosting/uaccess.h +++ b/include/semihosting/uaccess

[PULL 36/37] docs: add a glossary

2025-01-17 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> [AJB: update MAINTAINERS] Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-37-alex.ben...@linaro.org> diff --git a

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

2025-01-17 Thread Alex Bennée
This usually indicates the semihosting call was expecting to find something but didn't. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-Id: <20250116160306.1709518-2-alex.ben...@linaro.org> diff --git a/semihosting/syscalls.c b/semihosting/syscalls.c index

Re: [PATCH v2] qemu/compiler: Absorb 'clang-tsa.h'

2025-01-17 Thread Alex Bennée
/compiler.h" deal with that by having it > include "qemu/clang-tsa.h" (renamed as qemu/clang-tsa.h.inc). > Add a check to not include "qemu/clang-tsa.h.inc" directly, > remove previous "qemu/clang-tsa.h" inclusions. > > Suggested-by: Pierrick Bouvie

Re: [PATCH v2 2/2] accel/tcg: Call tcg_tb_insert() for one-insn TBs

2025-01-17 Thread Alex Bennée
t values; they are > not removed from code_gen_buffer only in order to keep things simple. > > Co-developed-by: Nina Schoetterl-Glausch > Reviewed-by: Richard Henderson > Signed-off-by: Ilya Leoshkevich Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2 1/2] tcg: Document tb_lookup() and tcg_tb_lookup()

2025-01-17 Thread Alex Bennée
Ilya Leoshkevich writes: > These similarly named functions serve different purposes; add > docstrings to highlight them. > > Suggested-by: Alex Bennée > Signed-off-by: Ilya Leoshkevich Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH] vfio: Support P2P access in confidential VM

2025-01-16 Thread Alex Williamson
e.h > @@ -73,7 +73,7 @@ typedef struct VFIORamDiscardListener { > > int vfio_container_dma_map(VFIOContainerBase *bcontainer, > hwaddr iova, ram_addr_t size, > - void *vaddr, bool readonly); > + void

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

2025-01-16 Thread Alex Bennée
: Philippe Mathieu-Daudé Signed-off-by: Pierrick Bouvier Tested-by: Stefan Weil Tested-by: Philippe Mathieu-Daudé Message-Id: <20250110203401.178532-4-pierrick.bouv...@linaro.org> Signed-off-by: Alex Bennée --- meson.build | 5 + contrib/plugins/meson.build | 2 +- p

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

2025-01-16 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

Re: [PATCH v2 0/3] vfio/igd: VFIOConfigMirrorQuirk for igd mirrored registers

2025-01-16 Thread Alex Williamson
igd.c| 125 +++ > hw/vfio/pci-quirks.c | 57 +++- > hw/vfio/pci-quirks.h | 72 + > 3 files changed, 109 insertions(+), 145 deletions(-) > create mode 100644 hw/vfio/pci-quirks.h > Reviewed-by: Alex Williamson

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

2025-01-16 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

  1   2   3   4   5   6   7   8   9   10   >