From patchwork Tue Mar 19 13:30:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 10859617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6181617E0 for ; Tue, 19 Mar 2019 13:30:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 403E1295C7 for ; Tue, 19 Mar 2019 13:30:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3455A295EC; Tue, 19 Mar 2019 13:30:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E37A229683 for ; Tue, 19 Mar 2019 13:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Co13ml3b/MWGvtHPRT34m342rGTPoAlbo25CqQqEi78=; b=nsVAitrpAA4gZT YqRgX4mMPi1vOJ2yjiULipEMBMSnYnFsWkXVuum68nXIghjDEFJ5pve5kebF2vG3dQUtC/+aTuOUr lEhbLm9vNjQMOxsHd7fwIkKaQQA0RtB52dwrv6ut49BySJ6LJ8DznqPTAsOlONUq9r5lVYwuRMkaB Hz5ydvXs61gaAZG8C3p9jgD3HEPigwBkJZmbvNyl1lIV/a4sClZ1N2d+P4iPelnWDLV6fVhPHQmEX ZfZSD16u79MZTGD2z3nH6HgDgtXkUrtTHT/r2Iju05tTd090ujKtBHJNy71xslEJo/jbBAbVz5dzz clobg5ctqSjXWILhS+dw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6EpO-0006V1-BH; Tue, 19 Mar 2019 13:30:50 +0000 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70] helo=foss.arm.com) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6EpL-0006UT-Gs for linux-arm-kernel@lists.infradead.org; Tue, 19 Mar 2019 13:30:48 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82DEE1596; Tue, 19 Mar 2019 06:30:46 -0700 (PDT) Received: from why.lan (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 74D1C3F59C; Tue, 19 Mar 2019 06:30:44 -0700 (PDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH 0/2] KVM: arm/arm64: vgic-its: Guest memory access fixes Date: Tue, 19 Mar 2019 13:30:20 +0000 Message-Id: <20190319133022.10693-1-marc.zyngier@arm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190319_063047_560493_32FFDEE7 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julien Thierry , Andre Przywara , Suzuki K Poulose , Christoffer Dall , Eric Auger , James Morse Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP While messing with something completely different, I managed to trigger a number of RCU warnings, due to the lack of srcu locking in the ITS code. Andre partially addressed those last year[1], but there was some more left. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-May/577056.html Marc Zyngier (2): KVM: arm/arm64: vgic-its: Take the srcu lock when writing to guest memory KVM: arm/arm64: vgic-its: Take the srcu lock when parsing the memslots arch/arm/include/asm/kvm_mmu.h | 11 +++++++++++ arch/arm64/include/asm/kvm_mmu.h | 11 +++++++++++ virt/kvm/arm/vgic/vgic-its.c | 21 ++++++++++++++------- 3 files changed, 36 insertions(+), 7 deletions(-)