From a971e12fc65428f6ab44cd2323feef92dcc8f3e5 Mon Sep 17 00:00:00 2001 From: Wu Zhou Date: Fri, 2 Sep 2022 14:32:47 +0800 Subject: [PATCH] config-tools: add CPU performance policy option Add 'CPU performance policy type' option to configurator. User can choose from 'Performance' or 'Nominal' as the CPU performance policy for ACRN to apply. Tracked-On: #8168 Signed-off-by: Wu Zhou Reviewed-by: Junjie Mao --- misc/config_tools/schema/config.xsd | 8 ++++++++ misc/config_tools/schema/types.xsd | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/misc/config_tools/schema/config.xsd b/misc/config_tools/schema/config.xsd index 65226e7af..09c779899 100644 --- a/misc/config_tools/schema/config.xsd +++ b/misc/config_tools/schema/config.xsd @@ -129,6 +129,14 @@ If your VM is not a security VM, leave this option unchecked. Configure Software SRAM. This feature reserves memory buffers as always-cached memory to improve an application's real-time performance. + + + Select the default performance policy type for all CPUs. The hypervisor will set up CPU frequency based on the policy type. + +- ``Performance``: CPU runs at its maximum frequency. Enable hardware autonomous frequency selection if the system supports Hardware-Controlled Performance States (HWP). +- ``Nominal``: CPU runs at its guaranteed frequency. + + diff --git a/misc/config_tools/schema/types.xsd b/misc/config_tools/schema/types.xsd index abd50d8cd..808c6d68f 100644 --- a/misc/config_tools/schema/types.xsd +++ b/misc/config_tools/schema/types.xsd @@ -147,6 +147,24 @@ higher value (lower severity) are discarded. + + + A string specifying the CPU frequency policy type: + +- ``Performance``: CPU runs at its maximum frequency. Enable hardware autonomous frequency selection if the system supports Hardware-Controlled Performance States (HWP). +- ``Nominal``: CPU runs at its guaranteed frequency. + + + + + + + + + + + + Two priorities are supported for priority based scheduler: