From 97a9c5151bd2e5cd25142efd2d930f0051f7b7f1 Mon Sep 17 00:00:00 2001 From: Li Fei1 Date: Mon, 8 Feb 2021 14:26:02 +0800 Subject: [PATCH] kv: kconfig: remove some unused ram size kconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tracked-On: #5788 --- hypervisor/arch/x86/Kconfig | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/hypervisor/arch/x86/Kconfig b/hypervisor/arch/x86/Kconfig index 82cc748d0..0893098dc 100644 --- a/hypervisor/arch/x86/Kconfig +++ b/hypervisor/arch/x86/Kconfig @@ -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