mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
hv_vm.c: Move SPTE_TYPE to bit 50
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
0e987f031b
commit
27af846aae
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue