mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
config-tools: change 'DISABLED' settings to 'ENABLED'
Some configurator settings are defined as 'feature DISABLED' style, which could cause confusion to developers. This patch is to change them into straightforward 'ENABLED' style. Including: - MCE_ON_PSC_DISABLED -> MCE_ON_PSC_ENABLED - ENFORCE_TURNOFF_AC -> SPLIT_LOCK_DETECTION_ENABLED - ENFORCE_TURNOFF_GP -> UC_LOCK_DETECTION_ENABLED Tracked-On: #7661 Signed-off-by: Wu Zhou <wu.zhou@intel.com>
This commit is contained in:
parent
f2dacfa30c
commit
21d10af9d5
@ -764,6 +764,9 @@ class ScenarioUpgrader(ScenarioTransformer):
|
|||||||
# Feature enabling or disabling
|
# Feature enabling or disabling
|
||||||
"vuart0": partialmethod(move_enablement, ".//vuart0"),
|
"vuart0": partialmethod(move_enablement, ".//vuart0"),
|
||||||
"vbootloader": partialmethod(move_enablement, ".//vbootloader", values_as_enabled = ["ovmf", "Enable"], values_as_disabled = ["no", "Disable"]),
|
"vbootloader": partialmethod(move_enablement, ".//vbootloader", values_as_enabled = ["ovmf", "Enable"], values_as_disabled = ["no", "Disable"]),
|
||||||
|
"MCE_ON_PSC_ENABLED": partialmethod(move_enablement, ".//MCE_ON_PSC_DISABLED", values_as_enabled = ["n"], values_as_disabled = ["y"]),
|
||||||
|
"SPLIT_LOCK_DETECTION_ENABLED": partialmethod(move_enablement, ".//ENFORCE_TURNOFF_AC", values_as_enabled = ["n"], values_as_disabled = ["y"]),
|
||||||
|
"UC_LOCK_DETECTION_ENABLED": partialmethod(move_enablement, ".//ENFORCE_TURNOFF_GP", values_as_enabled = ["n"], values_as_disabled = ["y"]),
|
||||||
|
|
||||||
# Intermediate nodes
|
# Intermediate nodes
|
||||||
"pci_devs": partialmethod(create_node_if, ".//pci_devs", ".//passthrough_devices/*[text() != ''] | .//sriov/*[text() != '']"),
|
"pci_devs": partialmethod(create_node_if, ".//pci_devs", ".//passthrough_devices/*[text() != ''] | .//sriov/*[text() != '']"),
|
||||||
|
@ -58,14 +58,14 @@
|
|||||||
<xs:documentation>Enable multiboot2 protocol support (with multiboot1 downward compatibility). If multiboot1 meets your requirements, disable this feature to reduce hypervisor code size.</xs:documentation>
|
<xs:documentation>Enable multiboot2 protocol support (with multiboot1 downward compatibility). If multiboot1 meets your requirements, disable this feature to reduce hypervisor code size.</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="ENFORCE_TURNOFF_AC" type="Boolean" default="y">
|
<xs:element name="SPLIT_LOCK_DETECTION_ENABLED" type="Boolean" default="n">
|
||||||
<xs:annotation acrn:title="Disable split lock detection" acrn:views="advanced">
|
<xs:annotation acrn:title="Enable split lock detection" acrn:views="advanced">
|
||||||
<xs:documentation>Disable detection of split locks. A split lock can negatively affect an application's real-time performance. If a lock is detected, an alignment check exception #AC occurs.</xs:documentation>
|
<xs:documentation>Enable detection of split locks. A split lock can negatively affect an application's real-time performance. If a lock is detected, an alignment check exception #AC occurs.</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="ENFORCE_TURNOFF_GP" type="Boolean" default="n">
|
<xs:element name="UC_LOCK_DETECTION_ENABLED" type="Boolean" default="y">
|
||||||
<xs:annotation acrn:title="Disable UC lock detection" acrn:views="advanced">
|
<xs:annotation acrn:title="Enable UC lock detection" acrn:views="advanced">
|
||||||
<xs:documentation>Disable detection of uncacheable-memory (UC) locks. A UC lock can negatively affect an application's real-time performance. If a lock is detected, a general-protection exception #GP occurs.</xs:documentation>
|
<xs:documentation>Enable detection of uncacheable-memory (UC) locks. A UC lock can negatively affect an application's real-time performance. If a lock is detected, a general-protection exception #GP occurs.</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="SECURITY_VM_FIXUP" type="Boolean" default="n">
|
<xs:element name="SECURITY_VM_FIXUP" type="Boolean" default="n">
|
||||||
@ -109,9 +109,9 @@ If your VM is not a security VM, leave this option unchecked. </xs:documentation
|
|||||||
<xs:documentation>Enable L1 cache flush before VM entry to prevent L1 terminal fault. L1 terminal fault is a hardware vulnerability that could allow unauthorized disclosure of information residing in the L1 data cache.</xs:documentation>
|
<xs:documentation>Enable L1 cache flush before VM entry to prevent L1 terminal fault. L1 terminal fault is a hardware vulnerability that could allow unauthorized disclosure of information residing in the L1 data cache.</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="MCE_ON_PSC_DISABLED" type="Boolean" default="n">
|
<xs:element name="MCE_ON_PSC_ENABLED" type="Boolean" default="y">
|
||||||
<xs:annotation acrn:title="Disable MCE workaround" acrn:views="advanced">
|
<xs:annotation acrn:title="Enable MCE workaround" acrn:views="advanced">
|
||||||
<xs:documentation>Disable the software workaround for Machine Check Error on Page Size Change (erratum in some processor families). For more information about this workaround and affected processors, see this `MCE Avoidance on Page Size Change White Paper <https://www.intel.com/content/www/us/en/developer/articles/troubleshooting/software-security-guidance/technical-documentation/machine-check-error-avoidance-page-size-change.html>`_.</xs:documentation>
|
<xs:documentation>Enable the software workaround for Machine Check Error on Page Size Change (erratum in some processor families). For more information about this workaround and affected processors, see this `MCE Avoidance on Page Size Change White Paper <https://www.intel.com/content/www/us/en/developer/articles/troubleshooting/software-security-guidance/technical-documentation/machine-check-error-avoidance-page-size-change.html>`_.</xs:documentation>
|
||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
<xs:element name="RDT" type="RDTType">
|
<xs:element name="RDT" type="RDTType">
|
||||||
|
@ -73,11 +73,11 @@
|
|||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="boolean-by-key">
|
<xsl:call-template name="boolean-by-key">
|
||||||
<xsl:with-param name="key" select="'ENFORCE_TURNOFF_AC'" />
|
<xsl:with-param name="key" select="'SPLIT_LOCK_DETECTION_ENABLED'" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="boolean-by-key">
|
<xsl:call-template name="boolean-by-key">
|
||||||
<xsl:with-param name="key" select="'ENFORCE_TURNOFF_GP'" />
|
<xsl:with-param name="key" select="'UC_LOCK_DETECTION_ENABLED'" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="boolean-by-key">
|
<xsl:call-template name="boolean-by-key">
|
||||||
@ -124,8 +124,8 @@
|
|||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="boolean-by-key-value">
|
<xsl:call-template name="boolean-by-key-value">
|
||||||
<xsl:with-param name="key" select="'MCE_ON_PSC_WORKAROUND_DISABLED'" />
|
<xsl:with-param name="key" select="'MCE_ON_PSC_WORKAROUND_ENABLED'" />
|
||||||
<xsl:with-param name="value" select="MCE_ON_PSC_DISABLED" />
|
<xsl:with-param name="value" select="MCE_ON_PSC_ENABLED" />
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
|
|
||||||
<xsl:call-template name="boolean-by-key-value">
|
<xsl:call-template name="boolean-by-key-value">
|
||||||
|
Loading…
Reference in New Issue
Block a user