Re: [RFC PATCH] target/arm: clamp value to account for RES0 fields

2025-06-20 Thread Alex Bennée
Peter Maydell writes: > On Mon, 16 Jun 2025 at 21:10, Alex Bennée wrote: >> >> If the user writes a large value to the register but with the bottom >> bits unset we could end up with something illegal. By clamping ahead >> of the check we at least assure we won

Re: [PATCH v2 1/3] tracetool: removed the unused vcpu property

2025-06-20 Thread Alex Bennée
ndex 012970f6cc..6fdc1142fb 100644 > --- a/scripts/tracetool/backend/syslog.py > +++ b/scripts/tracetool/backend/syslog.py > @@ -30,11 +30,7 @@ def generate_h(event, group): > if len(event.args) > 0: > argnames = ", " + argnames > > -if "vcpu" in event.properties: > -# already checked on the generic format code > -cond = "true" > -else: > -cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper()) > +cond = "trace_event_get_state(%s)" % ("TRACE_" + event.name.upper()) > > out('if (%(cond)s) {', > '#line %(event_lineno)d "%(event_filename)s"', -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v12 5/7] plugins: Add memory hardware address read/write API

2025-06-20 Thread Alex Bennée
vanced use cases. I am however being conservative in adding new APIs so we take the time to get each one right and minimise: - leaking internal details and constricting future evolution of the emulator - giving the users too many foot guns in the API I'll have a look at the next version and see how we are doing. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PULL 12/17] virtio-gpu: support context init multiple timeline

2025-06-19 Thread Alex Bennée
Yiwei Zhang writes: > On Sun, Jun 8, 2025 at 1:24 AM Akihiko Odaki > wrote: >> >> On 2025/06/06 1:26, Alex Bennée wrote: >> > From: Yiwei Zhang >> > >> > Venus and later native contexts have their own fence context along wit

[RFC PATCH] pc-bios/meson: split blobs by available targets

2025-06-19 Thread Alex Bennée
further and refer to enabled devices to further filter out things like option roms. Signed-off-by: Alex Bennée --- pc-bios/meson.build | 202 1 file changed, 129 insertions(+), 73 deletions(-) diff --git a/pc-bios/meson.build b/pc-bios/meson.build index

Re: [PATCH 2/3] tracetool: introduce generate_unconditional

2025-06-17 Thread Alex Bennée
oid %(api)s(%(args)s)', > '{', > -'if (%(cond)s) {', > +api=e.api(), > +args=e.args) > + > +if "disable" not in e.properties: > +backend.generate_unconditional

Re: [PATCH 1/3] tracetool: removed the unused vcpu property

2025-06-17 Thread Alex Bennée
Tanish Desai writes: > The vcpu property is no longer used in these backends. Removing it avoids > unnecessary checks and simplifies the code generation for these trace > backends. > > Signed-off-by: Tanish Desai Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

[RFC PATCH 02/11] target/arm: re-arrange debug_cp_reginfo

2025-06-17 Thread Alex Bennée
Although we are using structure initialisation the order of the op[012]/cr[nm] fields don't match the rest of the code base. Re-organise to be consistent and help the poor engineer who is grepping for system registers. Signed-off-by: Alex Bennée --- target/arm/debug_helper.c

[RFC PATCH 10/11] kvm/arm: implement a basic hypercall handler

2025-06-17 Thread Alex Bennée
For now just deal with the basic version probe we see during startup. Signed-off-by: Alex Bennée --- target/arm/kvm.c| 44 + target/arm/trace-events | 1 + 2 files changed, 45 insertions(+) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index

[RFC PATCH 07/11] target/arm: clamp value on icc_bpr_write to account for RES0 fields

2025-06-17 Thread Alex Bennée
If the user writes a large value to the register but with the bottom bits unset we could end up with something illegal. By clamping ahead of the check we at least assure we won't assert(bpr > 0) later in the GIC interface code. Signed-off-by: Alex Bennée --- hw/intc/arm_gicv3_cpu

[RFC PATCH 09/11] kvm/arm: implement sysreg trap handler

2025-06-17 Thread Alex Bennée
Fortunately all the information about which sysreg is being accessed should be in the ISS field of the ESR. Once we process that we can figure out what we need to do. [AJB: the read/write stuff should probably go into a shared helper]. Signed-off-by: Alex Bennée --- target/arm/kvm.c

[RFC PATCH 06/11] kvm/arm: allow out-of kernel GICv3 to work with KVM

2025-06-17 Thread Alex Bennée
Previously we suppressed this option as KVM would get confused if it started trapping GIC system registers without a GIC configured. However if we know we are trapping harder we can allow it much like we do for HVF. Signed-off-by: Alex Bennée --- target/arm/kvm_arm.h | 8 hw/arm

[RFC PATCH 11/11] kvm/arm: implement WFx traps for KVM

2025-06-17 Thread Alex Bennée
This allows the vCPU guest core to go to sleep on a WFx instruction. Signed-off-by: Alex Bennée --- target/arm/kvm.c| 28 target/arm/trace-events | 1 + 2 files changed, 29 insertions(+) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 1280e2c1e8

[RFC PATCH 08/11] kvm/arm: plumb in a basic trap harder handler

2025-06-17 Thread Alex Bennée
Currently we do nothing but report we don't handle anything and let KVM come to a halt. Signed-off-by: Alex Bennée --- target/arm/syndrome.h | 4 target/arm/kvm-stub.c | 5 + target/arm/kvm.c | 44 +++ 3 files changed, 53 inser

[RFC PATCH 03/11] linux-headers: Update to Linux 6.15.1 with trap-mem-harder (WIP)

2025-06-17 Thread Alex Bennée
Import headers for trap-me-harder, based on 6.15.1. Signed-off-by: Alex Bennée --- include/standard-headers/linux/virtio_pci.h | 1 + linux-headers/linux/kvm.h | 8 linux-headers/linux/vhost.h | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions

[RFC PATCH 01/11] target/arm: allow gdb to read ARM_CP_NORAW regs (!upstream)

2025-06-17 Thread Alex Bennée
compile time but until now with no readfn. Add a .readfn to return the CurrentEL and then loosen the restrictions in arm_register_sysreg_for_feature to allow ARM_CP_NORAW registers to be read if there is a readfn available. Signed-off-by: Alex Bennée Message-ID: <20250507165840.401623-1-alex.

[RFC PATCH 04/11] kvm: expose a trap-harder option to the command line

2025-06-17 Thread Alex Bennée
It would be nice to only have the variable for this is a KVM_ARM_STATE but currently everything is just held together in the common KVMState. Only KVM ARM can set the flag though. Signed-off-by: Alex Bennée --- include/system/kvm_int.h | 4 target/arm/kvm.c | 19

[RFC PATCH 05/11] target/arm: enable KVM_VM_TYPE_ARM_TRAP_ALL when asked

2025-06-17 Thread Alex Bennée
Signed-off-by: Alex Bennée --- target/arm/kvm_arm.h | 9 + hw/arm/virt.c| 7 +-- target/arm/kvm.c | 7 +++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/target/arm/kvm_arm.h b/target/arm/kvm_arm.h index 7dc83caed5..a4f68e14cb 100644 --- a/target/arm

[RFC PATCH 00/11] kvm/arm: trap-me-harder implementation

2025-06-17 Thread Alex Bennée
e.filename=/dev/zen-ssd2/trixie-arm64,discard=unmap \ -kernel /home/alex/lsrc/linux.git/builds/arm64/arch/arm64/boot/Image \ -append "root=/dev/sda2" \ -chardev socket,id=vfs,path=/tmp/virtiofsd.sock \ -device vhost-user-fs-pci,chardev=

Re: [PATCH v12 6/7] plugins: Add patcher plugin and test

2025-06-17 Thread Alex Bennée
> b/tests/tcg/x86_64/system/validate-patch.py > new file mode 100755 > index 00..700950eae5 > --- /dev/null > +++ b/tests/tcg/x86_64/system/validate-patch.py > @@ -0,0 +1,39 @@ > +#!/usr/bin/env python3 > +# > +# validate-patch.py: check the patch applies > +# > +# This program takes two inputs: > +# - the plugin output > +# - the binary output > +# > +# Copyright (C) 2024 > +# > +# SPDX-License-Identifier: GPL-2.0-or-later > + > +import sys > +from argparse import ArgumentParser > + > +def main() -> None: > +""" > +Process the arguments, injest the program and plugin out and > +verify they match up and report if they do not. > +""" > +parser = ArgumentParser(description="Validate patch") > +parser.add_argument('test_output', > +help="The output from the test itself") > +parser.add_argument('plugin_output', > +help="The output from plugin") > +args = parser.parse_args() > + > +with open(args.test_output, 'r') as f: > +test_data = f.read() > +with open(args.plugin_output, 'r') as f: > +plugin_data = f.read() > +if "Value: 1" in test_data: > +sys.exit(0) > +else: > +sys.exit(1) > + > +if __name__ == "__main__": > +main() > + -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v12 5/7] plugins: Add memory hardware address read/write API

2025-06-17 Thread Alex Bennée
known address, not in a current > translation > + * block. My main concern about the long list of caveats for writing memory is the user will almost certainly cause weird things to happen which will then be hard to debug. I can see the patcher example however it would be useful to know what other practical uses this interface provides. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v5] tests/functional: Add PCI hotplug test for aarch64

2025-06-17 Thread Alex Bennée
Gustavo Romero writes: > Add a functional test, aarch64_hotplug_pci, to exercise PCI hotplug and > hot-unplug on arm64. Queued to testing/next, thanks. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [RFC PATCH 02/19] system/cpus: Only kick running vCPUs

2025-06-17 Thread Alex Bennée
t(MemoryListener *listener) > cpuas = container_of(listener, CPUAddressSpace, tcg_as_listener); > cpu = cpuas->cpu; > > +if (!qdev_is_realized(DEVICE(cpu))) { > +/* > + * The listener is also called during realize, before > + * all of th

[RFC PATCH] target/arm: clamp value to account for RES0 fields

2025-06-16 Thread Alex Bennée
If the user writes a large value to the register but with the bottom bits unset we could end up with something illegal. By clamping ahead of the check we at least assure we won't assert(bpr > 0) later in the GIC interface code. Signed-off-by: Alex Bennée --- hw/intc/arm_gicv3_cpu

Re: [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented

2025-06-16 Thread Alex Bennée
> Signed-off-by: Solomon Tan Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v12 0/7] Add additional plugin API functions to read and write memory and registers

2025-06-13 Thread Alex Bennée
| 135 +++- >> plugins/core.c| 33 +++ >> tests/tcg/Makefile.target | 1 + >> tests/tcg/plugins/meson.build | 2 +- >> tests/tcg/plugins/patch.c | 241 ++ &

Re: [PATCH] hw/arm/mps2: Configure the AN500 CPU with 16 MPU regions

2025-06-13 Thread Alex Bennée
This bug doesn't affect any of the other board types we model in > this source file, because they all use either the Cortex-M3 or > Cortex-M4. Those CPUs do not have an RTL configurable number of > MPU regions, and always provide 8 regions if the MPU is built in. With the typo fix:

Re: [RFC PATCH 01/19] hw/arm/virt: Only require TCG || QTest to use virtualization extension

2025-06-11 Thread Alex Bennée
ve NV support for KVM in QEMU. BTW Philippe isn't the same test needed above for secure (which can't be supported even with KVM NV support). > > Miguel > >> error_report("mach-virt: %s does not support providing " >> "Virtualization extensions to the guest CPU", >> current_accel_name()); >> -- >> 2.49.0 >> >> -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [RFC PATCH 13/19] accel: Introduce AccelOpsClass::cpu_thread_routine handler

2025-06-11 Thread Alex Bennée
t AccelOpsClass *ops) { assert(ops != NULL); -assert(ops->create_vcpu_thread != NULL); /* mandatory */ +assert(ops->create_vcpu_thread || ops->cpu_thread_routine); /* mandatory */ cpus_accel = ops; } -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [RFC PATCH 00/19] accel: Preparatory cleanups for split-accel

2025-06-11 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Few changes needed before being able to add the > split acceleration. Mostly adapting few prototypes > so callees have all necessary information. make check-tcg failed: ➜ make check-tcg /home/alex/lsrc/qemu.git/builds/arm.all/pyvenv/bin/meson i

Re: [RFC PATCH 09/19] accel: Factor accel_cpu_realize() out

2025-06-11 Thread Alex Bennée
claration -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/alex/lsrc/qemu.git/linux-headers -isystem linux-headers -iquote . -iquote /home/alex/lsrc/qem

Re: [RFC PATCH 01/19] hw/arm/virt: Only require TCG || QTest to use virtualization extension

2025-06-11 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [RFC PATCH 03/19] accel: Keep reference to AccelOpsClass in AccelClass

2025-06-11 Thread Alex Bennée
accel/tcg/tcg-accel-ops.c > +++ b/accel/tcg/tcg-accel-ops.c > @@ -198,8 +198,10 @@ static inline void tcg_remove_all_breakpoints(CPUState > *cpu) > cpu_watchpoint_remove_all(cpu, BP_GDB); > } > > -static void tcg_accel_ops_init(AccelOpsClass *ops) > +static void

Re: [RFC PATCH 04/19] accel: Propagate AccelState to AccelClass::init_machine()

2025-06-11 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > In order to avoid init_machine() to call current_accel(), > pass AccelState along. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2] ramfb: Add property to control if load the romfile

2025-06-10 Thread Alex Williamson
so we're clear > >>> about the proposed usage. > >> > >> yes. And please change the vfio-pci property name to use underscores. > > > > Sorry, to *not* use underscores : use-legacy-x86-rom > > Thanks for pointing out it. Will fix it. It's also not evident from the property that this is restricted to ramfb behavior. Should the option on the vfio-pci device be prefixed with ramfb? Thanks, Alex

Re: [PATCH v9 3/9] plugins: Add enforcement of QEMU_PLUGIN_CB flags in register R/W callbacks

2025-06-09 Thread Alex Bennée
should rectified if we are no longer running translated code - indeed currently it is rectified by the time we leave the translated block and before we start the next one. There are some edge cases when we handle exceptions but we should have fixed up any register state before we longjmp back to the start of the run loop. -- Alex Bennée Virtualisation Tech Lead @ Linaro

KVM/QEMU community call 10/06/2025 agenda items?

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

Re: [PATCH RESEND v3] meson: fix Windows build

2025-06-07 Thread Alex Bennée
paths > are on different drives. I made sure to convert the Windows paths to > Unix paths to prevent warnings in generated files. > > Signed-off-by: oltolm for plugins: Acked-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

[PULL v2 00/11] maintainer updates for May (testing, plugins)

2025-06-07 Thread Alex Bennée
bitfields ---- Alex Bennée (8): tests/docker: expose $HOME/.cache/qemu as docker volume gitlab: disable debug info on CI builds tests/tcg: make aarch64 boot.S handle different starting modes contrib/plugins: add a scaling factor

Re: [PULL 00/17] maintainer updates for May (testing, plugins, virtio-gpu)

2025-06-07 Thread Alex Bennée
Stefan Hajnoczi writes: > On Thu, Jun 5, 2025 at 12:28 PM Alex Bennée wrote: >> >> The following changes since commit 09be8a511a2e278b45729d7b065d30c68dd699d0: >> >> Merge tag 'pull-qapi-2025-06-03' of https://repo.or.cz/qemu/armbru into >> st

Re: [PULL 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/06/06 18:54, Alex Bennée wrote: >> Akihiko Odaki writes: >> >>> On 2025/06/06 1:26, Alex Bennée wrote: >>>> QOM objects can be embedded in other QOM objects and managed as part >>>&g

Re: [PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/06/05 20:57, Alex Bennée wrote: >> Akihiko Odaki writes: >> >>> On 2025/06/03 20:01, Alex Bennée wrote: >>>> QOM objects can be embedded in other QOM objects and managed as part >>>&g

Re: [PATCH v3 0/2] semihosting/uaccess: Compile once

2025-06-06 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > ping? Queued to semihosting/next, thanks. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PULL 09/17] hw/display: re-arrange memory region tracking

2025-06-06 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/06/06 1:26, Alex Bennée wrote: >> QOM objects can be embedded in other QOM objects and managed as part >> of their lifetime but this isn't the case for >> virtio_gpu_virgl_hostmem_region. However before we can split it out we >> ne

Re: [PATCH] record/replay: fix race condition on test_aarch64_reverse_debug

2025-06-06 Thread Alex Bennée
77b5dc961da4364af26e771bd39f379cbbf7') > > -@skipFlakyTest("https://gitlab.com/qemu-project/qemu/-/issues/2921";) > def test_aarch64_virt(self): > self.set_machine('virt') > self.cpu = 'cortex-a53' -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH 0/4] system: Forbid alloca()

2025-06-06 Thread Alex Bennée
| 4 > backends/tpm/tpm_emulator.c | 4 ++-- > hw/gpio/pca9552.c | 2 +- > tests/unit/test-char.c | 3 +-- > 4 files changed, 8 insertions(+), 5 deletions(-) -- Alex Bennée Virtualisation Tech Lead @ Linaro

[PULL 17/17] gdbstub: update aarch64-core.xml

2025-06-05 Thread Alex Bennée
B: expanded upstream link] Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-18-alex.ben...@linaro.org> diff --git a/gdb-xml/aarch64-core.xml b/gdb-xml/aarch64-core.xml index e1e9dc3f91..b8046510b9 100644 --- a/gdb-xml/aarch64-core.xml +++ b/gdb-xml/aarch64-core

[PULL 16/17] gdbstub: Implement qGDBServerVersion packet

2025-06-05 Thread Alex Bennée
s/2648 Co-authored-by: Patryk 'patryk4815' Sondej Signed-off-by: Dominik 'Disconnect3d' Czarnota Message-Id: <20250403191340.53343-1-dominik.b.czarn...@gmail.com> [AJB: fix include, checkpatch linewrap] Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-1

[PULL 00/17] maintainer updates for May (testing, plugins, virtio-gpu)

2025-06-05 Thread Alex Bennée
assets in size_memop - fix include guard in gdbstub - introduce qGDBServerVersion gdbstub query - update gdb aarch64-core.xml to support bitfields ---- Alex Bennée (11): tests/docker: expose $HOME/.cache/qemu as docker volume

[PULL 07/17] MAINTAINERS: add myself to virtio-gpu for Odd Fixes

2025-06-05 Thread Alex Bennée
Seeing as I've taken a few patches to here now I might as well put myself forward to maintain virtio-gpu. I've marked it as Odd Fixes as it is not my core focus. If someone with more GPU experience comes forward we can always update again. Reviewed-by: Markus Armbruster Signed-of

[PULL 05/17] contrib/plugins: add a scaling factor to the ips arg

2025-06-05 Thread Alex Bennée
It's easy to get lost in zeros while setting the numbers of instructions per second. Add a scaling suffix to make things simpler. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-6-alex.ben...@linaro.org> diff --git a/contrib/plugins/ips.

[PULL 08/17] MAINTAINERS: add Akihiko and Dmitry as reviewers

2025-06-05 Thread Alex Bennée
Thanks for volunteering to help. Cc: Akihiko Odaki Cc: Dmitry Osipenko Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Acked-by: Michael S. Tsirkin Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-9-alex.ben...@linaro.org> diff --git a/MAINTAI

[PULL 03/17] tests/tcg: make aarch64 boot.S handle different starting modes

2025-06-05 Thread Alex Bennée
: Jim MacArthur Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-4-alex.ben...@linaro.org> diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index 9c52475b7a..f7a7d2b800 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target

[PULL 12/17] virtio-gpu: support context init multiple timeline

2025-06-05 Thread Alex Bennée
commit message] Tested-by: Dmitry Osipenko Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-13-alex.ben...@linaro.org> diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c index b4aa8abb96..cea2e12eb9 100644 --- a/hw/display/virtio-gpu-virgl.c +++ b/hw/disp

[PULL 14/17] include/gdbstub: fix include guard in commands.h

2025-06-05 Thread Alex Bennée
Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-15-alex.ben...@linaro.org> diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h index 40f0514fe9..bff3674872 100644 --- a/include/gdbstub/comm

[PULL 01/17] tests/docker: expose $HOME/.cache/qemu as docker volume

2025-06-05 Thread Alex Bennée
If you want to run functional tests we should share .cache/qemu so we don't force containers to continually re-download images. We also move ccache to use this shared area. Reviewed-by: Thomas Huth Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-2-alex.ben...@linaro.or

[PULL 04/17] tests/qtest: Avoid unaligned access in IGB test

2025-06-05 Thread Alex Bennée
pe Mathieu-Daudé Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-5-alex.ben...@linaro.org> diff --git a/tests/qtest/libqos/igb.c b/tests/qtest/libqos/igb.c index f40c4ec4cd..ab3ef6f0c3 100644 --- a/tests/qtest/libqos/igb.c +++ b/tests/qtest/libqos/igb.c @@ -104,10

[PULL 02/17] gitlab: disable debug info on CI builds

2025-06-05 Thread Alex Bennée
like --enable-debug-tcg. Reviewed-by: Thomas Huth Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-3-alex.ben...@linaro.org> diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml index 118371e377..19663126ca 100644 --- a/.gitlab-ci.d/bui

[PULL 06/17] contrib/plugins: allow setting of instructions per quantum

2025-06-05 Thread Alex Bennée
The default is we update time every 1/10th of a second or so. However for some cases we might want to update time more frequently. Allow this to be set via the command line through the ipq argument. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Bennée Message-ID: <20250603110204.83811

[PULL 15/17] gdbstub: assert earlier in handle_read_all_regs

2025-06-05 Thread Alex Bennée
When things go wrong we want to assert on the register that failed to be able to figure out what went wrong. Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-16-alex.ben...@linaro.org> diff --git a/g

[PULL 13/17] include/exec: fix assert in size_memop

2025-06-05 Thread Alex Bennée
We can handle larger sized memops now, expand the range of the assert. Fixes: 4b473e0c60 (tcg: Expand MO_SIZE to 3 bits) Reviewed-by: Richard Henderson Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-14-alex.ben...@linaro.org> diff --git a/include/exec/memop.h b/includ

[PULL 10/17] virtio-gpu: refactor async blob unmapping

2025-06-05 Thread Alex Bennée
Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20250410122643.1747913-4-manos.pitsidiana...@linaro.org> Cc: qemu-sta...@nongnu.org Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-11-alex.ben...@linaro.org> diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio

[PULL 11/17] ui/gtk-gl-area: Remove extra draw call in refresh

2025-06-05 Thread Alex Bennée
guest. Fixes: 77bf310084 ("ui/gtk: Draw guest frame at refresh cycle") Reported-by: Dmitry Osipenko Reported-by: Alex Bennée Tested-by: Alex Bennée Tested-by: Dmitry Osipenko Reviewed-by: Alex Bennée Reviewed-by: Dmitry Osipenko Cc: Marc-André Lureau Cc: Vivek Kasireddy Signed-off-b

[PULL 09/17] hw/display: re-arrange memory region tracking

2025-06-05 Thread Alex Bennée
Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20250410122643.1747913-2-manos.pitsidiana...@linaro.org> Cc: qemu-sta...@nongnu.org Signed-off-by: Alex Bennée Message-ID: <20250603110204.838117-10-alex.ben...@linaro.org> diff --git a/include/system/memory.h b/include/syst

Re: [PATCH v3 1/3] docs: introduce dedicated page about code provenance / sign-off

2025-06-05 Thread Alex Bennée
Markus Armbruster writes: > Markus Armbruster writes: > >> Alex Bennée writes: > > [...] > >>> We don't mention the Link: or Message-Id: tags. >> >> Yes, but should it go into code-provenance.rst or >> submitting-a-patch.rst? >> >&

Re: [PATCH v5 0/7] ui/spice: Enable gl=on option for non-local or remote clients

2025-06-05 Thread Alex Bennée
https://gitlab.freedesktop.org/spice/spice/-/merge_requests/229 > > --- > Cc: Gerd Hoffmann > Cc: Marc-André Lureau > Cc: Dmitry Osipenko > Cc: Frediano Ziglio > Cc: Michael Scherle > Cc: Dongwon Kim > Cc: Alex Bennée > > Vivek Kasireddy (7): > ui/egl-hel

Re: [PATCH v4 3/3] docs: define policy forbidding use of AI code generators

2025-06-05 Thread Alex Bennée
safe, then relax. > > Meanwhile requests for exceptions can also be considered on a case by > case basis. > > Signed-off-by: Daniel P. Berrangé > Acked-by: Stefan Hajnoczi > Reviewed-by: Kevin Wolf > Signed-off-by: Markus Armbruster Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v4 1/3] docs: introduce dedicated page about code provenance / sign-off

2025-06-05 Thread Alex Bennée
rrangé > Reviewed-by: Peter Maydell > Signed-off-by: Markus Armbruster Reviewed-by: Alex Bennée -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-05 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/06/03 20:01, Alex Bennée wrote: >> QOM objects can be embedded in other QOM objects and managed as part >> of their lifetime but this isn't the case for >> virtio_gpu_virgl_hostmem_region. However before we can split it out we >> ne

Re: [PATCH v4 03/17] tests/tcg: make aarch64 boot.S handle different starting modes

2025-06-05 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/06/03 20:01, Alex Bennée wrote: >> Currently the boot.S code assumes everything starts at EL1. This will >> break things like the memory test which will barf on unaligned memory >> access when run at a higher level. >> Adapt the

Re: [PATCH v3 1/3] docs: introduce dedicated page about code provenance / sign-off

2025-06-03 Thread Alex Bennée
ame spelling. It's okay if you subscribe or contribute to > -the list via more than one address, but using multiple addresses in one > -commit just confuses things. If someone else wrote the patch, git will > -include a "From:" line in the body of the email (different from your > -envelope From:) that will give credit to the correct author; but again, > -that author's Signed-off-by: line is mandatory, with the same spelling. > +this and happy for it to go into QEMU". For full guidance, read the > +:ref:`code-provenance` documentation. > > The name used with "Signed-off-by" does not need to be your legal name, > nor birth name, nor appear on any government ID. It is the identity you > choose to be known by in the community, but should not be anonymous, > nor misrepresent whom you are. > > -There are various tooling options for automatically adding these tags > -include using ``git commit -s`` or ``git format-patch -s``. For more > -information see `SubmittingPatches 1.12 > -<http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=f6f94e2ab1b33f0082ac22d71f66385a60d8157f#n297>`__. > > .. _include_a_meaningful_cover_letter: -- Alex Bennée Virtualisation Tech Lead @ Linaro

[PATCH v4 13/17] include/exec: fix assert in size_memop

2025-06-03 Thread Alex Bennée
We can handle larger sized memops now, expand the range of the assert. Fixes: 4b473e0c60 (tcg: Expand MO_SIZE to 3 bits) Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- v2 - instead of 128 use 1 << MO_SIZE for future proofing v3 - fix comment, 1 << MO_SIZE goe

[PATCH v4 11/17] ui/gtk-gl-area: Remove extra draw call in refresh

2025-06-03 Thread Alex Bennée
guest. Fixes: 77bf310084 ("ui/gtk: Draw guest frame at refresh cycle") Reported-by: Dmitry Osipenko Reported-by: Alex Bennée Tested-by: Alex Bennée Tested-by: Dmitry Osipenko Reviewed-by: Alex Bennée Reviewed-by: Dmitry Osipenko Cc: Marc-André Lureau Cc: Vivek Kasireddy Signed-off-b

[PATCH v4 04/17] tests/qtest: Avoid unaligned access in IGB test

2025-06-03 Thread Alex Bennée
s properly against uint32_t and uint16_t. Signed-off-by: Nabih Estefan Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Reviewed-by: Richard Henderson Message-Id: <20250429155621.2028198-1-nabiheste...@google.com> [AJB: fix commit message, remove unneeded casts] Signed-off-by: Alex Ben

[PATCH v4 16/17] gdbstub: Implement qGDBServerVersion packet

2025-06-03 Thread Alex Bennée
s/2648 Co-authored-by: Patryk 'patryk4815' Sondej Signed-off-by: Dominik 'Disconnect3d' Czarnota Message-Id: <20250403191340.53343-1-dominik.b.czarn...@gmail.com> [AJB: fix include, checkpatch linewrap] Signed-off-by: Alex Bennée --- gdbstub/gdbstub.c | 17

[PATCH v4 03/17] tests/tcg: make aarch64 boot.S handle different starting modes

2025-06-03 Thread Alex Bennée
: Jim MacArthur Signed-off-by: Alex Bennée --- v4 - drop post eret nops - proper error string for EL0 error case - clamp any invalid target EL value to 1 v3 - create system stack so we _exit cleanly - normalise EL string before compares - catch when we start in a lower EL than we asked

[PATCH v4 12/17] virtio-gpu: support context init multiple timeline

2025-06-03 Thread Alex Bennée
d this via guest and host side perfetto tracing. Cc: Fixes: 94d0ea1c1928 ("virtio-gpu: Support Venus context") Signed-off-by: Yiwei Zhang Reviewed-by: Dmitry Osipenko Message-Id: <20250518152651.334115-1-zzyi...@gmail.com> [AJB: remove version history from commit message]

[PATCH v4 02/17] gitlab: disable debug info on CI builds

2025-06-03 Thread Alex Bennée
like --enable-debug-tcg. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth --- .gitlab-ci.d/buildtest-template.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml index 118371e377..19663126ca 100644 --- a/.gitlab

[PATCH v4 06/17] contrib/plugins: allow setting of instructions per quantum

2025-06-03 Thread Alex Bennée
The default is we update time every 1/10th of a second or so. However for some cases we might want to update time more frequently. Allow this to be set via the command line through the ipq argument. Signed-off-by: Alex Bennée Reviewed-by: Pierrick Bouvier --- v4 - simplify error checking

[PATCH v4 10/17] virtio-gpu: refactor async blob unmapping

2025-06-03 Thread Alex Bennée
From: Manos Pitsidianakis Change the 3 part async cleanup of a blob memory mapping to check if the unmapping has finished already after deleting the subregion; this condition allows us to skip suspending the command and responding to the guest right away. Signed-off-by: Manos Pitsidianakis Revi

[PATCH v4 09/17] hw/display: re-arrange memory region tracking

2025-06-03 Thread Alex Bennée
Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Message-Id: <20250410122643.1747913-2-manos.pitsidiana...@linaro.org> Cc: qemu-sta...@nongnu.org --- include/system/memory.h | 1 + hw/display/virtio-gpu-virgl.c | 23 --- 2 files changed, 9

[PATCH v4 01/17] tests/docker: expose $HOME/.cache/qemu as docker volume

2025-06-03 Thread Alex Bennée
If you want to run functional tests we should share .cache/qemu so we don't force containers to continually re-download images. We also move ccache to use this shared area. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth --- v3 - mention ccache v2 - Share a whole .cache/qemu

[PATCH v4 15/17] gdbstub: assert earlier in handle_read_all_regs

2025-06-03 Thread Alex Bennée
When things go wrong we want to assert on the register that failed to be able to figure out what went wrong. Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- gdbstub/gdbstub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH v4 17/17] gdbstub: update aarch64-core.xml

2025-06-03 Thread Alex Bennée
B: expanded upstream link] Signed-off-by: Alex Bennée --- gdb-xml/aarch64-core.xml | 52 ++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/gdb-xml/aarch64-core.xml b/gdb-xml/aarch64-core.xml index e1e9dc3f91..b8046510b9 100644 --- a/gdb-xml/aarch

[PATCH v4 00/17] Maintainer updates for May (testing, plugins, virtio-gpu) - pre-PR

2025-06-03 Thread Alex Bennée
hiko/Dmitry as virtio-gpu reviewers The following still need review: tests/tcg: make aarch64 boot.S handle different starting modes Alex. Alex Bennée (11): tests/docker: expose $HOME/.cache/qemu as docker volume gitlab: disable debug info on CI builds tests/tcg: make aarch64 boot.S handle

[PATCH v4 14/17] include/gdbstub: fix include guard in commands.h

2025-06-03 Thread Alex Bennée
Reviewed-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée --- include/gdbstub/commands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h index 40f0514fe9..bff3674872 100644 --- a

[PATCH v4 08/17] MAINTAINERS: add Akihiko and Dmitry as reviewers

2025-06-03 Thread Alex Bennée
Thanks for volunteering to help. Cc: Akihiko Odaki Cc: Dmitry Osipenko Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Alex Bennée Acked-by: Michael S. Tsirkin --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH v4 07/17] MAINTAINERS: add myself to virtio-gpu for Odd Fixes

2025-06-03 Thread Alex Bennée
Seeing as I've taken a few patches to here now I might as well put myself forward to maintain virtio-gpu. I've marked it as Odd Fixes as it is not my core focus. If someone with more GPU experience comes forward we can always update again. Reviewed-by: Markus Armbruster Signed-of

[PATCH v4 05/17] contrib/plugins: add a scaling factor to the ips arg

2025-06-03 Thread Alex Bennée
It's easy to get lost in zeros while setting the numbers of instructions per second. Add a scaling suffix to make things simpler. Signed-off-by: Alex Bennée Reviewed-by: Pierrick Bouvier --- v2 - normalise the suffix before a full strcmp0 - check endptr actually set - fix check

Re: TCG Address Sanitizer Optimization.

2025-06-02 Thread Alex Bennée
> > > Hence the current implementation is a little clumsy! > > Thanks for your advice. > > Jon > > On Mon, Jun 2, 2025 at 4:09 PM Alex Bennée wrote: > > Jon Wilson writes: > > (Adding Richard, the

Re: TCG Address Sanitizer Optimization.

2025-06-02 Thread Alex Bennée
re I > think the issue is caused by the surrounding TCG in the block it is injected > into? > > //// > runner-x86_64: ../tcg/tcg.c:4852: tcg_reg_alloc_mov: Assertion `ts->val_type > == TEMP_VAL_REG' failed. > Aborted (core dumped) > > > I would be very grateful for any advice of how to resolve this issue, or any > alternative approaches I could use to optimize my original implementation. The > code is obviously a very hot path and so even a tiny performance improvement > could result in a large performance gain overall. -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v2] vfio/pci: Introduce x-pci-class-code option

2025-05-28 Thread Alex Williamson
ield was defined, so at least before 1995. Also, neither the kernel or QEMU is_vga helpers account for this, so they'd not have a VGA region or be properly detected elsewhere. Thanks, Alex > + > if (!(reg_info->flags & VFIO_REGION_INFO_FLAG_READ) ||

Re: [PATCH v2] vfio/igd: Fix incorrect error propagation in vfio_pci_igd_opregion_detect()

2025-05-27 Thread Alex Williamson
errp)) { > +if (!vfio_pci_igd_opregion_detect(vdev, &opregion)) { > return true; > } > info_report("OpRegion detected on Intel display %x.", vdev->device_id); > @@ -695,7 +693,7 @@ static bool vfio_pci_kvmgt_config_quirk(VFIOPCIDevice > *vdev, E

Re: [PATCH] vfio/pci: Introduce x-pci-class-code option

2025-05-27 Thread Alex Williamson
to a non-VGA device that doesn't make any sense. vfio_populate_vga() needs to care about the exposed class code now too. Thanks, Alex > Signed-off-by: Tomita Moeko > --- > hw/vfio/pci.c| 17 + > hw/vfio/pci.h| 1 + > hw/vfio/trace-events | 1 + >

Re: [PATCH v3 12/20] virtio-gpu: fix hang under TCG when unmapping blob

2025-05-27 Thread Alex Bennée
Akihiko Odaki writes: > On 2025/05/22 18:28, Alex Bennée wrote: >> Akihiko Odaki writes: >> >>> On 2025/05/22 16:31, Manos Pitsidianakis wrote: >>>> On Thu, May 22, 2025 at 10:03 AM Akihiko Odaki >>>> wrote: >>>>> >>>

Re: [PATCH v3 19/20] gdbstub: Implement qGDBServerVersion packet

2025-05-27 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > On 21/5/25 17:42, Alex Bennée wrote: >> From: Dominik 'Disconnect3d' Czarnota >> This commit adds support for the `qGDBServerVersion` packet to the >> qemu >> gdbstub which could be used by clients to detect the QEMU versio

KVM/QEMU community call today @ 14:00 UTC

2025-05-27 Thread Alex Bennée
Hi, I forgot to send this yesterday due to local bank holidays, anyway the KVM/QEMU community call is at: https://meet.jit.si/kvmcallmeeting @ 27/05/2025 14:00 UTC Are there any agenda items for the sync-up? -- Alex Bennée Virtualisation Tech Lead @ Linaro

Re: [PATCH v4] tests/functional: Add PCI hotplug test for aarch64

2025-05-24 Thread Alex Bennée
TRD = Asset( > +('https://ftp.debian.org/debian/dists/stable/main/installer-arm64/' > + 'current/images/netboot/debian-installer/arm64/initrd.gz'), > + > '2583ec22b45265ad69e82f198674f53d4cd85be124fe012eedc2fd91156bc4b4') Hmm do we need

Re: [PATCH] tests/functional/test_mips_malta: Re-enable the check for the PCI host bridge

2025-05-22 Thread Alex Bennée
Thomas Huth writes: > From: Thomas Huth > > The problem with the PCI bridge has been fixed in commit e5894fd6f411c1 > ("hw/pci-host/gt64120: Fix endianness handling"), so we can enable the > corresponding test again. > > Signed-off-by: Thomas Huth Reviewed-by

Re: [PATCH v3 2/8] Add register write API

2025-05-22 Thread Alex Bennée
. I would expect us to: a) handle the QEMU_PLUGIN_CB_RW_REGS b) try and enforce we are only being called from such callbacks Otherwise TCG won't know to restore register state from what has been written to. -- Alex Bennée Virtualisation Tech Lead @ Linaro

  1   2   3   4   5   6   7   8   9   10   >