Skip to content

Commit 80d9ac9

Browse files
author
Marc Zyngier
committed
KVM: arm64: Fix detection of shared VMAs on guest fault
When merging the KVM MTE support, the blob that was interposed between the chair and the keyboard experienced a neuronal accident (also known as a brain fart), turning a check for VM_SHARED into VM_PFNMAP as it was reshuffling some of the code. The blob having now come back to its senses, let's restore the initial check that the original author got right the first place. Fixes: ea7fc1b ("KVM: arm64: Introduce MTE VM feature") Reviewed-by: Steven Price <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Cc: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e73f0f0 commit 80d9ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
947947
vma_shift = get_vma_page_shift(vma, hva);
948948
}
949949

950-
shared = (vma->vm_flags & VM_PFNMAP);
950+
shared = (vma->vm_flags & VM_SHARED);
951951

952952
switch (vma_shift) {
953953
#ifndef __PAGETABLE_PMD_FOLDED

0 commit comments

Comments
 (0)