From patchwork Wed Aug 8 13:14:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 10560019 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 5BB5D13AC for ; Wed, 8 Aug 2018 13:15:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 485CD29F2C for ; Wed, 8 Aug 2018 13:15:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C7F729F37; Wed, 8 Aug 2018 13:15:31 +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 CC0BF29F2C for ; Wed, 8 Aug 2018 13:15:30 +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=a5UFcM+4Q7FZr2ZA1r971vZatvhH1mr3DJkZxC5xWQA=; b=U6J t+YoZxHnXCSBIHkyd7/UEFdRZwZa2t/DUZ7ybKvWGomEuRl73f7hhu+qkajqQYQ4xr8B+aoYsu5b4 ezzLXfAQK/JcQRu5erymvmmeSvV7dTuYfltIdNxYDZBmaJfP1DgVs2hGNf6WBxypZvLxwSEia9j1n dHzDaKAHFTYx1GhW2Xb+yVl9mQNXNRyjoI7p0JBBDkD7E5duI1rpQocPb4BIUumzwfPuKvL1lkC10 lqJSIxl8lTp4hEuyi1udyl6yKtiAxg8qcNIlxtRAMbtukrqwGiVYQTrqC0Rt+1fgN/ZRr4cA7MsWJ ADlvG2mrcq2rQ9UkYvJK7b+fGoFM3vg==; 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 1fnOJD-0003i9-BX; Wed, 08 Aug 2018 13:15:27 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnOJA-0003fU-Bw for linux-arm-kernel@lists.infradead.org; Wed, 08 Aug 2018 13:15:25 +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 285A37A9; Wed, 8 Aug 2018 06:15:12 -0700 (PDT) Received: from approximate.Emea.Arm.com (approximate.Emea.Arm.com [10.4.13.119]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3CC273F5B3; Wed, 8 Aug 2018 06:15:11 -0700 (PDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: [PATCH 0/4] KVM: arm/arm64: vgic-v3: Group0 SGI support Date: Wed, 8 Aug 2018 14:14:57 +0100 Message-Id: <20180808131501.584-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-20180808_061524_418150_A47DE339 X-CRM114-Status: UNSURE ( 8.57 ) 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: 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, 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. 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 | 16 +++++++++--- 5 files changed, 79 insertions(+), 9 deletions(-) Reviewed-by: Eric Auger