mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: remove config_page_table_attr
Before we set the page table, we should know the attribute. So move configure the page table attribute outside of modify_paging. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -554,14 +554,14 @@ static void rebuild_vm0_e820(void)
|
||||
int prepare_vm0_memmap_and_e820(struct vm *vm)
|
||||
{
|
||||
unsigned int i;
|
||||
uint32_t attr_wb = (MMU_MEM_ATTR_READ |
|
||||
MMU_MEM_ATTR_WRITE |
|
||||
MMU_MEM_ATTR_EXECUTE |
|
||||
MMU_MEM_ATTR_WB_CACHE);
|
||||
uint32_t attr_uc = (MMU_MEM_ATTR_READ |
|
||||
MMU_MEM_ATTR_WRITE |
|
||||
MMU_MEM_ATTR_EXECUTE |
|
||||
MMU_MEM_ATTR_UNCACHED);
|
||||
uint32_t attr_wb = (IA32E_EPT_R_BIT |
|
||||
IA32E_EPT_W_BIT |
|
||||
IA32E_EPT_X_BIT |
|
||||
IA32E_EPT_WB);
|
||||
uint32_t attr_uc = (IA32E_EPT_R_BIT |
|
||||
IA32E_EPT_W_BIT |
|
||||
IA32E_EPT_X_BIT |
|
||||
IA32E_EPT_UNCACHED);
|
||||
struct e820_entry *entry;
|
||||
|
||||
|
||||
|
@@ -2031,8 +2031,8 @@ int vlapic_create(struct vcpu *vcpu)
|
||||
ept_mmap(vcpu->vm,
|
||||
apicv_get_apic_access_addr(vcpu->vm),
|
||||
DEFAULT_APIC_BASE, CPU_PAGE_SIZE, MAP_MMIO,
|
||||
MMU_MEM_ATTR_WRITE | MMU_MEM_ATTR_READ |
|
||||
MMU_MEM_ATTR_UNCACHED);
|
||||
IA32E_EPT_W_BIT | IA32E_EPT_R_BIT |
|
||||
IA32E_EPT_UNCACHED);
|
||||
}
|
||||
} else {
|
||||
/*No APICv support*/
|
||||
|
Reference in New Issue
Block a user