From patchwork Fri Aug 10 10:14:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 10562601 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 52294157B for ; Fri, 10 Aug 2018 10:14:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 401922B6D3 for ; Fri, 10 Aug 2018 10:14:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 345F92B6E2; Fri, 10 Aug 2018 10:14: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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 D959D2B6D3 for ; Fri, 10 Aug 2018 10:14: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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=5zMktluJ1HtBB2Qtr9sDGVUlC3LNxiY6HmfpuOaBcVQ=; b=k3V agvyQLNlL4jIEgafpsO9SeKh7+wpYWSmMzHuib5hdLdqIe6XCPtV+zNR6UkjHHDoIv2MbNStzl/dr uyTmm5RFiPiYIngeKSIEwWJ9M6p3q9Otn4u9iySJZXGp0hVz6Nk0By/EsSoFI6/gzs8r45ZqUT/HJ aHfCVAY+lZ/oaOtCxIN/UyRy/WtfzIMUKtLyp4M8RM3JotE/Qm9O9FhUHoDER86lhnqXpVcfxpDFJ 3KmCsw81CE7TL0h3+ETvXeh74S4J5jtXqSTMswfi5vg+4HTbUIBMnQSYkpLR7f3nNUHnaoSsNUMU2 x6GTscao3c7XxIzgQKdxqjASRA0XRjw==; 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 1fo4RT-0005jj-S6; Fri, 10 Aug 2018 10:14:47 +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 1fo4RQ-0005hq-UE for linux-arm-kernel@lists.infradead.org; Fri, 10 Aug 2018 10:14:46 +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 7F08880D; Fri, 10 Aug 2018 03:14:34 -0700 (PDT) Received: from big-swifty.lan (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 09EB63F5D4; Fri, 10 Aug 2018 03:14:32 -0700 (PDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH v2 0/4] KVM: arm/arm64: vgic-v3: Group0 SGI support Date: Fri, 10 Aug 2018 11:14:18 +0100 Message-Id: <20180810101422.3569-1-marc.zyngier@arm.com> X-Mailer: git-send-email 2.18.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180810_031444_999932_8423F350 X-CRM114-Status: GOOD ( 10.43 ) 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: Eric Auger , Christoffer Dall MIME-Version: 1.0 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 Although we now have Group0 support, we still miss support for Group0 SGIs (which amounts to handling ICC_SGI0R_EL1 and ICC_ASGI1R_EL1 traps), and this small series adds such support. I appreciate this is *very* late for 4.19, yet I'd like to take it in as they complement Christoffer's Group0 support, and It'd be annoying to have something incomplete in 4.19. Please shout if you spot something that doesn't look quite right. Thanks, M. * From v1: - Clarified the condition for which a G1 SGI can be queued - Added ABs abd RBs from Christoffer and Eric Marc Zyngier (4): KVM: arm64: Remove non-existent AArch32 ICC_SGI1R encoding KVM: arm/arm64: vgic-v3: Add core support for Group0 SGIs KVM: arm64: vgic-v3: Add support for ICC_SGI0R_EL1 and ICC_ASGI1R_EL1 accesses KVM: arm: vgic-v3: Add support for ICC_SGI0R and ICC_ASGI1R accesses arch/arm/kvm/coproc.c | 25 ++++++++++++++++++- arch/arm64/include/asm/sysreg.h | 2 ++ arch/arm64/kvm/sys_regs.c | 43 +++++++++++++++++++++++++++++--- include/kvm/arm_vgic.h | 2 +- virt/kvm/arm/vgic/vgic-mmio-v3.c | 19 +++++++++++--- 5 files changed, 81 insertions(+), 10 deletions(-)