Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp296400ima; Wed, 24 Oct 2018 01:08:20 -0700 (PDT) X-Google-Smtp-Source: AJdET5fw5Smxqfo8Llx6VYjAEGKiNrsN0hILmn2l+K6wIBoF/DMKxddD8R320ZQhwQa+x84DY6aV X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr1684012pfd.44.1540368500559; Wed, 24 Oct 2018 01:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540368500; cv=none; d=google.com; s=arc-20160816; b=KDoEZyE6GLcrT65vrZtqvUM7qvdZTXAWo4FF/C4G0GKFfNe21dMCdJbsBbyLzS4pHX /d31hkX0RtKmq8JlkGNI6SHOz22aeG90GPEhoP6JpLH4NkWkeTUJPcFZwTsYMFjBqzph Y46zm2r1WariZrLn9evsayUSnF4tNASbjFX9djOqSQMjFfdnHkI6RxQEUsVM7G9tPdXQ Qmf1eI/7Iu7xfkN9676b+ajOTwWc5XVXA/rwML5smu6OWxTgc4AEMuAIUUsjMoFJw0uo SQxXbMeBi6cDp/BIpsKE9IvxeV22PPqudzismadmFelTRxHPTt2ia8rP+vrgO8ajn3zB 5YcA== 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=0udbpl1JV09/FoTZOXIagS+x9tfEzlm/D/LKMSXMrpA=; b=UmOFdk3o8b50ya+hjo6m+MqExszmB2EkXa7zXfv1deaoyysX6IxassP66u/Z9UTzup UT2oASarfZhmV6yJyEcnBC3kZWM5/k737TQhkEaN6dzlrq4qpYesQD+7KZx7J5JtQtx7 TKjHtsPHTrHvVV87bp3t3W7lEHMoZRYEv8+prIPRFRz8FqorkhDi0Fy03zCMi0jMeb4+ ZrHaE2InYr9wFN91EXTsppDW8120MKh09o2bdjzTxpg6ajVab2HhPGRTrM98ATS5VXNb TMT1bJ+YU0sNGKX444JdXbh3yFBTeyRv+ZWCKWquNoebCwhijox4UtLDzpYF+E5A9lRL wgNw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si4318753pfh.9.2018.10.24.01.08.05; Wed, 24 Oct 2018 01:08: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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727798AbeJXQe2 (ORCPT + 99 others); Wed, 24 Oct 2018 12:34:28 -0400 Received: from mga09.intel.com ([134.134.136.24]:23573 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727441AbeJXQe1 (ORCPT ); Wed, 24 Oct 2018 12:34:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Oct 2018 01:07:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,419,1534834800"; d="scan'208";a="273987295" Received: from skx-d.bj.intel.com ([10.238.135.53]) by fmsmga005.fm.intel.com with ESMTP; 24 Oct 2018 01:07:20 -0700 From: Luwei Kang To: kvm@vger.kernel.org, x86@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, pbonzini@redhat.com, rkrcmar@redhat.com, joro@8bytes.org, songliubraving@fb.com, peterz@infradead.org, alexander.shishkin@linux.intel.com, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, thomas.lendacky@amd.com, konrad.wilk@oracle.com, mattst88@gmail.com, Janakarajan.Natarajan@amd.com, dwmw@amazon.co.uk, jpoimboe@redhat.com, marcorr@google.com, ubizjak@gmail.com, sean.j.christopherson@intel.com, jmattson@google.com, linux-kernel@vger.kernel.org, Luwei Kang Subject: [PATCH v13 04/12] perf/x86/intel/pt: Add new bit definitions for PT MSRs Date: Wed, 24 Oct 2018 16:05:08 +0800 Message-Id: <1540368316-12998-5-git-send-email-luwei.kang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1540368316-12998-1-git-send-email-luwei.kang@intel.com> References: <1540368316-12998-1-git-send-email-luwei.kang@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bit definitions for Intel PT MSRs to support trace output directed to the memeory subsystem and holds a count if packet bytes that have been sent out. These are required by the upcoming PT support in KVM guests for MSRs read/write emulation. Signed-off-by: Luwei Kang --- arch/x86/include/asm/msr-index.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index d3a9eb9..107818e3 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -126,6 +126,7 @@ #define RTIT_CTL_USR BIT(3) #define RTIT_CTL_PWR_EVT_EN BIT(4) #define RTIT_CTL_FUP_ON_PTW BIT(5) +#define RTIT_CTL_FABRIC_EN BIT(6) #define RTIT_CTL_CR3EN BIT(7) #define RTIT_CTL_TOPA BIT(8) #define RTIT_CTL_MTC_EN BIT(9) @@ -154,6 +155,8 @@ #define RTIT_STATUS_BUFFOVF BIT(3) #define RTIT_STATUS_ERROR BIT(4) #define RTIT_STATUS_STOPPED BIT(5) +#define RTIT_STATUS_BYTECNT_OFFSET 32 +#define RTIT_STATUS_BYTECNT (0x1ffffull << RTIT_STATUS_BYTECNT_OFFSET) #define MSR_IA32_RTIT_ADDR0_A 0x00000580 #define MSR_IA32_RTIT_ADDR0_B 0x00000581 #define MSR_IA32_RTIT_ADDR1_A 0x00000582 -- 1.8.3.1