hv: cleanup legacy terminologies in RTCM module

This patch updates below terminologies according
 to the latest TCC Spec:
  PTCT -> RTCT
  PTCM -> RTCM
  pSRAM -> Software SRAM

Tracked-On: #5649
Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang
2021-01-26 21:15:13 +08:00
committed by wenlingz
parent 806f479108
commit a6420e8cfa
13 changed files with 201 additions and 187 deletions

View File

@@ -581,14 +581,14 @@ static int32_t add_vm_memory_region(struct acrn_vm *vm, struct acrn_vm *target_v
} else {
prot |= EPT_UNCACHED;
}
/* If pSRAM is initialized, and HV received a request to map pSRAM area to guest,
* we should add EPT_WB flag to make pSRAM effective.
* Assumption: SOS must assign the PSRAM area as a whole and as a separate memory
* region whose base address is PSRAM_BASE_HPA
* TODO: We can enforce WB for any region has overlap with pSRAM, for simplicity,
/* If Software SRAM is initialized, and HV received a request to map Software SRAM
* area to guest, we should add EPT_WB flag to make Software SRAM effective.
* Assumption: SOS must assign the Software SRAM area as a whole and as a separate memory
* region whose base address is SOFTWARE_SRAM_BASE_HPA
* TODO: We can enforce WB for any region has overlap with Software SRAM, for simplicity,
* and leave it to SOS to make sure it won't violate.
*/
if ((hpa == PSRAM_BASE_HPA) && is_psram_initialized) {
if ((hpa == SOFTWARE_SRAM_BASE_HPA) && is_sw_sram_initialized) {
prot |= EPT_WB;
}
/* create gpa to hpa EPT mapping */