ANDROID: KVM: arm64: Allow pvmfw loading in the middle of a region
Currently, pkvm_load_pvmfw_pages() assumes pvmfw_load_addr is less or
equal to ipa. This assumption is wrong since the introduction of the
stage-2 huge-mappings: the host can give more than PAGE_SIZE in a
single donation and pvmfw can be in the middle of this donation.
Ensure copy of the payload regardless of its alignment with our IPA
region.
Bug: 447604940
Change-Id: I0bcba2aba36f7d55ed3897961d514b16b9a060eb
Signed-off-by:
Vincent Donnefort <vdonnefort@google.com>
Loading