All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Eric Auger <eric.auger@redhat.com>,
	eric.auger.pro@gmail.com, eric.auger@redhat.com,
	qemu-devel@nongnu.org, qemu-arm@nongnu.org,
	peter.maydell@linaro.org, maz@kernel.org, oliver.upton@linux.dev,
	sebott@redhat.com, gshan@redhat.com, ddutile@redhat.com,
	peterx@redhat.com, philmd@linaro.org, pbonzini@redhat.com
Subject: Re: [PATCH v6 08/11] hw/arm/virt: Declare AArch32 DBGDTRTX as safe to ignore in incoming stream
Date: Tue, 27 Jan 2026 18:19:20 +0100	[thread overview]
Message-ID: <87wm13rn1j.fsf@redhat.com> (raw)
In-Reply-To: <20260126165445.3033335-9-eric.auger@redhat.com>

On Mon, Jan 26 2026, Eric Auger <eric.auger@redhat.com> wrote:

> With the new infrastructure in place it is now feasible to teach
> qemu that it is safe to ignore a sysreg in the incoming migration
> stream. So with the plan to revert commit 4f2b82f60431 ("target/arm:
> Reinstate bogus AArch32 DBGDTRTX register for migration compat") from
> qemu 11.0 onwards, let's add a compat in 10.2 machine options stating
> that this reg is safe to ignore. from 11.0 onwards we will not need
> that register anymore.
>
> Signed-off-by: Eric Auger <eric.auger@redhat.com>
>
> ---
>
> v4 -> v5:
> - rebased on top of latest machine types (Connie)
>
> v3 -> v4:
> - add a comment related to DBGDTRTX (Connie)
> ---
>  hw/arm/virt.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/hw/arm/virt.c b/hw/arm/virt.c
> index baa4e31aac1..03d5af18f26 100644
> --- a/hw/arm/virt.c
> +++ b/hw/arm/virt.c
> @@ -100,6 +100,15 @@ static GlobalProperty arm_virt_compat_defaults[] = {
>  static const size_t arm_virt_compat_defaults_len =
>      G_N_ELEMENTS(arm_virt_compat_defaults);
>  
> +/* Register erronously exposed on 10.2 and earlier */
> +#define DBGDTRTX 0x40200000200e0298
> +
> +static GlobalProperty arm_virt_compat_10_2[] = {
> +    { TYPE_ARM_CPU, "x-mig-safe-missing-regs", stringify(DBGDTRTX)},
> +};
> +static const size_t arm_virt_compat_10_2_len =
> +    G_N_ELEMENTS(arm_virt_compat_10_2);
> +

Not objecting, but we had a discussion recently regarding where compat
values for arm cpus should live:
https://lore.kernel.org/qemu-devel/20260120122108.131708-1-thuth@redhat.com/ ff.

Could this become relevant for future other versioned machine types? I'd
assume that they just would skip the bogus reg from the start, though.

>  /*
>   * This cannot be called from the virt_machine_class_init() because
>   * TYPE_VIRT_MACHINE is abstract and mc->compat_props g_ptr_array_new()
> @@ -3552,6 +3561,7 @@ static void virt_machine_10_2_options(MachineClass *mc)
>  {
>      virt_machine_11_0_options(mc);
>      compat_props_add(mc->compat_props, hw_compat_10_2, hw_compat_10_2_len);
> +    compat_props_add(mc->compat_props, arm_virt_compat_10_2, arm_virt_compat_10_2_len);
>  }
>  DEFINE_VIRT_MACHINE(10, 2)
>  



  reply	other threads:[~2026-01-27 17:20 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-26 16:52 [PATCH v6 00/11] Mitigation of "failed to load cpu:cpreg_vmstate_array_len" migration failures Eric Auger
2026-01-26 16:53 ` [PATCH v6 01/11] hw/arm/virt: Rename arm_virt_compat into arm_virt_compat_defaults Eric Auger
2026-02-06 14:34   ` Peter Maydell
2026-01-26 16:53 ` [PATCH v6 02/11] target/arm/machine: Improve traces on register mismatch during migration Eric Auger
2026-02-06 14:31   ` Peter Maydell
2026-02-09 12:51     ` Cornelia Huck
2026-02-09 13:56       ` Eric Auger
2026-02-09 13:42     ` Eric Auger
2026-02-09 15:08   ` Alex Bennée
2026-02-09 15:20     ` Peter Maydell
2026-02-09 16:04     ` Eric Auger
2026-01-26 16:53 ` [PATCH v6 03/11] target/arm/cpu: Allow registers to be hidden Eric Auger
2026-01-27 17:09   ` Cornelia Huck
2026-01-29 10:17     ` Eric Auger
2026-02-04 12:46   ` Eric Auger
2026-01-26 16:53 ` [PATCH v6 04/11] target/arm/machine: Allow extra regs in the incoming stream Eric Auger
2026-01-26 16:53 ` [PATCH v6 05/11] kvm-all: Enforce hidden regs are never accessed Eric Auger
2026-01-26 16:53 ` [PATCH v6 06/11] target/arm/cpu: Implement hide_reg callback() Eric Auger
2026-01-26 16:53 ` [PATCH v6 07/11] target/arm/cpu: Expose x-mig-hidden-regs and x-mig-safe-missing-regs properties Eric Auger
2026-01-26 16:53 ` [PATCH v6 08/11] hw/arm/virt: Declare AArch32 DBGDTRTX as safe to ignore in incoming stream Eric Auger
2026-01-27 17:19   ` Cornelia Huck [this message]
2026-01-29 10:23     ` Eric Auger
2026-01-26 16:53 ` [PATCH v6 09/11] Revert "target/arm: Reinstate bogus AArch32 DBGDTRTX register for migration compat" Eric Auger
2026-01-26 16:53 ` [PATCH v6 10/11] hw/arm/virt: Introduce framework to aggregate hidden-regs and safe-missing-regs Eric Auger
2026-01-26 16:53 ` [PATCH v6 11/11] hw/arm/virt: [DO NOT UPSTREAM] Enforce compatibility with older kernels Eric Auger
2026-01-26 17:16 ` [PATCH v6 00/11] Mitigation of "failed to load cpu:cpreg_vmstate_array_len" migration failures Eric Auger
2026-01-27 16:52 ` Sebastian Ott
2026-01-29 10:23   ` Eric Auger
2026-02-06 14:15 ` Peter Maydell
2026-02-09 14:59   ` Alex Bennée
2026-02-09 16:13     ` Eric Auger
2026-02-09 15:13   ` Eric Auger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wm13rn1j.fsf@redhat.com \
    --to=cohuck@redhat.com \
    --cc=ddutile@redhat.com \
    --cc=eric.auger.pro@gmail.com \
    --cc=eric.auger@redhat.com \
    --cc=gshan@redhat.com \
    --cc=maz@kernel.org \
    --cc=oliver.upton@linux.dev \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sebott@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.