Revert "ANDROID: KVM: arm64: Drop FOLL_FORCE when pinning guest memory pages"

This reverts commit 3f5ffbd827.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: Ie38216650f36b6b38f0c4052cec515955e239b80
This commit is contained in:
Will Deacon
2022-07-07 15:48:57 +01:00
parent f1689aa7a9
commit ab71832edb

View File

@@ -1163,7 +1163,10 @@ static int pkvm_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
unsigned long hva)
{
struct mm_struct *mm = current->mm;
unsigned int flags = FOLL_HWPOISON | FOLL_LONGTERM | FOLL_WRITE;
unsigned int flags = FOLL_FORCE |
FOLL_HWPOISON |
FOLL_LONGTERM |
FOLL_WRITE;
struct kvm_pinned_page *ppage;
struct kvm *kvm = vcpu->kvm;
struct page *page;