Commit 1bc2a1c2 authored by Vincent Donnefort's avatar Vincent Donnefort
Browse files

ANDROID: arm64: Fixes ioremap for legacy host



In case of a legacy host (i.e. without KVM_FUNC_HAS_RANGE) mmio guard
works on a per-page (i.e. hyp PAGE_SIZE) basis. Some mismatch between
what's bytes and what is nr_granules lead to a failure in a such
configuration. Fix it.

Bug: 278749606
Bug: 243642516
Fixes: 4a93f65b ("ANDROID: arm64: ioremap/iounmap use range for MMIO guard hypercalls")
Change-Id: If8217dcb442bad359f949ac7adab80e06a509535
Signed-off-by: default avatarVincent Donnefort <vdonnefort@google.com>
parent 567209b2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment