Remove VMKernelReadOnly from AArch64 VM rights
In the interest of stability and not breaking things, the value of VMReadOnly remains the same. Signed-off-by: Ivan-Velickovic <i.velickovic@unsw.edu.au>
This commit is contained in:
parent
ac49331e2a
commit
8c9cf6c7db
2 changed files with 0 additions and 9 deletions
|
|
@ -26,7 +26,6 @@ typedef struct arch_tcb {
|
|||
enum vm_rights {
|
||||
VMKernelOnly = 0,
|
||||
VMReadWrite = 1,
|
||||
VMKernelReadOnly = 2,
|
||||
VMReadOnly = 3
|
||||
};
|
||||
typedef word_t vm_rights_t;
|
||||
|
|
|
|||
|
|
@ -149,14 +149,6 @@ static word_t CONST APFromVMRights(vm_rights_t vm_rights)
|
|||
return 1;
|
||||
}
|
||||
|
||||
case VMKernelReadOnly:
|
||||
if (config_set(CONFIG_ARM_HYPERVISOR_SUPPORT)) {
|
||||
/* no corresponding AP for S2AP, return None */
|
||||
return 0;
|
||||
} else {
|
||||
return 2;
|
||||
}
|
||||
|
||||
case VMReadOnly:
|
||||
if (config_set(CONFIG_ARM_HYPERVISOR_SUPPORT)) {
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue