mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 21:19:35 +00:00
xforms: use values calculated from board XML as default values
Manually specifying MAX_IOAPIC_NUM and MAX_IOAPIC_LINES in a scenario XML is still usable as a workaround on boards without IOAPIC (e.g. emulated ones) or when the board inspector does not collect IOAPIC information correctly. This patch takes user-specified values of those items if provided. Otherwise the automatically calculated values will be used instead, as is done today. Tracked-On: #6986 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
0c7c5d3aeb
commit
cd4e7786e6
@ -17,11 +17,13 @@
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="integer-by-key-value">
|
||||
<xsl:with-param name="key" select="'MAX_IOAPIC_NUM'" />
|
||||
<xsl:with-param name="value" select="count(//ioapic)" />
|
||||
<xsl:with-param name="value" select="//config-data//MAX_IOAPIC_NUM/text()" />
|
||||
<xsl:with-param name="default" select="count(.//ioapic)" />
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="integer-by-key-value">
|
||||
<xsl:with-param name="key" select="'MAX_IOAPIC_LINES'" />
|
||||
<xsl:with-param name="value" select="math:max(//gsi_number/text() | exslt:node-set(0))" />
|
||||
<xsl:with-param name="value" select="//config-data//MAX_IOAPIC_LINES/text()" />
|
||||
<xsl:with-param name="default" select="math:max(.//ioapic/gsi_number/text() | exslt:node-set(0))" />
|
||||
</xsl:call-template>
|
||||
<xsl:call-template name="msi-msix-max" />
|
||||
</xsl:template>
|
||||
|
Loading…
Reference in New Issue
Block a user