mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-06 08:04:55 +00:00
hv: mmu: revisit mmu modify page table attributes
1. move HPA2HVA/HVA2HPA to page.h 2. add pgtable_types.h to define MACRO for page table types 3. add pgtable.h to set/get page table 4. add pagetable.c to refine walk page table attributes modify Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -29,9 +29,6 @@
|
||||
#include <hv_debug.h>
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
/* hpa <--> hva, now it is 1:1 mapping */
|
||||
#define HPA2HVA(x) ((void *)(x))
|
||||
#define HVA2HPA(x) ((uint64_t)(x))
|
||||
/* gpa --> hpa -->hva */
|
||||
#define GPA2HVA(vm, x) HPA2HVA(gpa2hpa(vm, x))
|
||||
#define HVA2GPA(vm, x) hpa2gpa(vm, HVA2HPA(x))
|
||||
|
||||
Reference in New Issue
Block a user