hv_vm.c: Move SPTE_TYPE to bit 50

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-05-05 03:23:04 +09:00
parent 0e987f031b
commit 27af846aae
2 changed files with 3 additions and 3 deletions

View file

@ -20,8 +20,8 @@ class HV:
PTE_ACCESS = 1 << 10
PTE_ATTRIBUTES = PTE_ACCESS | PTE_SH_NS | PTE_S2AP_RW | PTE_MEMATTR_UNCHANGED
SPTE_MAP = 0 << 48
SPTE_HOOK = 1 << 48
SPTE_MAP = 0 << 50
SPTE_HOOK = 1 << 50
def __init__(self, iface, proxy, utils):
self.iface = iface

View file

@ -39,7 +39,7 @@
#define ENTRIES_PER_L3_TABLE BIT(VADDR_L3_INDEX_BITS)
#define ENTRIES_PER_L4_TABLE BIT(VADDR_L4_INDEX_BITS)
#define SPTE_TYPE BIT(48)
#define SPTE_TYPE BIT(50)
#define SPTE_MAP 0
#define SPTE_HOOK 1