From: Sebastian Ott <sebott@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Eric Auger <eric.auger@redhat.com>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org, kvm@vger.kernel.org,
kvmarm@lists.linux.dev
Subject: Re: [PATCH v4 2/2] target/arm/kvm: add kvm-psci-version vcpu property
Date: Wed, 11 Feb 2026 16:37:38 +0100 (CET) [thread overview]
Message-ID: <9b04a20f-b708-208d-1e4e-466ec30b7bb9@redhat.com> (raw)
In-Reply-To: <CAFEAcA8oi1Xs2kv66dFV9NZore+Q2vHUsgMikveVdN1c+3SBJQ@mail.gmail.com>
Hi Peter,
On Fri, 6 Feb 2026, Peter Maydell wrote:
> On Tue, 2 Dec 2025 at 16:09, Sebastian Ott <sebott@redhat.com> wrote:
>>
>> Provide a kvm specific vcpu property to override the default
>> (as of kernel v6.13 that would be PSCI v1.3) PSCI version emulated
>> by kvm. Current valid values are: 0.1, 0.2, 1.0, 1.1, 1.2, and 1.3
>>
>> Note: in order to support PSCI v0.1 we need to drop vcpu
>> initialization with KVM_CAP_ARM_PSCI_0_2 in that case.
>>
>> Signed-off-by: Sebastian Ott <sebott@redhat.com>
>> Reviewed-by: Eric Auger <eric.auger@redhat.com>
>> ---
>> docs/system/arm/cpu-features.rst | 5 +++
>> target/arm/cpu.h | 6 +++
>> target/arm/kvm.c | 64 +++++++++++++++++++++++++++++++-
>> 3 files changed, 74 insertions(+), 1 deletion(-)
>
> Hi; this patch seems generally reasonable to me as a way to handle
> this kind of "control" register; for more discussion I wrote a
> longer email in reply to Eric's series handling other kinds of
> migration failure:
> https://lore.kernel.org/qemu-devel/CAFEAcA-gi42JObOjLuPudABX8WRdWf5SzSbkzU-bd06ecF1Vog@mail.gmail.com/T/#me03ebff8dbd8f58189cd98c3a21812781693277e
>
> Unless discussion in that thread reveals that we have so many of
> this kind of "control" knob that we would prefer a generic
> solution rather than per-knob user-friendly names and values,
> I'm OK with taking this patch without completely resolving the
> design discussion on that other series first.
>
> My review comments below are fairly minor, and patch 1 of
> this series has already been applied upstream now.
Thanks for your comments! I've addressed them all and sent out V5.
>> +static char *kvm_get_psci_version(Object *obj, Error **errp)
>> +{
>> + ARMCPU *cpu = ARM_CPU(obj);
>> + const struct psci_version *ver;
>> +
>> + for (ver = psci_versions; ver->number != -1; ver++) {
[...]
>> + if (ver->number == cpu->psci_version)
>> + return g_strdup(ver->str);
>> + }
>> +
>> + return g_strdup_printf("Unknown PSCI-version: %x", cpu->psci_version);
>
> Is this ever possible?
Hm, not sure actually - what if there's a new kernel/qemu implementing
psci version 1.4 and then you migrate to a qemu that doesn't know about
1.4?
Thanks,
Sebastian
next prev parent reply other threads:[~2026-02-11 15:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 16:08 [PATCH v4 0/2] arm: add kvm-psci-version vcpu property Sebastian Ott
2025-12-02 16:08 ` [PATCH v4 1/2] target/arm/kvm: add constants for new PSCI versions Sebastian Ott
2025-12-18 7:56 ` Stefan Weil
2025-12-02 16:08 ` [PATCH v4 2/2] target/arm/kvm: add kvm-psci-version vcpu property Sebastian Ott
2026-02-06 14:59 ` Peter Maydell
2026-02-11 15:37 ` Sebastian Ott [this message]
2026-02-11 15:43 ` Peter Maydell
2026-02-11 16:04 ` Sebastian Ott
2026-02-16 13:30 ` Peter Maydell
2026-02-20 12:12 ` Sebastian Ott
2025-12-18 10:47 ` [PATCH v4 0/2] arm: " Sebastian Ott
2026-01-21 9:39 ` 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=9b04a20f-b708-208d-1e4e-466ec30b7bb9@redhat.com \
--to=sebott@redhat.com \
--cc=eric.auger@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.linux.dev \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox