Message ID | 20191211165651.7889-4-maz@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | KVM: arm/arm64: user_mem_abort() assorted fixes | expand |
On Wed, Dec 11, 2019 at 04:56:50PM +0000, Marc Zyngier wrote: > Should userspace unmap memory whilst the guest is running, we exit > with a -EFAULT, but also having spat a useless message on the console. > > Get rid of it. Acked-by: Christoffer Dall <christoffer.dall@arm.com> > > Signed-off-by: Marc Zyngier <maz@kernel.org> > --- > virt/kvm/arm/mmu.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c > index f73393f5ddb7..fbfdffb8fe8e 100644 > --- a/virt/kvm/arm/mmu.c > +++ b/virt/kvm/arm/mmu.c > @@ -1696,7 +1696,6 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, > down_read(¤t->mm->mmap_sem); > vma = find_vma_intersection(current->mm, hva, hva + 1); > if (unlikely(!vma)) { > - kvm_err("Failed to find VMA for hva 0x%lx\n", hva); > up_read(¤t->mm->mmap_sem); > return -EFAULT; > } > -- > 2.20.1 >
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c index f73393f5ddb7..fbfdffb8fe8e 100644 --- a/virt/kvm/arm/mmu.c +++ b/virt/kvm/arm/mmu.c @@ -1696,7 +1696,6 @@ static int user_mem_abort(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, down_read(¤t->mm->mmap_sem); vma = find_vma_intersection(current->mm, hva, hva + 1); if (unlikely(!vma)) { - kvm_err("Failed to find VMA for hva 0x%lx\n", hva); up_read(¤t->mm->mmap_sem); return -EFAULT; }
Should userspace unmap memory whilst the guest is running, we exit with a -EFAULT, but also having spat a useless message on the console. Get rid of it. Signed-off-by: Marc Zyngier <maz@kernel.org> --- virt/kvm/arm/mmu.c | 1 - 1 file changed, 1 deletion(-)