From 82e16bca340778e06042af259d5ca1eafb9e1a67 Mon Sep 17 00:00:00 2001 From: Neeraj Upadhyay Date: Wed, 2 Dec 2020 00:30:52 +0530 Subject: [PATCH 1/2] dt-bindings: Update bindings for guestvm-loader Update bindings for guestvm-loader with the new properties for CPU reservation. Change-Id: Ic3f0e9282524ecf9021ded582d67e80752156301 --- bindings/soc/qcom/qcom,guestvm-loader.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bindings/soc/qcom/qcom,guestvm-loader.yaml b/bindings/soc/qcom/qcom,guestvm-loader.yaml index 10533eb7bb46..5c0f71be6b19 100644 --- a/bindings/soc/qcom/qcom,guestvm-loader.yaml +++ b/bindings/soc/qcom/qcom,guestvm-loader.yaml @@ -16,6 +16,13 @@ properties: image_to_be_loaded: $ref: /schemas/types.yaml#/definitions/string + qcom,reserved-cpus: + Value type: + Definition: should contain cpus reserved for guestvm + + qcom,unisolate-timeout-ms: + description: timeout, in ms, for unisolating reserved cpus. + required: - compatible - image_to_be_loaded @@ -25,5 +32,7 @@ examples: qcom,guestvm_loader { compatible = "qcom,guestvm-loader"; image_to_be_loaded = "trustedvm"; + qcom,reserved-cpus = <4 5>; + qcom,unisolate-timeout-ms = <8000>; }; -... \ No newline at end of file +... From 49ac72dafce321fbf2a172f48dfe864b28f75fa1 Mon Sep 17 00:00:00 2001 From: Murali Nalajala Date: Tue, 1 Dec 2020 18:43:01 -0800 Subject: [PATCH 2/2] ARM: dts: msm: add new properties to guestvm node Add new properties to support cpu isolation and unisolation when the VM boot is start. Change-Id: I56a0a344230ef22e84a375431d0be2e0ed52a130 --- qcom/lahaina.dtsi | 2 ++ qcom/shima.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index d130a7c3b4c3..4817d6aa6c38 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -5191,6 +5191,8 @@ qcom,guestvm_loader { compatible = "qcom,guestvm-loader"; image_to_be_loaded = "trustedvm"; + qcom,reserved-cpus = <4 5>; + qcom,unisolate-timeout-ms = <8000>; }; ssc_sensors: qcom,msm-ssc-sensors { diff --git a/qcom/shima.dtsi b/qcom/shima.dtsi index 39225b49decd..bd70e14fe87f 100644 --- a/qcom/shima.dtsi +++ b/qcom/shima.dtsi @@ -1174,6 +1174,8 @@ qcom,guestvm_loader { compatible = "qcom,guestvm-loader"; image_to_be_loaded = "trustedvm"; + qcom,reserved-cpus = <4 5>; + qcom,unisolate-timeout-ms = <8000>; };