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:Vincent Donnefort <vdonnefort@google.com>
Loading
Please sign in to comment