mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 13:08:42 +00:00
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:
parent
67c06564f7
commit
8553a1d35d
@ -8,12 +8,12 @@
|
||||
#define PAGE_H
|
||||
|
||||
#include <asm/lib/spinlock.h>
|
||||
#include <board_info.h>
|
||||
|
||||
#define PAGE_SHIFT 12U
|
||||
#define PAGE_SIZE (1U << PAGE_SHIFT)
|
||||
#define PAGE_MASK 0xFFFFFFFFFFFFF000UL
|
||||
|
||||
#define MAXIMUM_PA_WIDTH 46U /* maximum physical-address width */
|
||||
#define MAX_PHY_ADDRESS_SPACE (1UL << MAXIMUM_PA_WIDTH)
|
||||
|
||||
/* size of the low MMIO address space: 2GB */
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user