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:
Mostafa Saleh <smostafa@google.com>
Loading
Please sign in to comment