[PATCH 09/14] target/arm: cpu: Mark MSHV supporting PSCI 1.3

Anirudh Rayabharam (Microsoft) posted 14 patches 3 weeks, 6 days ago
Maintainers: Magnus Kulke <magnuskulke@linux.microsoft.com>, Wei Liu <wei.liu@kernel.org>, Peter Maydell <peter.maydell@linaro.org>, Anirudh Rayabharam <anirudh@anirudhrb.com>, Aastha Rawat <aastharawat@linux.microsoft.com>, Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
There is a newer version of this series
[PATCH 09/14] target/arm: cpu: Mark MSHV supporting PSCI 1.3
Posted by Anirudh Rayabharam 3 weeks, 6 days ago
From: Aastha Rawat <aastharawat@linux.microsoft.com>

MSHV supports PSCI 1.3. Expose this version to guests.

Signed-off-by: Aastha Rawat <aastharawat@linux.microsoft.com>
---
 target/arm/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 4b1e9750e6..a0a018a8cd 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1157,7 +1157,7 @@ static void arm_cpu_initfn(Object *obj)
     if (tcg_enabled() || hvf_enabled()) {
         /* TCG and HVF implement PSCI 1.1 */
         cpu->psci_version = QEMU_PSCI_VERSION_1_1;
-    } else if (whpx_enabled()) {
+    } else if (whpx_enabled() || mshv_enabled()) {
         cpu->psci_version = QEMU_PSCI_VERSION_1_3;
     }
 }

-- 
2.43.0
Re: [PATCH 09/14] target/arm: cpu: Mark MSHV supporting PSCI 1.3
Posted by Mohamed Mediouni 3 weeks, 6 days ago

> On 11. Mar 2026, at 16:15, Anirudh Rayabharam <anirudh@anirudhrb.com> wrote:
> 
> From: Aastha Rawat <aastharawat@linux.microsoft.com>
> 
> MSHV supports PSCI 1.3. Expose this version to guests.
> 
> Signed-off-by: Aastha Rawat <aastharawat@linux.microsoft.com>
Reviewed-by: Mohamed Mediouni <mohamed@unpredictable.fr>

> ---
> target/arm/cpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/arm/cpu.c b/target/arm/cpu.c
> index 4b1e9750e6..a0a018a8cd 100644
> --- a/target/arm/cpu.c
> +++ b/target/arm/cpu.c
> @@ -1157,7 +1157,7 @@ static void arm_cpu_initfn(Object *obj)
>     if (tcg_enabled() || hvf_enabled()) {
>         /* TCG and HVF implement PSCI 1.1 */
>         cpu->psci_version = QEMU_PSCI_VERSION_1_1;
> -    } else if (whpx_enabled()) {
> +    } else if (whpx_enabled() || mshv_enabled()) {
>         cpu->psci_version = QEMU_PSCI_VERSION_1_3;
>     }
> }
> 
> -- 
> 2.43.0
> 
>