mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
hv: psram: add kconfig to enable psram
Add two Kconfig pSRAM config: one for whether to enable the pSRAM on the platfrom or not; another for if the pSRAM is enabled on the platform whether to enable the pSRAM in the pre-launched RTVM. If we enable the pSRAM on the platform, we should remove the pSRAM EPT mapping from the SOS to prevent it could flush the pSRAM cache. Tracked-On: #5330 Signed-off-by: Qian Wang <qian1.wang@intel.com>
This commit is contained in:
@@ -364,6 +364,11 @@ static void prepare_sos_vm_memmap(struct acrn_vm *vm)
|
||||
/* unmap PCIe MMCONFIG region since it's owned by hypervisor */
|
||||
pci_mmcfg = get_mmcfg_region();
|
||||
ept_del_mr(vm, (uint64_t *)vm->arch_vm.nworld_eptp, pci_mmcfg->address, get_pci_mmcfg_size(pci_mmcfg));
|
||||
|
||||
/* TODO: remove pSRAM from SOS prevent SOS to use clflush to flush the pSRAM cache.
|
||||
* If we remove this EPT mapping from the SOS, the ACRN-DM can't do pSRAM EPT mapping
|
||||
* because the SOS can't get the HPA of this memory region.
|
||||
*/
|
||||
}
|
||||
|
||||
/* Add EPT mapping of EPC reource for the VM */
|
||||
|
Reference in New Issue
Block a user