config-tools: generate the log area data of tpm2
Insert the passthrough tpm2 datas to mmiodevs of vm_configurations.c Tracked-On: #6320 Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
parent
cb736e4cc1
commit
53d99d2a68
|
@ -190,6 +190,10 @@
|
|||
<xsl:value-of select="acrn:define('VM0_TPM_BUFFER_BASE_ADDR', '0xFED40000', 'UL')" />
|
||||
<xsl:value-of select="acrn:define('VM0_TPM_BUFFER_BASE_ADDR_GPA', '0xFED40000', 'UL')" />
|
||||
<xsl:value-of select="acrn:define('VM0_TPM_BUFFER_SIZE', '0x5000', 'UL')" />
|
||||
<xsl:if test="//capability[@id='log_area']">
|
||||
<xsl:value-of select="acrn:define('VM0_TPM_EVENTLOG_BASE_ADDR', //allocation-data/acrn-config/vm[@id = '0']/log_area_start_address, 'UL')" />
|
||||
<xsl:value-of select="acrn:define('VM0_TPM_EVENTLOG_SIZE', //allocation-data/acrn-config/vm[@id = '0']/log_area_minimum_length, 'UL')" />
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
<xsl:value-of select="acrn:include('asm/vm_config.h')" />
|
||||
<xsl:value-of select="acrn:include('vuart.h')" />
|
||||
<xsl:value-of select="acrn:include('asm/pci_dev.h')" />
|
||||
<xsl:value-of select="acrn:include('asm/pgtable.h')" />
|
||||
|
||||
<xsl:apply-templates select="config-data/acrn-config" />
|
||||
</xsl:template>
|
||||
|
@ -240,20 +241,37 @@
|
|||
<xsl:value-of select="acrn:ifdef('VM0_PASSTHROUGH_TPM')" />
|
||||
<xsl:value-of select="acrn:initializer('pt_tpm2', 'true')" />
|
||||
<xsl:value-of select="acrn:initializer('mmiodevs[0]', '{', true())" />
|
||||
<xsl:value-of select="acrn:initializer('name', concat($quot, 'tpm2', $quot))" />
|
||||
<xsl:value-of select="acrn:initializer('res[0]', '{', true())" />
|
||||
<xsl:value-of select="acrn:initializer('user_vm_pa', 'VM0_TPM_BUFFER_BASE_ADDR_GPA')" />
|
||||
<xsl:value-of select="acrn:initializer('service_vm_pa', 'VM0_TPM_BUFFER_BASE_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('host_pa', 'VM0_TPM_BUFFER_BASE_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('size', 'VM0_TPM_BUFFER_SIZE')" />
|
||||
<xsl:value-of select="acrn:initializer('mem_type', 'EPT_UNCACHED')" />
|
||||
<xsl:text>},</xsl:text>
|
||||
<xsl:value-of select="$newline" />
|
||||
<xsl:if test="//capability[@id='log_area']">
|
||||
<xsl:value-of select="acrn:initializer('res[1]', '{', true())" />
|
||||
<xsl:value-of select="acrn:initializer('user_vm_pa', 'VM0_TPM_EVENTLOG_BASE_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('host_pa', 'VM0_TPM_EVENTLOG_BASE_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('size', 'VM0_TPM_EVENTLOG_SIZE')" />
|
||||
<xsl:value-of select="acrn:initializer('mem_type', 'EPT_WB')" />
|
||||
<xsl:text>},</xsl:text>
|
||||
<xsl:value-of select="$newline" />
|
||||
</xsl:if>
|
||||
<xsl:text>},</xsl:text>
|
||||
<xsl:value-of select="$newline" />
|
||||
<xsl:value-of select="$endif" />
|
||||
<xsl:value-of select="acrn:ifdef('P2SB_BAR_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('pt_p2sb_bar', 'true')" />
|
||||
<xsl:value-of select="acrn:initializer('mmiodevs[0]', '{', true())" />
|
||||
<xsl:value-of select="acrn:initializer('res[0]', '{', true())" />
|
||||
<xsl:value-of select="acrn:initializer('user_vm_pa', 'P2SB_BAR_ADDR_GPA')" />
|
||||
<xsl:value-of select="acrn:initializer('service_vm_pa', 'P2SB_BAR_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('host_pa', 'P2SB_BAR_ADDR')" />
|
||||
<xsl:value-of select="acrn:initializer('size', 'P2SB_BAR_SIZE')" />
|
||||
<xsl:text>},</xsl:text>
|
||||
<xsl:value-of select="$newline" />
|
||||
<xsl:text>},</xsl:text>
|
||||
<xsl:value-of select="$newline" />
|
||||
<xsl:value-of select="$endif" />
|
||||
</xsl:if>
|
||||
|
||||
|
|
Loading…
Reference in New Issue