Commit aeaa3ba9 authored by Vincent Donnefort's avatar Vincent Donnefort
Browse files

ANDROID: KVM: Fix fast-forward size in pkvm_mem_abort_range()



When a block mapping could be installed, pkvm_mem_abort_range() was not
skipping the entire block range from the iteration leading to up to 511
useless calls to pkvm_mem_abort().

Also, it was possible to cover less than the requested range if the
original fault IPA wasn't PMD-aligned but a PMD mapping has been
installed.

The system can recover from both problems... however fix the iteration
to avoid useless hyp/host back and forths.

Bug: 278749606
Bug: 243642516
Fixes: 5d9808b9 ("ANDROID: KVM: arm64: THP support for pKVM guests")
Change-Id: I99e5225a6aea3869aa78ff52ada6949748b78c6f
Signed-off-by: default avatarVincent Donnefort <vdonnefort@google.com>
parent 92db83f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment