Received: by 10.223.185.116 with SMTP id b49csp4287748wrg; Tue, 6 Mar 2018 13:05:42 -0800 (PST) X-Google-Smtp-Source: AG47ELuLSy9q2n+By4ZW7l6DcdOx/j8gYV7hiHVm641ehbCfVtu+249XOszbNrIiH3uvjOKp6e8z X-Received: by 10.98.211.198 with SMTP id z67mr20525523pfk.0.1520370342192; Tue, 06 Mar 2018 13:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520370342; cv=none; d=google.com; s=arc-20160816; b=klQvMxjb1pU6mjnjz6Cz72mmV+kTb8G5Er+omji65nMddoYjwYEXobH9jMJGnHKZ0M o+6AX5XcBGcwVC+SpkQr6g7djnj7rwVldVFeedm+KTpjqnEPEG+cSdZc3iBBH4okjncv fs17azVRJzLZ3yd5zpizLyuYgPYTl2r8+ze8LQdQGduCr56MUdBGrtGYCM0tDzDE6p5f v5UX6fIH4SfJs6jC2tA8i+I6+vtW64uWwqGKSXtN+qKTHp7l4on/YzzLa5LDuzRf1TGr BnOkGhftpTvvWemE1J55oBlhAhI3ZL5h7H8LMTLjLLNSHITr1hOFi4AdMQHZMjh1KwG0 JXbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=cxUQ+ZUdILpsleBxDYhXwa+tS8sDFFJdZgoND/fI/v4=; b=aczIYPSjiqMtvk0946pBMCRx6XGZ4JVxUjlfaPKAqlDyR2UQ8YQxqdkrtfKR/Wg4aT 5tYXJ1LkIsxcM6rgycDzgSdDbJhp7cVt3liEVina2w3tq5ArQ88TVaO8h/uwnW3ox+Cx s9sM9dR3mcTIFFHj3KJx/c9Q2Iw4hWkJPy4Jfmv+oqDai6W9GHZ5OOtyGL2XUsvpDs6c wRmbgrIPo3oQyo85IgMm7bDHerhHdqXAQGGt+QU+KKS2Id/bozKVO98QwZmmfC6DfJbs C4MXPPqflrGkGqn6fS118Zhs1K/KD98kox4I1mesFMEtxrJDHqB4CkIyWagNTBnNjd50 30YQ== 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; 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 j9si10456792pgs.223.2018.03.06.13.05.26; Tue, 06 Mar 2018 13:05:42 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754058AbeCFVEU (ORCPT + 99 others); Tue, 6 Mar 2018 16:04:20 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:38956 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752931AbeCFVET (ORCPT ); Tue, 6 Mar 2018 16:04:19 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 88B254068028; Tue, 6 Mar 2018 21:04:18 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id D0C0E2166BAE; Tue, 6 Mar 2018 21:04:15 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Tue, 06 Mar 2018 22:03:38 +0100 Date: Tue, 6 Mar 2018 22:03:38 +0100 From: Radim Krcmar To: Janakarajan Natarajan Cc: kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Paolo Bonzini , Len Brown , Borislav Petkov , Kyle Huey , Tom Lendacky Subject: Re: [PATCH v5 1/3] x86/msr: Add AMD Core Perf Extension MSRs Message-ID: <20180306210338.GD12128@flask> References: <7cf7bd5fa6d24cd46a9ea50024b0010bf3d01088.1517850303.git.Janakarajan.Natarajan@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7cf7bd5fa6d24cd46a9ea50024b0010bf3d01088.1517850303.git.Janakarajan.Natarajan@amd.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 06 Mar 2018 21:04:18 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 06 Mar 2018 21:04:18 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rkrcmar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-05 13:24-0600, Janakarajan Natarajan: > Add the EventSelect and Counter MSRs for AMD Core Perf Extension. > > Signed-off-by: Janakarajan Natarajan > --- > arch/x86/include/asm/msr-index.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h > index e7b983a..2885363 100644 > --- a/arch/x86/include/asm/msr-index.h > +++ b/arch/x86/include/asm/msr-index.h > @@ -341,7 +341,21 @@ > > /* 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? Thanks. > #define MSR_F15H_NB_PERF_CTL 0xc0010240 > #define MSR_F15H_NB_PERF_CTR 0xc0010241 > #define MSR_F15H_PTSC 0xc0010280 > -- > 2.7.4 >