Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1585065ybm; Thu, 23 May 2019 03:37:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwG7I5FiEVGjwPfTDjN4vwQ3rDPB067lmrTFbFqM1trmNsoI8aDN35C1a151eOm37eSCTm1 X-Received: by 2002:a17:902:760f:: with SMTP id k15mr21586185pll.125.1558607854298; Thu, 23 May 2019 03:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558607854; cv=none; d=google.com; s=arc-20160816; b=S8twpmbSSxouo+4qbJDJuI1OWzVqhP7wyMF53n2D7jizyAp3Sjuk/tCuKbAaHVGAjr V8A0VQUh2sViRgMGrkiQr5+gNTBOPmuC+TbYdk1yghxMGtY3Vdi52i/PjWPIcudZOU6x xqo2/z8bsoNqtKRSM2zUz9sIkWDXhaA9KSJjl3ZEfT6X8UQPw8I8b/J3zRfrwFUzm6KC +LI+yz52uqkzEnZpDSrg7hfs44Em24e0bpeAx/q2AQfyJKMb6+h1Bhuifwphzo9C2vQ9 R63PPEqxhQ7VIoFKV1OO1+Jf97f3xwOPaDVuBd5PIc5wr6ShdJj1u+iT+HYcvMTg/Ki1 H21Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=mTzULia/b9VIfC3RIDWbooPxFf3uQd4kXm/KR9qY9oU=; b=vtbinTfl33T2hOR195HLhSqF3erxO1h0fSsnMpqEkS2i+/ONKQyunKq4nb2gqPTqMC EWniUiBu94fLhF82xC3DPKHRwxZd6E9ouXRCFE5vkXziGbfGCjOaGxjuRNEF4z5L0ara ErTEAy4vk0oSKAUeYLhk4qgMDmsgJlAx4K960JFPAceesRVnyw5CmP998Bd27RxzEGKN rTGLabcaN9KFfUN9QW8hMb2AQlVo0gM5gxyShD5Cot2f/dxc7kFAqTpgYblgvCvGHfzd H2QeqKg3TPOIoezMjLTuMd8SpIWGfeuhBc8bSBEuz068PrSiesAwG3AGV/BzQwykU3kG 1p/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si2792424pgg.84.2019.05.23.03.37.19; Thu, 23 May 2019 03:37:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730728AbfEWKfx (ORCPT + 99 others); Thu, 23 May 2019 06:35:53 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:43174 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730692AbfEWKfv (ORCPT ); Thu, 23 May 2019 06:35:51 -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 7757115AB; Thu, 23 May 2019 03:35:51 -0700 (PDT) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5A9793F718; Thu, 23 May 2019 03:35:49 -0700 (PDT) From: Sudeep Holla To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Christoffer Dall , Marc Zyngier , James Morse , Suzuki K Pouloze , Catalin Marinas , Will Deacon , Julien Thierry Subject: [PATCH v2 13/15] KVM: arm64: enable SPE support Date: Thu, 23 May 2019 11:35:00 +0100 Message-Id: <20190523103502.25925-14-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190523103502.25925-1-sudeep.holla@arm.com> References: <20190523103502.25925-1-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have all the bits and pieces to enable SPE for guest in place, so lets enable it. Signed-off-by: Sudeep Holla --- virt/kvm/arm/arm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index c5b711ef1cf8..935e2ed02b2e 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -577,6 +577,10 @@ static int kvm_vcpu_first_run_init(struct kvm_vcpu *vcpu) return ret; ret = kvm_arm_pmu_v3_enable(vcpu); + if (ret) + return ret; + + ret = kvm_arm_spe_v1_enable(vcpu); return ret; } -- 2.17.1