kv: kconfig: remove some unused ram size kconfig

SOS_RAM_SIZE/UOS_RAM_SIZE Kconfig are only used to calculate how many pages we
should reserve for the VM EPT mapping.

Now we reserve pages for each VM EPT pagetable mapping by the PLATFORM_RAM_SIZE
not the VM RAM SIZE. This could simplify the reserve logic for us: not need to
take care variable corner cases. We could make assume we reserve enough pages
base on the VM could not use the resources beyond the platform hardware resources.

So remove these two unused VM ram size kconfig.

Signed-off-by: Li Fei1 <fei1.li@intel.com>
Tracked-On: #5788
This commit is contained in:
Li Fei1 2021-02-08 14:26:02 +08:00 committed by wenlingz
parent 38be61e374
commit 8afcd608d8
3 changed files with 2 additions and 27 deletions

View File

@ -27,8 +27,6 @@ on your platform. Check the documentation for these option settings for
details:
* :option:`CONFIG_PLATFORM_RAM_SIZE`
* :option:`CONFIG_SOS_RAM_SIZE`
* :option:`CONFIG_UOS_RAM_SIZE`
* :option:`CONFIG_HV_RAM_SIZE`
For example, if the Intel NUC's physical memory size is 32G, you may follow these steps
@ -44,7 +42,6 @@ the ACRN Service VM with the 32G memory size.
(0x0f000000) Size of the RAM region used by the hypervisor
(0x800000000) Size of the physical platform RAM
(0x800000000) Size of the Service OS (SOS) RAM
#. Press :kbd:`S` and then :kbd:`Enter` to save the ``.config`` to the default directory:
``acrn-hypervisor/hypervisor/build/.config``

View File

@ -95,12 +95,6 @@
``LOW_RAM_SIZE`` (a child node of ``MEMORY``):
Specify the size of the RAM region below address 0x10000, starting from address 0x0.
``SOS_RAM_SIZE`` (a child node of ``MEMORY``):
Specify the size of the Service OS VM RAM region.
``UOS_RAM_SIZE`` (a child node of ``MEMORY``):
Specify the size of the User OS VM RAM region.
``PLATFORM_RAM_SIZE`` (a child node of ``MEMORY``):
Specify the size of the physical platform RAM region.

View File

@ -212,8 +212,8 @@ config HV_RAM_START
config HV_RAM_SIZE
hex "Size of the RAM region used by the hypervisor"
range 0x1000000 0x20000000
default 0x14000000
range 0x800000 0x4000000
default 0x800000
help
A 64-bit integer indicating the size of RAM used by the hypervisor.
It is ensured at link time that the footprint of the hypervisor
@ -227,22 +227,6 @@ config PLATFORM_RAM_SIZE
A 64-bit integer indicating the size of the physical platform RAM
(MMIO not included).
config SOS_RAM_SIZE
hex "Size of the Service OS (SOS) RAM"
range 0x100000000 0x4000000000
default 0x400000000
help
A 64-bit integer indicating the size of the Service OS RAM (MMIO not
included).
config UOS_RAM_SIZE
hex "Size of the User OS (UOS) RAM"
range 0 0x2000000000
default 0x200000000
help
A 64-bit integer indicating the size of the User OS RAM (MMIO not
included). Now we assume each UOS uses same amount of RAM size.
config ACPI_PARSE_ENABLED
bool "Enable ACPI runtime parsing"
default y