acrn-hypervisor/hypervisor/arch/x86/guest
Zhou, Wu 3ba5b1522f hv: fix post RTVM booting failure with SSRAM
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>
2022-05-06 14:41:58 +08:00
..
assign.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
ept.c hv: remove pgentry_present field in struct pgtable 2022-04-20 17:38:02 +08:00
guest_memory.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
hyperv.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
instr_emul.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
lock_instr_emul.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
nested.c hv: refine the vept module 2022-03-08 16:41:46 +08:00
optee.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
pm.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
trusty.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
ucode.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vcat.c hv: support CAT on hybrid platform 2022-04-18 15:33:11 +08:00
vcpu.c Fix: write xmm registers correctly 2022-05-06 10:29:33 +08:00
vcpuid.c hv: fix core type error when launch RTVM use atom core 2022-04-21 09:21:16 +08:00
ve820.c hv: refine for HPAn setting 2022-04-22 14:46:05 +08:00
vept.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
virq.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
virtual_cr.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vlapic.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vlapic_priv.h Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vm.c hv: fix post RTVM booting failure with SSRAM 2022-05-06 14:41:58 +08:00
vm_reset.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vmcall.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vmcs.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vmexit.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vmsr.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vmtrr.c ACRN: hv: Terminology modification in hv code 2021-11-02 10:00:55 +08:00
vmx_asm.S Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00
vmx_io.c Remove "All rights reserved" string headers 2022-04-06 13:21:02 +08:00