Commit 5ece655c authored by Keir Fraser's avatar Keir Fraser
Browse files

ANDROID: KVM: arm64: Fix host_stage2_pte_is_counted()



All valid host mappings are erroneously considered "counted" because
KVM_HOST_S2_DEFAULT_MASK mistakenly drops bit KVM_INVALID_PTE_LOCKED
(bit 10). Not only is this unnecessary, because the lock flag is only
used in invalid ptes, it means that comparisons with
KVM_HOST_S2_DEFAULT_MEM_PTE and KVM_HOST_S2_DEFAULT_MMIO_PTE can never
succeed.

Fix this by incorporating bit 10 back into KVM_HOST_S2_DEFAULT_MASK.

Bug: 278749606
Change-Id: Ic8126e763e319e3ac9ae066d975b3ac48b15f60f
Signed-off-by: default avatarKeir Fraser <keirf@google.com>
parent 22366257
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment