[PATCH RFC] arm/kvm: report registers we failed to set

2025-07-21 Thread Cornelia Huck
hich point the user might actually be able to configure something that is migratable. Suggested-by: Eric Auger Signed-off-by: Cornelia Huck --- Notes: - This currently prints the list of failing registers for every call to write_list_to_kvmstate(), in particular for every cpu -- we might

Re: [PATCH 2/2] watchdog: generic name for i6300esb

2025-07-17 Thread Cornelia Huck
On Tue, Jul 15 2025, Daniel P. Berrangé wrote: > On Tue, Jul 15, 2025 at 09:16:24AM -0700, Andrea Bolognani wrote: >> On Tue, Jul 15, 2025 at 05:02:54PM +0100, Daniel P. Berrangé wrote: >> > On Tue, Jul 15, 2025 at 05:44:25PM +0200, Cornelia Huck wrote: >> > > Hmm.

Re: [PATCH 2/2] watchdog: generic name for i6300esb

2025-07-15 Thread Cornelia Huck
On Tue, Jul 15 2025, Andrea Bolognani wrote: > On Tue, Jun 10, 2025 at 06:12:12PM +0100, Daniel P. Berrangé wrote: >> On Tue, Jun 10, 2025 at 04:32:59PM +0200, Cornelia Huck wrote: >> > The Intel 6300 Enterprise SouthBridge is a south bridge for a more or >> > less ob

Re: [PATCH] linux-headers: Remove the 32-bit arm headers

2025-07-10 Thread Cornelia Huck
100644 linux-headers/asm-arm/unistd-oabi.h > delete mode 100644 linux-headers/asm-arm/unistd.h Acked-by: Cornelia Huck

[PATCH 2/5] arm/cpu: store id_aa64afr{0,1} into the idregs array

2025-07-04 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h.inc | 2 ++ target/arm/cpu.h | 2 -- target/arm/helper.c | 4 ++-- target/arm/tcg/cpu64.c | 16 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/target/arm/cpu-sysregs.h.inc b

[PATCH 1/5] arm/cpu: store id_afr0 into the idregs array

2025-07-04 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c| 2 +- target/arm/cpu-sysregs.h.inc | 1 + target/arm/cpu.h | 1 - target/arm/cpu64.c | 4 ++-- target/arm/helper.c | 2 +- target/arm/tcg/cpu-v7m.c | 12 ++-- target/arm/tcg/cpu32.c

[PATCH 4/5] arm/cpu: store clidr into the idregs array

2025-07-04 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c| 2 +- target/arm/cpu-sysregs.h.inc | 1 + target/arm/cpu.h | 3 +-- target/arm/cpu64.c | 4 ++-- target/arm/helper.c | 2 +- target/arm/tcg/cpu-v7m.c | 4 ++-- target/arm/tcg/cpu32.c

[PATCH 3/5] arm/cpu: fix trailing ',' for SET_IDREG

2025-07-04 Thread Cornelia Huck
While a trailing comma is not broken for SET_IDREG invocations, it does look odd; use a semicolon instead. Fixes: f1fd81291c91 ("arm/cpu: Store aa64mmfr0-3 into the idregs array") Fixes: def3f1c1026a ("arm/cpu: Store aa64dfr0/1 into the idregs array") Signed-off-by: Cornelia H

[PATCH 5/5] arm/kvm: shorten one overly long line

2025-07-04 Thread Cornelia Huck
Fixes: 804cfc7eedb7 ("arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays") Signed-off-by: Cornelia Huck --- target/arm/kvm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 426f8b159e82..8ab0d692d36a 100644 --- a/

[PATCH 0/5] arm: followup on the ID register storage series

2025-07-04 Thread Cornelia Huck
This series tries to address some low-hanging fruit on top of target-arm.next (move some more registers, some cosmetics; see discussion following <20250617153931.1330449-14-coh...@redhat.com>) Also available at https://gitlab.com/cohuck/qemu id-reg-fixup-v1 Cornelia Huck (5): arm/cpu:

Re: [PATCH v2 05/27] include/hw/hyperv: Add MSHV ABI header definitions

2025-07-02 Thread Cornelia Huck
On Wed, Jul 02 2025, Magnus Kulke wrote: > On Wed, Jul 02, 2025 at 11:11:41AM +0200, Cornelia Huck wrote: >> On Tue, Jul 01 2025, Magnus Kulke wrote: >> >> > Introduce headers for the Microsoft Hypervisor (MSHV) userspace ABI, >> > including IOCTLs and stru

