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 <wu.zhou@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Wu Zhou 2022-09-02 14:32:47 +08:00 committed by acrnsi-robot
parent 914e7a1d25
commit a971e12fc6
2 changed files with 26 additions and 0 deletions

View File

@ -129,6 +129,14 @@ If your VM is not a security VM, leave this option unchecked. </xs:documentation
<xs:documentation>Configure Software SRAM. This feature reserves memory buffers as always-cached memory to improve an application's real-time performance.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CPU_PERFORMANCE_POLICY" type="policyType" default="Performance">
<xs:annotation acrn:title="CPU performance policy type" acrn:views="advanced">
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
</xs:complexType>

View File

@ -147,6 +147,24 @@ higher value (lower severity) are discarded.</xs:documentation>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="policyType">
<xs:annotation>
<xs:documentation>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.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Performance">
<xs:annotation acrn:title="Performance" />
</xs:enumeration>
<xs:enumeration value="Nominal">
<xs:annotation acrn:title="Nominal" />
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PriorityType">
<xs:annotation>
<xs:documentation>Two priorities are supported for priority based scheduler: