Received: by 10.213.65.68 with SMTP id h4csp440680imn; Fri, 16 Mar 2018 07:52:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELuj3qtigB19sG23I4XOUq4mc83IIp5tiY88osqSRiCQWFUaMpmIJe8daycgStwONL4Twixh X-Received: by 10.99.170.5 with SMTP id e5mr1651990pgf.92.1521211940516; Fri, 16 Mar 2018 07:52:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521211940; cv=none; d=google.com; s=arc-20160816; b=YeKEfIpIaeWZcZhsEARbKkY6anCsTpbYoorG947b76IuedjRrvdX+lJDvUqamTO0H1 eMxd5kPLMXry5gKP5eUy7TOWfKCakDh4FviKW/hkTANwtV3dKtuERNKatBrQVTeUQ+ed LACtgsf4cWkpipgIY3dzfh48Q14QLRMBWZ8IYKWw2v4uucrgK4IXXzbuPjUsis3SwaGb bmEMxrIi0GaaTA94ZFc1iNWefGoZ+bgb1xlR1HBeiigWq4q7fZ9BXm5pS4ae/gcVvHLU Qvgnuc9/h19QAt7uksBpUbTyfOiEmO7mN9mr1u2/OOkyJ/5GBD4h067V7iwMuUKp9z2n BNnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=IivZBS/SjelFmwhxXoegz0cEXYNNsgTUS2Wyd+ctZh4=; b=jTAIPypuFykbcsHorNziF/df9pW7R06zb4Y3rCblRkpOov0frKvLrbXuzbZmbJ7THK FM9dJeK9aSyV6RFPhqNBx/sRsTavGZ4oipbzz69nt+9xAlEqbFGXuuZk53vkFYfKKG61 rN2B7/ZATyc4n9MFsKH20oywq+dhoKusURAf5gACGkte12UV7+mzP9s0sWUefpEt8rnC gCPV601zO8HI08dk+pv4/ZHtzMlp/RPTIGMOUYzaLp1RIw7LLHFa3qeALGj21aKcnbRy GeLzSx6gtrBOsi2YfWbC8dwwUZtwY9v/VFOJtz2ym5mGwzvhx13SicAXaGHcUmW9NlPp FQ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Cy7D8P6l; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si5025102pgt.517.2018.03.16.07.52.06; Fri, 16 Mar 2018 07:52:20 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Cy7D8P6l; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753508AbeCPOvB (ORCPT + 99 others); Fri, 16 Mar 2018 10:51:01 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36155 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753484AbeCPOu4 (ORCPT ); Fri, 16 Mar 2018 10:50:56 -0400 Received: by mail-wm0-f46.google.com with SMTP id n3so3567599wmd.1; Fri, 16 Mar 2018 07:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IivZBS/SjelFmwhxXoegz0cEXYNNsgTUS2Wyd+ctZh4=; b=Cy7D8P6lbHR96N5IueZw2sVH4aq7UzaaotHcWrgFtDp7Y99Z0XfG5XGl1lZuioh7jX 7iosUOvKJ0LvINNXOysnxyhi0RkonzgdaEruNQDVGaDog3PUlYEHIapVv06zXdDjDizX tOaYjblh6Jpft0m34zGmFZiPp2upP+u2bbGz+3klc9c36prQPqFzAWTYcQJiHPDGDUgJ ecA2ReKYrLRhP9p33xLvbTu23lWwdqDl2fhS94IG5yaVMDVI6Nw/OBaqFCienEtuFTsO 05V5dyv2uXJ5Avba9U8S/AwrkxFQ2aB+kFkRtnHX1j9UbxSmdpjmQZ0uzztSeVFJ3n3m YncA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IivZBS/SjelFmwhxXoegz0cEXYNNsgTUS2Wyd+ctZh4=; b=Yq6zhGzZglwkpOKuVUx8pYkygbpo6pMli6TBpffGMyBHU88sWUNJUyzeppCpYm7i8R 0Y6ySOztlzwpgVoC0UUTfna4R3ht3LFA9m04VPRcIDHGu+uXC9+IhNhPbN6OZlVWDh7x aBeGYRYCVwVhuli/fga6Tbi8NSKLOogiSl8yg+m5EXbbyfQKMJC9W4ZOCbf2FgU087+Q NZqWI3JR8yI9uBevXHUAWjXIgBSdqMx4IyAwWZo+fa2Y10e4pu8A5gyg12GuQh0myVNC HWlNgfN35bpZXhfUjBMQCosF9S6v9lhbRimkSLcbC4jkptUWNawyae5xleg9a1Tk3hmh feQA== X-Gm-Message-State: AElRT7FeHQMKzGUv4xPJRdw0WU7NDaBaDa3c5iaYnJeQA+YX+4PteNHF PFspI1EhCWss+sp7Nq1/FuY= X-Received: by 10.28.143.148 with SMTP id r142mr2009945wmd.124.1521211855057; Fri, 16 Mar 2018 07:50:55 -0700 (PDT) Received: from [192.168.10.165] (94-36-191-219.adsl-ull.clienti.tiscali.it. [94.36.191.219]) by smtp.googlemail.com with ESMTPSA id 140sm8190002wmy.38.2018.03.16.07.50.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Mar 2018 07:50:54 -0700 (PDT) Subject: Re: [PATCH v5 1/3] x86/msr: Add AMD Core Perf Extension MSRs To: Radim Krcmar , Janakarajan Natarajan Cc: kvm@vger.kernel.org, Borislav Petkov , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Len Brown , Kyle Huey , Tom Lendacky References: <7cf7bd5fa6d24cd46a9ea50024b0010bf3d01088.1517850303.git.Janakarajan.Natarajan@amd.com> <20180306210338.GD12128@flask> From: Paolo Bonzini Message-ID: <150643f7-b464-0bd0-6ae8-6403b4d34700@redhat.com> Date: Fri, 16 Mar 2018 15:50:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180306210338.GD12128@flask> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/03/2018 22:03, Radim Krcmar wrote: >> /* Fam 15h MSRs */ >> #define MSR_F15H_PERF_CTL 0xc0010200 >> +#define MSR_F15H_PERF_CTL0 MSR_F15H_PERF_CTL >> +#define MSR_F15H_PERF_CTL1 (MSR_F15H_PERF_CTL + 2) >> +#define MSR_F15H_PERF_CTL2 (MSR_F15H_PERF_CTL + 4) >> +#define MSR_F15H_PERF_CTL3 (MSR_F15H_PERF_CTL + 6) >> +#define MSR_F15H_PERF_CTL4 (MSR_F15H_PERF_CTL + 8) >> +#define MSR_F15H_PERF_CTL5 (MSR_F15H_PERF_CTL + 10) >> + >> #define MSR_F15H_PERF_CTR 0xc0010201 >> +#define MSR_F15H_PERF_CTR0 MSR_F15H_PERF_CTR >> +#define MSR_F15H_PERF_CTR1 (MSR_F15H_PERF_CTR + 2) >> +#define MSR_F15H_PERF_CTR2 (MSR_F15H_PERF_CTR + 4) >> +#define MSR_F15H_PERF_CTR3 (MSR_F15H_PERF_CTR + 6) >> +#define MSR_F15H_PERF_CTR4 (MSR_F15H_PERF_CTR + 8) >> +#define MSR_F15H_PERF_CTR5 (MSR_F15H_PERF_CTR + 10) >> + > x86 maintainers, > > are you ok with this going through the kvm tree? Boris, can you ack these new MSRs? Thanks, Paolo