mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
config_tools: remove PLATFORM_RAM_SIZE
Since PR #7113 has landed, we also remove PLATFORM_RAM_SIZE in the related Python code, schema and all existing scenario XML files. Tracked-On: #6690 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
parent
5b9c45da17
commit
55ced4e79f
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -43,7 +43,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x800000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -30,7 +30,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x800000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -56,7 +56,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -31,7 +31,6 @@
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<HV_RAM_START>0x11000000</HV_RAM_START>
|
||||
<PLATFORM_RAM_SIZE>0x100000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -38,7 +38,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -30,7 +30,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -43,7 +43,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -30,7 +30,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -30,7 +30,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -30,7 +30,6 @@
|
||||
</FEATURES>
|
||||
<MEMORY>
|
||||
<STACK_SIZE>0x2000</STACK_SIZE>
|
||||
<PLATFORM_RAM_SIZE>0x400000000</PLATFORM_RAM_SIZE>
|
||||
</MEMORY>
|
||||
<CAPACITIES>
|
||||
<MAX_VM_NUM>16</MAX_VM_NUM>
|
||||
|
@ -108,7 +108,6 @@ def get_memory(hv_info, config):
|
||||
else:
|
||||
print("CONFIG_HV_RAM_START={}".format(hv_info.mem.hv_ram_start), file=config)
|
||||
|
||||
print("CONFIG_PLATFORM_RAM_SIZE={}".format(hv_info.mem.platform_ram_size), file=config)
|
||||
print("CONFIG_STACK_SIZE={}".format(hv_info.mem.stack_size), file=config)
|
||||
print("CONFIG_IVSHMEM_ENABLED={}".format(hv_info.mem.ivshmem_enable), file=config)
|
||||
|
||||
|
@ -126,7 +126,6 @@ class Memory:
|
||||
self.hv_file = hv_file
|
||||
self.stack_size = 0
|
||||
self.hv_ram_start = 0
|
||||
self.platform_ram_size = 0
|
||||
self.sos_ram_size = 0
|
||||
self.uos_ram_size = 0
|
||||
self.ivshmem_enable = 'n'
|
||||
@ -135,14 +134,12 @@ class Memory:
|
||||
def get_info(self):
|
||||
self.stack_size = common.get_hv_item_tag(self.hv_file, "MEMORY", "STACK_SIZE")
|
||||
self.hv_ram_start = common.get_hv_item_tag(self.hv_file, "MEMORY", "HV_RAM_START")
|
||||
self.platform_ram_size = common.get_hv_item_tag(self.hv_file, "MEMORY", "PLATFORM_RAM_SIZE")
|
||||
self.ivshmem_enable = common.get_hv_item_tag(self.hv_file, "FEATURES", "IVSHMEM", "IVSHMEM_ENABLED")
|
||||
self.ivshmem_region = common.get_hv_item_tag(self.hv_file, "FEATURES", "IVSHMEM", "IVSHMEM_REGION")
|
||||
|
||||
def check_item(self):
|
||||
hv_cfg_lib.hv_size_check(self.stack_size, "MEMORY", "STACK_SIZE")
|
||||
hv_cfg_lib.hv_ram_start_check(self.hv_ram_start, "MEMORY", "HV_RAM_START")
|
||||
hv_cfg_lib.hv_size_check(self.platform_ram_size, "MEMORY", "PLATFORM_RAM_SIZE")
|
||||
hv_cfg_lib.ny_support_check(self.ivshmem_enable, "FEATURES", "IVSHMEM", "IVSHMEM_ENABLED")
|
||||
|
||||
|
||||
|
BIN
misc/config_tools/schema/checks/.pre_launched_vm_support.xsd.swp
Normal file
BIN
misc/config_tools/schema/checks/.pre_launched_vm_support.xsd.swp
Normal file
Binary file not shown.
@ -177,12 +177,6 @@ three for specific exceptions.</xs:documentation>
|
||||
the RAM region used by the hypervisor.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
<xs:element name="PLATFORM_RAM_SIZE" type="HexFormat" default="0x400000000">
|
||||
<xs:annotation>
|
||||
<xs:documentation>Size of the physical platform RAM. Default
|
||||
value ``0x400000000``.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:element>
|
||||
</xs:all>
|
||||
</xs:complexType>
|
||||
|
||||
|
@ -151,10 +151,6 @@
|
||||
<xsl:with-param name="default" select="//allocation-data/acrn-config/hv/MEMORY/HV_RAM_START" />
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="integer-by-key">
|
||||
<xsl:with-param name="key" select="'PLATFORM_RAM_SIZE'" />
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="integer-by-key">
|
||||
<xsl:with-param name="key" select="'STACK_SIZE'" />
|
||||
</xsl:call-template>
|
||||
|
Loading…
Reference in New Issue
Block a user