Message ID | 20190523103502.25925-14-sudeep.holla@arm.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1994463ili; Thu, 23 May 2019 03:35:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0rSvJ1/PdoFZCMZ6njWoq89WYyM4ymCWcp9FLokdSQxm5OvD64WfbkzzSxPwEanbzdnvl X-Received: by 2002:a17:902:9f8b:: with SMTP id g11mr90271911plq.199.1558607756161; Thu, 23 May 2019 03:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558607756; cv=none; d=google.com; s=arc-20160816; b=EA9Q8zziqWMBr8wuhbfzQzXSsT/TWMBMCKYBaZUjDFQcXizz7fM25x+XobRqgnhyDp yfP2pyEyCb4RvpmkwdK6fPkVkwSUymHhp5fEUSK+NAbHCEAvR6QCjeSR3Zt5xDIw2fMt tpvtWDhZxB11UGRAWEanXJGi9fBX/o9E3gg7nYLDArwo32M+hep3qzIQ4SB92ZYxj3y7 cNb18uK1qMS2hVt+qnw2dLfqOx0V8mO0bDbpmWDZcFZe6wGpvIQ8xdwIHHTnJWzJiH3f i8tltPUkS16nea087SH/wEfbhismWtFHJe49MYGgMUH7VtLrJ6DWl24RsyI/KPjxJe0W I6VA== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba6si23009071plb.436.2019.05.23.03.35.55; Thu, 23 May 2019 03:35:56 -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 S1730736AbfEWKfy (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Thu, 23 May 2019 06:35:54 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <sudeep.holla@arm.com> To: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla <sudeep.holla@arm.com>, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Christoffer Dall <christoffer.dall@arm.com>, Marc Zyngier <marc.zyngier@arm.com>, James Morse <james.morse@arm.com>, Suzuki K Pouloze <suzuki.poulose@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Julien Thierry <julien.thierry@arm.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
arm64: KVM: add SPE profiling support for guest
|
expand
|
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; }
We have all the bits and pieces to enable SPE for guest in place, so lets enable it. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> --- virt/kvm/arm/arm.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.17.1