hv: use per platform maximum physical address width

MAXIMUM_PA_WIDTH will be calculated from board information.

Tracked-On: #6357
Signed-off-by: Liang Yi <yi.liang@intel.com>
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Liang Yi
2021-08-09 14:39:47 +08:00
committed by wenlingz
parent 2b3620de7d
commit 499f62e8bd
2 changed files with 5 additions and 1 deletions

View File

@@ -37,6 +37,10 @@
<xsl:template match="board-data/acrn-config">
<xsl:call-template name="MAX_PCPU_NUM" />
<xsl:call-template name="MAX_VMSIX_ON_MSI_PDEVS_NUM" />
<xsl:variable name="physical_address_bits" select="//processors/model/attribute[@id='physical_address_bits']/text()" />
<xsl:if test="$physical_address_bits">
<xsl:value-of select="acrn:define('MAXIMUM_PA_WIDTH', $physical_address_bits[1], 'U')" />
</xsl:if>
</xsl:template>
<xsl:template match="allocation-data/acrn-config">