ANDROID: KVM: arm64: Allow RO memslot/dirty logging for non-protected guests
Bug: 357781595 Change-Id: I998744c16657ed724abd8092194890b27dc3ca67 Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
committed by
Keir Fraser
parent
b65e3cf50e
commit
99b2c01ad2
@@ -2428,7 +2428,7 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
if (new &&
|
||||
if (new && kvm->arch.pkvm.enabled &&
|
||||
new->flags & (KVM_MEM_LOG_DIRTY_PAGES | KVM_MEM_READONLY)) {
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user