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

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: default avatarVincent Donnefort <vdonnefort@google.com>
parent 389ccf71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment