All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Mohamed Mediouni" <mohamed@unpredictable.fr>,
	qemu-devel@nongnu.org,
	"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Phil Dennis-Jordan" <phil@philjordan.eu>,
	"Alexander Graf" <agraf@csgraf.de>,
	"Igor Mammedov" <imammedo@redhat.com>,
	"Cameron Esfahani" <dirty@apple.com>,
	"Akihiko Odaki" <odaki@rsg.ci.i.u-tokyo.ac.jp>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	qemu-arm@nongnu.org, "Shannon Zhao" <shannon.zhaosl@gmail.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Zhao Liu" <zhao1.liu@intel.com>,
	"Roman Bolshakov" <rbolshakov@ddn.com>,
	"Ani Sinha" <anisinha@redhat.com>,
	"Pedro Barbuda" <pbarbuda@microsoft.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Yanan Wang" <wangyanan55@huawei.com>
Subject: Re: [PATCH v17 03/21] hw: arm: virt: rework MSI-X configuration
Date: Tue, 27 Jan 2026 10:34:33 -0500	[thread overview]
Message-ID: <20260127102534-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <CAFEAcA_g3VfRectVpUG-OnLh_AtsqpLt7YYrYXDSfiesS5EuKw@mail.gmail.com>

On Tue, Jan 27, 2026 at 02:10:08PM +0000, Peter Maydell wrote:
> On Tue, 27 Jan 2026 at 13:40, Mohamed Mediouni <mohamed@unpredictable.fr> wrote:
> >
> >
> >
> > > On 27. Jan 2026, at 13:54, Peter Maydell <peter.maydell@linaro.org> wrote:
> > >
> > > On Tue, 27 Jan 2026 at 12:46, Mohamed Mediouni <mohamed@unpredictable.fr> wrote:
> > >>> On 27. Jan 2026, at 11:54, Peter Maydell <peter.maydell@linaro.org> wrote:
> > >>>
> > >>> On Wed, 21 Jan 2026 at 13:41, Mohamed Mediouni <mohamed@unpredictable.fr> wrote:
> > >>>> +/*
> > >>>> + * In the prior Qemu ACPI table handling, GICv2 configurations
> > >>>> + * had vms->its=1... That's broken.
> > >>>> + *
> > >>>> + * Match that assumption to match the existing ACPI tables that
> > >>>> + * have been shipping for quite a while.
> > >>>> + */
> > >>>> +static int is_gicv2_acpi_workaround_needed(VirtMachineState *vms) {
> > >>>> +    return vms->gic_version == 2;
> > >>>> +}
> > >>>
> > >>> We don't need to keep identical bug-for-bug ACPI tables like that.
> > >>> If we were incorrectly reporting an ITS in a GICv2-only ACPI table,
> > >>> that was a bug and we can fix it. (This might need adjusting of the
> > >>> golden reference ACPI data in some of the bios-tables-tests if we
> > >>> were testing that, so it ought to go in its own patch.)
> > >>>
> > >> Hello,
> > >>
> > >> I’m a bit concerned about breaking hibernation in this case…
> > >>
> > >> My intent was keeping this behavior for now and then add a machine model version dependent toggle in a follow-up patch.
> > >
> > > I'm not an ACPI table expert but my understanding is that it's
> > > OK to change the ACPI table contents without having to make
> > > those changes machine-version dependent. See e.g. commit d6afe18b7242,
> > > which changed the ACPI tables for the its=off case and did not
> > > make those changes machine-version specific.
> 
> > That commit didn’t affect the default/regular config so it wouldn't have been too problematic in practice.
> >
> > Have had countless issues with how brittle hibernation is* - and more or less subtle ACPI table changes
> > tend to break it.
> 
> I don't want to add back-compat handling for this to the virt
> board unless one of our ACPI table experts says that yes we
> do need to keep the ACPI table contents identical for older
> versioned machine types.
> 
> thanks
> -- PMM


Generally what we have handles VM migration, not hybernation.  The issue
with hybernation is guests might cache some data to speed up init. If
you want to go overboard you would have to never change anything at all
in the firmware.  Whether they do it in any specific instance is hard to
predict 100% but our approach generally is to try with a couple of
popular guests, and not to worry too much ahead of time otherwise.  For
several reasons: one is most changes are harmless, another one there's
no special race here, if there's an issue you can trigger it
predictably, yet another one is hybernation is a rarely used feature.

For the specific change, I'd guess just test and if fine - fix it without a compat.

-- 
MST



  reply	other threads:[~2026-01-27 15:35 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 13:40 [PATCH v17 00/21] WHPX support for Arm Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 01/21] target/arm/kvm: add constants for new PSCI versions Mohamed Mediouni
2026-01-21 20:32   ` Philippe Mathieu-Daudé
2026-01-21 13:40 ` [PATCH v17 02/21] accel/system: Introduce hwaccel_enabled() helper Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 03/21] hw: arm: virt: rework MSI-X configuration Mohamed Mediouni
2026-01-27 10:54   ` Peter Maydell
2026-01-27 12:46     ` Mohamed Mediouni
2026-01-27 12:54       ` Peter Maydell
2026-01-27 13:40         ` Mohamed Mediouni
2026-01-27 14:10           ` Peter Maydell
2026-01-27 15:34             ` Michael S. Tsirkin [this message]
2026-01-27 18:31               ` Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 04/21] qtest: hw/arm: virt: add new test case for GICv3 + GICv2m Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 05/21] docs: arm: update virt machine model description Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 06/21] whpx: Move around files before introducing AArch64 support Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 07/21] whpx: reshuffle common code Mohamed Mediouni
2026-01-21 13:40 ` [PATCH v17 08/21] whpx: ifdef out winhvemulation on non-x86_64 Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 09/21] whpx: common: add WHPX_INTERCEPT_DEBUG_TRAPS define Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 10/21] hw, target, accel: whpx: change apic_in_platform to kernel_irqchip Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 11/21] whpx: interrupt controller support Mohamed Mediouni
2026-01-27 10:58   ` Peter Maydell
2026-01-27 11:08   ` Peter Maydell
2026-01-27 12:57     ` Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 12/21] whpx: add arm64 support Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 13/21] whpx: change memory management logic Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 14/21] target/arm: cpu: mark WHPX as supporting PSCI 1.3 Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 15/21] whpx: arm64: clamp down IPA size Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 16/21] hw/arm, accel/hvf, whpx: unify get_physical_address_range between WHPX and HVF Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 17/21] whpx: arm64: implement -cpu host Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 18/21] target/arm: whpx: instantiate GIC early Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 19/21] whpx: arm64: gicv3: add migration blocker Mohamed Mediouni
2026-01-22 10:30   ` Prasad Pandit
2026-01-27 11:03   ` Peter Maydell
2026-01-21 13:41 ` [PATCH v17 20/21] whpx: enable arm64 builds Mohamed Mediouni
2026-01-21 13:41 ` [PATCH v17 21/21] whpx: arm64: add partition-wide reset on the reboot path Mohamed Mediouni
2026-01-27 11:09 ` [PATCH v17 00/21] WHPX support for Arm Peter Maydell

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=20260127102534-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=agraf@csgraf.de \
    --cc=anisinha@redhat.com \
    --cc=dirty@apple.com \
    --cc=imammedo@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=mohamed@unpredictable.fr \
    --cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
    --cc=pbarbuda@microsoft.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=phil@philjordan.eu \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rbolshakov@ddn.com \
    --cc=richard.henderson@linaro.org \
    --cc=shannon.zhaosl@gmail.com \
    --cc=wangyanan55@huawei.com \
    --cc=zhao1.liu@intel.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.