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: 10562591 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 5D93B157B for ; Fri, 10 Aug 2018 10:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EDD42B6D3 for ; Fri, 10 Aug 2018 10:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4303C2B6F3; Fri, 10 Aug 2018 10:14:37 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E275D2B6D3 for ; Fri, 10 Aug 2018 10:14:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbeHJMns (ORCPT ); Fri, 10 Aug 2018 08:43:48 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36022 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727206AbeHJMns (ORCPT ); Fri, 10 Aug 2018 08:43:48 -0400 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 Cc: Christoffer Dall , Eric Auger 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 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.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(-)