MSHV supports PSCI 1.3. Expose this version to guests.

Signed-off-by: Aastha Rawat <[email protected]>
Reviewed-by: Mohamed Mediouni <[email protected]>
---
 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 524ed3536a..aa1b3c364b 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -1247,7 +1247,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.45.4


Reply via email to