From patchwork Wed Dec 11 16:56:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 11285737 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9ED7F1593 for ; Wed, 11 Dec 2019 16:57:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D05522527 for ; Wed, 11 Dec 2019 16:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576083428; bh=qah1AMgfkt7WeXzxd/MF2CEkgJ0RWDhRqFDfDBqEDTU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=XbZ9APbTPfMF8nDxCIBkOSSxQwVLHRTn2P3LpnYZNk7osbqYEArvlhOrCg1UoCccl bWDq/1Mjy6F565UHfiheR32bQ48stONPQ0eKNvTmq0vQak0JpoFPVbmFf8Xc/EEVix X4Qw1t3z3sNmcMfP2O2qpZN3QryTK5Tnqoa3Rbrs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730276AbfLKQ5H (ORCPT ); Wed, 11 Dec 2019 11:57:07 -0500 Received: from inca-roads.misterjones.org ([213.251.177.50]:37984 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730158AbfLKQ5H (ORCPT ); Wed, 11 Dec 2019 11:57:07 -0500 Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by cheepnis.misterjones.org with esmtpsa (TLSv1.2:DHE-RSA-AES128-GCM-SHA256:128) (Exim 4.80) (envelope-from ) id 1if5IP-00076q-Nw; Wed, 11 Dec 2019 17:57:05 +0100 From: Marc Zyngier To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Cc: James Morse , Julien Thierry , Suzuki K Poulose , Christoffer Dall , Alexandru Elisei Subject: [PATCH 3/3] KVM: arm/arm64: Drop spurious message when faulting on a non-existent mapping Date: Wed, 11 Dec 2019 16:56:50 +0000 Message-Id: <20191211165651.7889-4-maz@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191211165651.7889-1-maz@kernel.org> References: <20191211165651.7889-1-maz@kernel.org> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, Christoffer.Dall@arm.com, alexandru.elisei@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on cheepnis.misterjones.org); SAEximRunCond expanded to false Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 Acked-by: Christoffer Dall --- 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; }