Re: [PATCH v2 05/27] include/hw/hyperv: Add MSHV ABI header definitions

2025-07-02 Thread Cornelia Huck
On Tue, Jul 01 2025, Magnus Kulke wrote: > Introduce headers for the Microsoft Hypervisor (MSHV) userspace ABI, > including IOCTLs and structures used to interface with the hypervisor. > > These definitions are based on the upstream Linux MSHV interface and > will be used by the MSHV accelerator

Re: [PATCH v8 13/14] arm/cpu: switch to a generated cpu-sysregs.h.inc

2025-07-02 Thread Cornelia Huck
On Tue, Jul 01 2025, Peter Maydell wrote: > On Tue, 1 Jul 2025 at 17:07, Cornelia Huck wrote: >> >> On Mon, Jun 30 2025, Peter Maydell wrote: >> >> > On Tue, 17 Jun 2025 at 16:41, Cornelia Huck wrote: >> >> >> >> Generated agai

Re: [PATCH v3 07/10] arm/kvm: write back modified ID regs to KVM

2025-07-02 Thread Cornelia Huck
On Wed, Jul 02 2025, Jinqian Yang wrote: > On 2025/4/15 0:38, Cornelia Huck wrote: >> From: Eric Auger >> >> We want to give a chance to override the value of host ID regs. >> In a previous patch we made sure all their values could be fetched >> through kvm

Re: [PATCH v8 13/14] arm/cpu: switch to a generated cpu-sysregs.h.inc

2025-07-01 Thread Cornelia Huck
On Mon, Jun 30 2025, Peter Maydell wrote: > On Tue, 17 Jun 2025 at 16:41, Cornelia Huck wrote: >> >> Generated against Linux 6.15. >> >> Reviewed-by: Sebastian Ott >> Reviewed-by: Eric Auger >> Signed-off-by: Cornelia Huck > > Stripping out all

Re: [PATCH v8 00/14] arm: rework id register storage

2025-06-30 Thread Cornelia Huck
On Mon, Jun 30 2025, Peter Maydell wrote: > On Tue, 17 Jun 2025 at 16:39, Cornelia Huck wrote: >> >> Mostly addressed Peter's feedback: >> - make sure every inbetween stage compiles (also fixed some bonus issues) >> - try to make the scripts more robust, add a n

Re: [PATCH v8 00/14] arm: rework id register storage

2025-06-30 Thread Cornelia Huck
On Tue, Jun 17 2025, Cornelia Huck wrote: > Mostly addressed Peter's feedback: > - make sure every inbetween stage compiles (also fixed some bonus issues) > - try to make the scripts more robust, add a note the generated file, > and make sure to grab only registers we actu

Re: [PATCH 0/2] cosmetics for the i6300esb watchdog

2025-06-25 Thread Cornelia Huck
On Tue, Jun 10 2025, Cornelia Huck wrote: > The i6300esb watchdog device is generic enough to be used on any PCI > platform; however, having an "Intel" device on a non-x86 platform looks > a bit odd. Just call it a "virtual" device instead, and also fix an old >

Re: [PATCH v8 00/14] arm: rework id register storage

2025-06-25 Thread Cornelia Huck
On Wed, Jun 25 2025, Peter Maydell wrote: > On Wed, 25 Jun 2025 at 10:10, Eric Auger wrote: >> However there are other checkpatch errors besides the one you reported, in >> 52873a54ad arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays >> ERROR: line over 90 characters >> #388: FILE: target

Re: [PATCH v8 12/14] arm/cpu: Add sysreg generation scripts

2025-06-25 Thread Cornelia Huck
On Wed, Jun 25 2025, Eric Auger wrote: > Hi Connie, > > On 6/17/25 5:45 PM, Cornelia Huck wrote: >> On Tue, Jun 17 2025, Cornelia Huck wrote: >> >>> diff --git a/scripts/arm-gen-cpu-sysregs-header.awk >>> b/scripts/arm-gen-cpu-sysregs-header.awk >>

[PATCH v8 01/14] arm/cpu: Add sysreg definitions in cpu-sysregs.h

2025-06-17 Thread Cornelia Huck
Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h | 42 +++ target/arm/cpu-sysregs.h.inc | 36 ++ target/arm/cpu.h | 49 target/arm

[PATCH v8 08/14] arm/cpu: Store id_isar0-7 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 12 ++-- target/arm/cpu-features.h | 36 +- target/arm/cpu.c | 24 +++ target/arm/cpu.h | 7

[PATCH v8 14/14] arm/kvm: use fd instead of fdarray[2]

2025-06-17 Thread Cornelia Huck
We have fd, so might as well neaten things up. Suggested-by: Eric Auger Reviewed-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/kvm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 3df046b2b911..70919aedd0a4

[PATCH v8 13/14] arm/cpu: switch to a generated cpu-sysregs.h.inc

2025-06-17 Thread Cornelia Huck
Generated against Linux 6.15. Reviewed-by: Sebastian Ott Reviewed-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h.inc | 43 +--- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/target/arm/cpu-sysregs.h.inc b/target/arm

[PATCH v8 05/14] arm/cpu: Store aa64mmfr0-3 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 74 +++ target/arm/cpu.h | 4 --- target/arm/cpu64.c| 8 ++--- target/arm

Re: [PATCH v8 12/14] arm/cpu: Add sysreg generation scripts

2025-06-17 Thread Cornelia Huck
On Tue, Jun 17 2025, Cornelia Huck wrote: > diff --git a/scripts/arm-gen-cpu-sysregs-header.awk > b/scripts/arm-gen-cpu-sysregs-header.awk > new file mode 100755 > index ..f92bbbafa727 > --- /dev/null > +++ b/scripts/arm-gen-cpu-sysregs-header.awk > @@ -0,0 +1,3

[PATCH v8 10/14] arm/cpu: Store id_dfr0/1 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 2 +- target/arm/cpu-features.h | 16 target/arm/cpu.c | 13 + target/arm/cpu.h

[PATCH v8 12/14] arm/cpu: Add sysreg generation scripts

2025-06-17 Thread Cornelia Huck
defines for all system registers. [CH: update to handle current kernel sysregs structure, and to emit the re-worked register structures; cpu properties will be added later] Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- MAINTAINERS

[PATCH v8 03/14] arm/cpu: Store aa64isar1/2 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 44 +++ target/arm/cpu.c | 13 target/arm/cpu.h | 2

[PATCH v8 07/14] arm/cpu: Store aa64smfr0 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 6 +++--- target/arm/cpu.h | 1 - target/arm/cpu64.c| 7 ++- target/arm/helper.c | 2 +- target/arm

[PATCH v8 11/14] arm/cpu: Store id_mmfr0-5 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 8 ++-- target/arm/cpu-features.h | 18 target/arm/cpu.h | 6 --- target/arm/cpu64.c| 16

[PATCH v8 04/14] arm/cpu: Store aa64pfr0/1 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 40 - target/arm/cpu.c | 29 target/arm/cpu.h | 2

[PATCH v8 06/14] arm/cpu: Store aa64dfr0/1 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 16 target/arm/cpu.c | 15 +-- target/arm/cpu.h | 2 -- target/arm/cpu64.c

[PATCH v8 00/14] arm: rework id register storage

2025-06-17 Thread Cornelia Huck
ed for unintended changes - most of the hard work that Eric had been doing; all new bugs in there are my own :) Cornelia Huck (2): arm/cpu: switch to a generated cpu-sysregs.h.inc arm/kvm: use fd instead of fdarray[2] Eric Auger (12): arm/cpu: Add sysreg definitions in cpu-sysregs.

[PATCH v8 02/14] arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays

2025-06-17 Thread Cornelia Huck
From: Eric Auger Also add kvm accessors for storing host features into idregs. Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 57 --- target/arm/cpu.c

[PATCH v8 09/14] arm/cpu: Store id_pfr0/1/2 into the idregs array

2025-06-17 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 5 ++-- target/arm/cpu-features.h | 10 target/arm/cpu.c | 8 +++--- target/arm/cpu.h | 3

Re: [PATCH v7 13/14] arm/cpu: switch to a generated cpu-sysregs.h.inc

2025-06-12 Thread Cornelia Huck
On Thu, Jun 12 2025, Peter Maydell wrote: > On Thu, 15 May 2025 at 16:40, Cornelia Huck wrote: >> >> Generated against Linux 6.14-rc1. >> >> Reviewed-by: Sebastian Ott >> Reviewed-by: Eric Auger >> Signed-off-by: Cornelia Huck >> --- >

Re: [PATCH v7 08/14] arm/cpu: Store id_isar0-7 into the idregs array

2025-06-12 Thread Cornelia Huck
On Thu, Jun 12 2025, Peter Maydell wrote: > On Thu, 12 Jun 2025 at 16:36, Cornelia Huck wrote: >> >> On Thu, Jun 12 2025, Peter Maydell wrote: >> >> > On Thu, 15 May 2025 at 16:40, Cornelia Huck wrote: >> >> >> >> From: Eric Auger >>

Re: [PATCH v7 12/14] arm/cpu: Add sysreg generation scripts

2025-06-12 Thread Cornelia Huck
On Thu, Jun 12 2025, Peter Maydell wrote: > On Thu, 15 May 2025 at 16:40, Cornelia Huck wrote: >> >> From: Eric Auger >> >> Introduce scripts that automate the generation of system register >> definitions from a given linux source tree arch/arm64/tools/sysreg

Re: [PATCH v7 08/14] arm/cpu: Store id_isar0-7 into the idregs array

2025-06-12 Thread Cornelia Huck
On Thu, Jun 12 2025, Peter Maydell wrote: > On Thu, 15 May 2025 at 16:40, Cornelia Huck wrote: >> >> From: Eric Auger >> >> Reviewed-by: Richard Henderson >> Reviewed-by: Sebastian Ott >> Signed-off-by: Eric Auger >> Signed-off-by: Cornelia Huc

Re: [PATCH v7 02/14] arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays

2025-06-12 Thread Cornelia Huck
On Thu, Jun 12 2025, Peter Maydell wrote: > On Thu, 15 May 2025 at 16:39, Cornelia Huck wrote: >> >> From: Eric Auger >> >> Also add kvm accessors for storing host features into idregs. >> >> Reviewed-by: Richard Henderson >> Reviewed-by: Sebastian

[PATCH 1/2] watchdog: CONFIG_WDT_IB6300ESB -> CONFIG_WDT_I6300ESB

2025-06-10 Thread Cornelia Huck
There's no ib6300esb device; let's correct the typo in the config option. Signed-off-by: Cornelia Huck --- hw/watchdog/Kconfig | 2 +- hw/watchdog/meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/watchdog/Kconfig b/hw/watchdog/Kconfig index 86

[PATCH 0/2] cosmetics for the i6300esb watchdog

2025-06-10 Thread Cornelia Huck
The i6300esb watchdog device is generic enough to be used on any PCI platform; however, having an "Intel" device on a non-x86 platform looks a bit odd. Just call it a "virtual" device instead, and also fix an old typo for the config option while at it. Cornelia

[PATCH 2/2] watchdog: generic name for i6300esb

2025-06-10 Thread Cornelia Huck
examples on how to set up a virtual watchdog. Let's use "virtual i6300ESB" in the description to make clear that this device will work just fine on non-Intel platforms. Signed-off-by: Cornelia Huck --- hw/watchdog/wdt_i6300esb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v7 00/14] arm: rework id register storage

2025-06-06 Thread Cornelia Huck
Friendly ping... anything else that needs to happen here? On Thu, May 15 2025, Cornelia Huck wrote: > Some small fixes, including fixing up/adding SPDX identifiers, keeping the > series bisectable, and updating MAINTAINERS (please check if that's ok.) > > Also available at >

RE: [PATCH v3 00/10] kvm/arm: Introduce a customizable aarch64 KVM host model

2025-06-05 Thread Cornelia Huck
On Wed, Jun 04 2025, Shameerali Kolothum Thodi wrote: >> -Original Message- >> From: Cornelia Huck >> Sent: Wednesday, June 4, 2025 1:36 PM >> To: Shameerali Kolothum Thodi >> ; eric.auger@gmail.com; >> eric.au...@redhat.com; qemu-devel@non

RE: [PATCH v3 00/10] kvm/arm: Introduce a customizable aarch64 KVM host model

2025-06-04 Thread Cornelia Huck
On Wed, Jun 04 2025, Shameerali Kolothum Thodi wrote: >> -Original Message- >> From: Cornelia Huck >> Sent: Tuesday, June 3, 2025 4:15 PM >> To: Shameerali Kolothum Thodi >> ; eric.auger@gmail.com; >> eric.au...@redhat.com; qemu-devel@non

RE: [PATCH v3 00/10] kvm/arm: Introduce a customizable aarch64 KVM host model

2025-06-03 Thread Cornelia Huck
On Tue, May 27 2025, Cornelia Huck wrote: > On Mon, May 26 2025, Cornelia Huck wrote: > >> On Fri, May 23 2025, Shameerali Kolothum Thodi >> wrote: >> >>> Hi, >>> >>>> -Original Message- >>>> From: Cornelia H

RE: [PATCH v3 00/10] kvm/arm: Introduce a customizable aarch64 KVM host model

2025-05-27 Thread Cornelia Huck
On Mon, May 26 2025, Cornelia Huck wrote: > On Fri, May 23 2025, Shameerali Kolothum Thodi > wrote: > >> Hi, >> >>> -Original Message- >>> From: Cornelia Huck >>> Sent: Monday, April 14, 2025 5:39 PM >>> To: eric.auger@gma

RE: [PATCH v3 00/10] kvm/arm: Introduce a customizable aarch64 KVM host model

2025-05-26 Thread Cornelia Huck
On Fri, May 23 2025, Shameerali Kolothum Thodi wrote: > Hi, > >> -Original Message----- >> From: Cornelia Huck >> Sent: Monday, April 14, 2025 5:39 PM >> To: eric.auger@gmail.com; eric.au...@redhat.com; qemu- >> de...@nongnu.org; qemu-..

RE: [PATCH v3 06/10] arm/kvm: Allow reading all the writable ID registers

2025-05-26 Thread Cornelia Huck
On Fri, May 23 2025, Shameerali Kolothum Thodi wrote: >> -Original Message- >> From: Cornelia Huck >> Sent: Monday, April 14, 2025 5:39 PM >> To: eric.auger@gmail.com; eric.au...@redhat.com; qemu- >> de...@nongnu.org; qemu-...@nongnu.org; kvm...@

Re: [PATCH v3 06/10] arm/kvm: Allow reading all the writable ID registers

2025-05-20 Thread Cornelia Huck
On Tue, May 13 2025, Eric Auger wrote: > On 4/14/25 6:38 PM, Cornelia Huck wrote: >> From: Eric Auger >> >> At the moment kvm_arm_get_host_cpu_features() reads a subset of the >> ID regs. As we want to introduce properties for all writable ID reg >> fields, we w

Re: [PATCH v3 02/10] arm/cpu: Add sysreg properties generation

2025-05-19 Thread Cornelia Huck
On Tue, Apr 15 2025, Philippe Mathieu-Daudé wrote: > On 14/4/25 18:38, Cornelia Huck wrote: >> From: Eric Auger >> >> Introduce a script that automates the generation of system register >> properties definitions from a given linux source tree >> arch/arm64/t

Re: [PATCH v3 08/10] arm/cpu: more customization for the kvm host cpu model

2025-05-16 Thread Cornelia Huck
On Fri, May 16 2025, Daniel P. Berrangé wrote: > On Fri, May 16, 2025 at 04:51:34PM +0200, Cornelia Huck wrote: >> On Wed, May 14 2025, Daniel P. Berrangé wrote: >> >> > On Wed, May 14, 2025 at 05:36:58PM +0200, Cornelia Huck wrote: >> >> On Tue, Ma

Re: [PATCH v3 08/10] arm/cpu: more customization for the kvm host cpu model

2025-05-16 Thread Cornelia Huck
On Wed, May 14 2025, Daniel P. Berrangé wrote: > On Wed, May 14, 2025 at 05:36:58PM +0200, Cornelia Huck wrote: >> On Tue, May 13 2025, Daniel P. Berrangé wrote: >> >> > On Mon, Apr 14, 2025 at 06:38:47PM +0200, Cornelia Huck wrote: >> >> From: Eric Auge

Re: [PATCH v3 08/10] arm/cpu: more customization for the kvm host cpu model

2025-05-16 Thread Cornelia Huck
On Tue, May 13 2025, Daniel P. Berrangé wrote: > On Mon, Apr 14, 2025 at 06:38:47PM +0200, Cornelia Huck wrote: >> From: Eric Auger >> >> If the interface for writable ID registers is available, expose uint64 >> SYSREG properties for writable ID reg fields ex

Re: [PATCH v3 06/10] arm/kvm: Allow reading all the writable ID registers

2025-05-16 Thread Cornelia Huck
On Tue, May 13 2025, Eric Auger wrote: > On 4/14/25 6:38 PM, Cornelia Huck wrote: >> From: Eric Auger (...) >> +static bool >> +kvm_arm_get_host_cpu_features(ARMCPU *cpu, ARMHostCPUFeatures *ahcf, >> + bool exhaustive) > maybe the exh

[PATCH v7 12/14] arm/cpu: Add sysreg generation scripts

2025-05-15 Thread Cornelia Huck
defines for all system registers. [CH: update to handle current kernel sysregs structure, and to emit the re-worked register structures; cpu properties will be added later] Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- MAINTAINERS

[PATCH v7 07/14] arm/cpu: Store aa64smfr0 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 6 +++--- target/arm/cpu.h | 1 - target/arm/cpu64.c| 7 ++- target/arm/helper.c | 2 +- target/arm

[PATCH v7 00/14] arm: rework id register storage

2025-05-15 Thread Cornelia Huck
ux sysregs file I think that file is still our best bet to generate the descriptions easily, and updating the definitions is a manual step that can be checked for unintended changes - most of the hard work that Eric had been doing; all new bugs in there are my own :) Cornelia Huck (

[PATCH v7 13/14] arm/cpu: switch to a generated cpu-sysregs.h.inc

2025-05-15 Thread Cornelia Huck
Generated against Linux 6.14-rc1. Reviewed-by: Sebastian Ott Reviewed-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h.inc | 43 +--- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/target/arm/cpu-sysregs.h.inc b/target

[PATCH v7 08/14] arm/cpu: Store id_isar0-7 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 12 ++-- target/arm/cpu-features.h | 36 +- target/arm/cpu.c | 24 +++ target/arm/cpu.h | 7

[PATCH v7 09/14] arm/cpu: Store id_pfr0/1/2 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 5 +- target/arm/cpu-features.h | 10 ++-- target/arm/cpu.c | 8 +-- target/arm/cpu.h | 3 - target/arm

[PATCH v7 10/14] arm/cpu: Store id_dfr0/1 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 2 +- target/arm/cpu-features.h | 16 target/arm/cpu.c | 13 + target/arm/cpu.h

[PATCH v7 06/14] arm/cpu: Store aa64dfr0/1 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 16 target/arm/cpu.c | 15 +-- target/arm/cpu.h | 2 -- target/arm/cpu64.c

[PATCH v7 02/14] arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays

2025-05-15 Thread Cornelia Huck
From: Eric Auger Also add kvm accessors for storing host features into idregs. Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 57 --- target/arm/cpu.c

[PATCH v7 11/14] arm/cpu: Store id_mmfr0-5 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 8 ++-- target/arm/cpu-features.h | 18 target/arm/cpu.h | 6 --- target/arm/cpu64.c| 16

[PATCH v7 03/14] arm/cpu: Store aa64isar1/2 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 44 +++ target/arm/cpu.c | 13 target/arm/cpu.h | 2

[PATCH v7 05/14] arm/cpu: Store aa64mmfr0-3 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 74 +++ target/arm/cpu.h | 4 --- target/arm/cpu64.c| 8 ++--- target/arm

[PATCH v7 14/14] arm/kvm: use fd instead of fdarray[2]

2025-05-15 Thread Cornelia Huck
We have fd, so might as well neaten things up. Suggested-by: Eric Auger Reviewed-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/kvm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index 6c665334658b..a954a08a0fc3

[PATCH v7 04/14] arm/cpu: Store aa64pfr0/1 into the idregs array

2025-05-15 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 40 - target/arm/cpu.c | 29 target/arm/cpu.h | 2

[PATCH v7 01/14] arm/cpu: Add sysreg definitions in cpu-sysregs.h

2025-05-15 Thread Cornelia Huck
Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h | 42 +++ target/arm/cpu-sysregs.h.inc | 35 ++ target/arm/cpu.h | 49 target/arm

Re: [PATCH v3 08/10] arm/cpu: more customization for the kvm host cpu model

2025-05-14 Thread Cornelia Huck
On Tue, May 13 2025, Daniel P. Berrangé wrote: > On Mon, Apr 14, 2025 at 06:38:47PM +0200, Cornelia Huck wrote: >> From: Eric Auger >> >> If the interface for writable ID registers is available, expose uint64 >> SYSREG properties for writable ID reg fields ex

Re: [PATCH v3 02/10] arm/cpu: Add sysreg properties generation

2025-05-14 Thread Cornelia Huck
On Tue, May 13 2025, Daniel P. Berrangé wrote: > On Mon, Apr 14, 2025 at 06:38:41PM +0200, Cornelia Huck wrote: >> From: Eric Auger >> >> Introduce a script that automates the generation of system register >> properties definitions from a given linux source tree

Re: [PATCH v6 02/14] arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays

2025-05-14 Thread Cornelia Huck
On Tue, May 13 2025, Daniel P. Berrangé wrote: > On Tue, May 06, 2025 at 10:52:22AM +0200, Cornelia Huck wrote: >> From: Eric Auger >> >> Also add kvm accessors for storing host features into idregs. >> >> Reviewed-by: Richard Henderson >> Reviewed-by

Re: [PATCH v6 12/14] arm/cpu: Add sysreg generation scripts

2025-05-14 Thread Cornelia Huck
On Tue, May 13 2025, Daniel P. Berrangé wrote: > On Tue, May 06, 2025 at 10:52:32AM +0200, Cornelia Huck wrote: >> From: Eric Auger >> >> Introduce scripts that automate the generation of system register >> definitions from a given linux source tree arch/arm64/tool

Re: [PATCH for-10.1 v5 02/13] arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays

2025-05-13 Thread Cornelia Huck
On Tue, May 13 2025, Daniel P. Berrangé wrote: > On Wed, Apr 09, 2025 at 04:42:53PM +0200, Cornelia Huck wrote: >> From: Eric Auger >> >> Also add kvm add accessors for storing host features into idregs. >> >> Reviewed-by: Richard Henderson >> Revie

Re: [PATCH v3 04/10] kvm: kvm_get_writable_id_regs

2025-05-13 Thread Cornelia Huck
On Tue, May 13 2025, Eric Auger wrote: > Hi Connie, > > On 4/14/25 6:38 PM, Cornelia Huck wrote: >> Add an helper to retrieve the writable id reg bitmask. The >> status of the query is stored in the CPU struct so that an >> an error, if any, can be reported on vcpu rea

Re: [PATCH v3 01/10] arm/cpu: Add infra to handle generated ID register definitions

2025-05-13 Thread Cornelia Huck
On Tue, May 13 2025, Eric Auger wrote: > Hi Connie, > > On 4/14/25 6:38 PM, Cornelia Huck wrote: >> From: Eric Auger >> >> The known ID regs are described in a new initialization function >> dubbed initialize_cpu_sysreg_properties(). That code will be >>

Re: [PATCH v6 00/14] arm: rework id register storage

2025-05-13 Thread Cornelia Huck
On Tue, May 13 2025, Eric Auger wrote: > Hi Connie, > > On 5/6/25 10:52 AM, Cornelia Huck wrote: >> Just some small changes: >> - fixed up some botched conversions noted by Eric (thanks!) >> - rebased to current master >> - new patch with a small cleanup suggeste

[PATCH v6 09/14] arm/cpu: Store id_pfr0/1/2 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 5 +- target/arm/cpu-features.h | 10 ++-- target/arm/cpu.c | 8 +-- target/arm/cpu.h | 3 - target/arm

[PATCH v6 12/14] arm/cpu: Add sysreg generation scripts

2025-05-06 Thread Cornelia Huck
defines for all system registers. [CH: update to handle current kernel sysregs structure, and to emit the re-worked register structures; cpu properties will be added later] Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- scripts/gen-cpu-sysregs

[PATCH v6 14/14] arm/kvm: use fd instead of fdarray[2]

2025-05-06 Thread Cornelia Huck
We have fd, so might as well neaten things up. Suggested-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/kvm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/arm/kvm.c b/target/arm/kvm.c index abb63b7f617f..1ffd67a39056 100644 --- a/target/arm

[PATCH v6 11/14] arm/cpu: Store id_mmfr0-5 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 8 ++-- target/arm/cpu-features.h | 18 target/arm/cpu.h | 6 --- target/arm/cpu64.c| 16

[PATCH v6 06/14] arm/cpu: Store aa64dfr0/1 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 16 target/arm/cpu.c | 15 +-- target/arm/cpu.h | 2 -- target/arm/cpu64.c

[PATCH v6 04/14] arm/cpu: Store aa64pfr0/1 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 40 - target/arm/cpu.c | 29 target/arm/cpu.h | 2

[PATCH v6 13/14] arm/cpu: switch to a generated cpu-sysregs.h.inc

2025-05-06 Thread Cornelia Huck
Generated against Linux 6.14-rc1. Reviewed-by: Sebastian Ott Reviewed-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h.inc | 43 +--- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/target/arm/cpu-sysregs.h.inc b/target

[PATCH v6 05/14] arm/cpu: Store aa64mmfr0-3 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 74 +++ target/arm/cpu.h | 4 --- target/arm/cpu64.c| 8 ++--- target/arm

[PATCH v6 10/14] arm/cpu: Store id_dfr0/1 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 2 +- target/arm/cpu-features.h | 16 target/arm/cpu.c | 13 + target/arm/cpu.h

[PATCH v6 03/14] arm/cpu: Store aa64isar1/2 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 44 +++ target/arm/cpu.c | 12 --- target/arm/cpu.h | 2 -- target

[PATCH v6 08/14] arm/cpu: Store id_isar0-7 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- hw/intc/armv7m_nvic.c | 12 ++-- target/arm/cpu-features.h | 36 +- target/arm/cpu.c | 24 +++ target/arm/cpu.h | 7

[PATCH v6 07/14] arm/cpu: Store aa64smfr0 into the idregs array

2025-05-06 Thread Cornelia Huck
From: Eric Auger Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 6 +++--- target/arm/cpu.h | 1 - target/arm/cpu64.c| 7 ++- target/arm/helper.c | 2 +- target/arm

[PATCH v6 01/14] arm/cpu: Add sysreg definitions in cpu-sysregs.h

2025-05-06 Thread Cornelia Huck
Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-sysregs.h | 42 +++ target/arm/cpu-sysregs.h.inc | 35 ++ target/arm/cpu.h | 49 target/arm

[PATCH v6 02/14] arm/cpu: Store aa64isar0/aa64zfr0 into the idregs arrays

2025-05-06 Thread Cornelia Huck
From: Eric Auger Also add kvm accessors for storing host features into idregs. Reviewed-by: Richard Henderson Reviewed-by: Sebastian Ott Signed-off-by: Eric Auger Signed-off-by: Cornelia Huck --- target/arm/cpu-features.h | 57 --- target/arm/cpu.c

[PATCH v6 00/14] arm: rework id register storage

2025-05-06 Thread Cornelia Huck
be checked for unintended changes - most of the hard work that Eric had been doing; all new bugs in there are my own :) Cornelia Huck (2): arm/cpu: switch to a generated cpu-sysregs.h.inc arm/kvm: use fd instead of fdarray[2] Eric Auger (12): arm/cpu: Add sysreg definitions in cpu

Re: [PATCH v3 05/10] arm/cpu: accessors for writable id registers

2025-04-30 Thread Cornelia Huck
On Tue, Apr 29 2025, Sebastian Ott wrote: > On Mon, 14 Apr 2025, Cornelia Huck wrote: >> Also add conversion between the different indices. >> >> Signed-off-by: Cornelia Huck >> --- >> target/arm/cpu.h | 18 ++ >> 1 file changed, 18 inse

Re: [PATCH for-10.1 v5 00/13] arm: rework id register storage

2025-04-29 Thread Cornelia Huck
On Mon, Apr 28 2025, Eric Auger wrote: > Hi Connie, > > On 4/9/25 4:42 PM, Cornelia Huck wrote: >> Just a quick respin to fix a missed conversion in hvf.c. >> >> Also available at >> https://gitlab.com/cohuck/qemu/-/commits/arm-rework-idreg-storage-v5 > > I

Re: [PATCH for-10.1 v5 08/13] arm/cpu: Store id_isar0-7 into the idregs array

2025-04-29 Thread Cornelia Huck
On Mon, Apr 28 2025, Eric Auger wrote: > On 4/9/25 4:42 PM, Cornelia Huck wrote: >> From: Eric Auger >> >> Reviewed-by: Richard Henderson >> Reviewed-by: Sebastian Ott >> Signed-off-by: Eric Auger >> Signed-off-by: Cornelia Huck >> --- >>

Re: [PATCH for-10.1 v5 06/13] arm/cpu: Store aa64dfr0/1 into the idregs array

2025-04-29 Thread Cornelia Huck
On Mon, Apr 28 2025, Eric Auger wrote: > On 4/9/25 4:42 PM, Cornelia Huck wrote: >> From: Eric Auger >> >> Reviewed-by: Richard Henderson >> Reviewed-by: Sebastian Ott >> Signed-off-by: Eric Auger >> Signed-off-by: Cornelia Huck &g

Re: [PATCH for-10.1 v5 04/13] arm/cpu: Store aa64pfr0/1 into the idregs array

2025-04-29 Thread Cornelia Huck
On Mon, Apr 28 2025, Eric Auger wrote: > On 4/9/25 4:42 PM, Cornelia Huck wrote: >> From: Eric Auger >> >> Reviewed-by: Richard Henderson >> Reviewed-by: Sebastian Ott >> Signed-off-by: Eric Auger >> Signed-off-by: Cornelia Huck &g

  1   2   3   4   5   6   7   8   9   10   >