From patchwork Wed Jun 28 15:04:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 9814739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 56C3660365 for ; Wed, 28 Jun 2017 15:39:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47AD11FFAE for ; Wed, 28 Jun 2017 15:39:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BC41251F4; Wed, 28 Jun 2017 15:39:54 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 BB5A21FFAE for ; Wed, 28 Jun 2017 15:39:53 +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:References: In-Reply-To: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:List-Owner; bh=snTsNcq8pXgMXXETbX2LKEsW0kEIa697rad+rK+eU+A=; b=VvBQhv0ezT17UAPXSvSnfDwMRu PyW7bB6fXPun4MxXyi4B9rfhlkwU99z2hjqrP9CfMTtwSB98N7nem4IVIqJLP/l2Wz1KR5o5XsBw9 T2CA2/Qs/XQpiUzYxH0Zfup2kT0M8S6B8xU0Cq9D6qd1a/+UmqHL548AsqroFGD7rSnlwHnQuhgD5 VPUq4C+O1U/r7zDNMB80LVYSD2qx589/7XrIQ4DFwW3l8s3yenfu5I8LLaVpImm7pzD4HpFmwtb1s cf+oEnBDtAWXNsa5O2n1mzXeBm39fxN2fmUbKtBXwFgA3szh+ctDTEtsM/K+Dv575hi/Bq016fB/y hHDetZWA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQF4K-0005Ch-E6; Wed, 28 Jun 2017 15:39:52 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQEnK-0000rw-1i for linux-arm-kernel@bombadil.infradead.org; Wed, 28 Jun 2017 15:22:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ntq607oFfL1AfzbO5kyMKYlRi/unpQOsyzHw4u4Yc4k=; b=C281FzTzK3APACxniTZsUervT 8x0vJquL6eNEsWXcp4jy2+s/dgllV26UQR+vp95dR+Fi137Rrm2b03+LmlZWplfKrbJAQN2vQDDwS Sbvc/ARKv4ugAO8KUQYVtmod+fBPrAtWFBBVa7xy60U6LrDEcuXnl0mPJslKUv9r8wH6KVNq62Cke DR2SgjWs0i4uiFqfja5DvL9OiT5vzQ9dGGi5HeFSQraPCvDo7FObRmJzK1EU/OYbFNbBQrLpOkJjP bBQzHA/BzBNOsGla6Fdvd4PjVup9qUhbUIQWXyzKnMjKt1MiUgb7Z++fto68y3f0sLOWQhYoVdLWr QxSOpB+SQ==; Received: from foss.arm.com ([217.140.101.70]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQEXw-0001Pd-RP for linux-arm-kernel@lists.infradead.org; Wed, 28 Jun 2017 15:06:27 +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 D1107168F; Wed, 28 Jun 2017 08:06:05 -0700 (PDT) Received: from approximate.cambridge.arm.com (approximate.cambridge.arm.com [10.1.207.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6890C3F4FF; Wed, 28 Jun 2017 08:06:04 -0700 (PDT) From: Marc Zyngier To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: [PATCH v2 52/52] KVM: arm/arm64: GICv4: Enable VLPI support Date: Wed, 28 Jun 2017 16:04:11 +0100 Message-Id: <20170628150411.15846-53-marc.zyngier@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170628150411.15846-1-marc.zyngier@arm.com> References: <20170628150411.15846-1-marc.zyngier@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170628_160625_086431_7A38BE70 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: Mark Rutland , Jason Cooper , Eric Auger , Christoffer Dall , Thomas Gleixner , Shanker Donthineni 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 All it takes is for the has_v4 flag to be set in gic_kvm_info, and we'll enable it... Signed-off-by: Marc Zyngier --- virt/kvm/arm/vgic/vgic-v3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/virt/kvm/arm/vgic/vgic-v3.c b/virt/kvm/arm/vgic/vgic-v3.c index 96ea597db0e7..fb7bc3b93482 100644 --- a/virt/kvm/arm/vgic/vgic-v3.c +++ b/virt/kvm/arm/vgic/vgic-v3.c @@ -478,6 +478,12 @@ int vgic_v3_probe(const struct gic_kvm_info *info) kvm_vgic_global_state.can_emulate_gicv2 = false; kvm_vgic_global_state.ich_vtr_el2 = ich_vtr_el2; + /* GICv4 support? */ + if (info->has_v4) { + kvm_vgic_global_state.has_gicv4 = true; + kvm_info("GICv4 support enabled\n"); + } + if (!info->vcpu.start) { kvm_info("GICv3: no GICV resource entry\n"); kvm_vgic_global_state.vcpu_base = 0;