From 67b2369061b3b265dede4c7a3d74189055227b25 Mon Sep 17 00:00:00 2001 From: Swetha Chikkaboraiah Date: Mon, 13 Jan 2025 16:08:23 +0530 Subject: [PATCH] ARM: dts: msm: Add support for guest-cpus Add support for offlining CPUs during VM load for Parrot. Change-Id: Id5dad4d40375942a2f8ad671345390ecfc7a3926 Signed-off-by: Swetha Chikkaboraiah (cherry picked from commit 07b61ddce66a88d06f21b0cd5874d409e38247d4) --- bindings/arm/msm/qcom,gh-secure-vm-loader.yaml | 6 ++++++ qcom/parrot.dtsi | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bindings/arm/msm/qcom,gh-secure-vm-loader.yaml b/bindings/arm/msm/qcom,gh-secure-vm-loader.yaml index 6e56bc68..0ca07836 100644 --- a/bindings/arm/msm/qcom,gh-secure-vm-loader.yaml +++ b/bindings/arm/msm/qcom,gh-secure-vm-loader.yaml @@ -26,6 +26,10 @@ properties: $ref: '/schemas/types.yaml#/definitions/uint32' description: Peripheral authentication ID of the subsystem. + qcom,guest-cpus: + $ref: '/schemas/types.yaml#/definitions/string' + description: Guest CPUs. + qcom,firmware-name: $ref: '/schemas/types.yaml#/definitions/string' description: Virtual machine name. @@ -42,6 +46,7 @@ required: - compatible - qcom,pas-id - qcom,vmid + - qcom,guest-cpus - qcom,firmware-name - memory-region - virtio-backends @@ -54,6 +59,7 @@ examples: compatible = "qcom,gh-secure-vm-loader"; qcom,pas-id = <28>; qcom,vmid = <45>; + qcom,guest-cpus = "5-6"; qcom,firmware-name = "trustedvm"; memory-region = <&trust_ui_vm_mem>; virtio-backends = <&trust_ui_vm_virt_be0>; diff --git a/qcom/parrot.dtsi b/qcom/parrot.dtsi index c0f541fa..1c9b60ba 100644 --- a/qcom/parrot.dtsi +++ b/qcom/parrot.dtsi @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2024-2025 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -2066,6 +2066,7 @@ compatible = "qcom,gh-secure-vm-loader"; qcom,pas-id = <28>; qcom,vmid = <45>; + qcom,guest-cpus = "5-6"; qcom,firmware-name = "trustedvm"; memory-region = <&trust_ui_vm_mem>; virtio-backends = <&trust_ui_vm_virt_be0>;