Commit f5ada491 authored by Mostafa Saleh's avatar Mostafa Saleh
Browse files

ANDROID: KVM: arm64: Fix handle_to_domain indexing



handle_to_domain has an implicit dependency that kvm_hyp_iommu_domain
size is power of 2. However, this changed during the development,
and its size increased from 16 to 24, and the whole calculator of
indexing is wrong, as we can’t rely on bit shifts and masks.
Instead use division and modulo.

Bug: 277989609
Bug: 278749606

Change-Id: I325a5ffabd675f3c6e3f3805087370c4093927b9
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent 843ca9aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment