mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-26 04:24:40 +00:00
When booting prelaunch RTVM with SSRAM enabled, we need to delete the SSRAM region that is used by prelaunch RTVM from Service VM EPT mapping. If it is not used, or it is not fully used, the SSRAM or the rest SSRAM should be in Service VM map. But current code has a issue that it always deletes all SSRAM region from Service VM EPT, even when no SSRAM is enabled for prelaunch RTVM. This could cause the post RTVM with SSRAM boot failure, as DM checks and removes SSRAM region from Service VM EPT during post RTVM setup. Changing get_software_sram_size() to PRE_RTVM_SW_SRAM_MAX_SIZE could solve the issue, as PRE_RTVM_SW_SRAM_MAX_SIZE is the SSRAM size that prelaunch RTVM actually uses. Tracked-On: #7401 Signed-off-by: Zhou, Wu <wu.zhou@intel.com>