Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4336525imu; Mon, 28 Jan 2019 23:06:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN7jHXYfYmcUNyePE/U7f5IxzijC56eMqELgoijHtwnSZvqMEyln1M7spUtxv1yx8513b7x5 X-Received: by 2002:a17:902:bc44:: with SMTP id t4mr24659821plz.260.1548745614053; Mon, 28 Jan 2019 23:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548745614; cv=none; d=google.com; s=arc-20160816; b=lv8Fiik7Zm7E+rTRf2MeMIyH2Q4NUXNewOtUZX5L13R6cgz4CqLjAiIWAw/hack1SY Sbol+fI8ONwJt7KKgo83up6PWNf7DrWmTO775Shn4BI97VTBjY2DHIq/8tAhcTa543ke RbVJs7YHlVxtKGn0hmZqEaz7fe4+vbPyjJgZdhK7QGVn1Fw1XYKfYDPQMwgX8cHnD4Z6 LoE5A7H3ArT4cVy+TveYGLMsizOZLVCWO4BMXhXvLrTBBulp3WoTugZegoeVewoVM9rg EL4sKcBHJCnyM8YrRjyWvbNsvtxof4eH13XJ5pbyNI3pW4f4TzdUnnjc9VwBPkRWgUf+ PcAg== 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:mime-version :message-id:date:subject:cc:to:from; bh=kJKjs/cBLVUbFBUEw6scYeJvTZvy5almLzpEZ37peZw=; b=EP29iJKOQF777dNvUNIgRFYG+ADeu0n+fQZl46H0dE/j7pVX33YDLuUjLZig8WBFua DXp14AAZDAZ0cbXJDCoJhVplAuo3iuebAfLv8iiEelClK7hY1g3Za3+XBmxSb77HQhb9 3yEvx74cDf/oa1l4xcItkiO2eCDcuixTL495ADyD9X28b55Wp5pxm13IuVokhw+sDlwT BwR61vMBBIhbRAfOjLIUxyxdWJ1zn7sf0X2Rs46sLpdeexQxF/CtuNRAU0AUVukuEktE w/8gqYy3EzkqgfWepv2PTXOyiBE5K9GfvUERa6L5j2ztDQM3xk+VM7tq56ykP31MkVH5 h1lA== 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 a12si1749580pgk.291.2019.01.28.23.06.38; Mon, 28 Jan 2019 23:06:54 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725825AbfA2HG2 (ORCPT + 99 others); Tue, 29 Jan 2019 02:06:28 -0500 Received: from mga01.intel.com ([192.55.52.88]:44929 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbfA2HG2 (ORCPT ); Tue, 29 Jan 2019 02:06:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2019 23:06:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,536,1539673200"; d="scan'208";a="129738090" Received: from vmm.bj.intel.com ([10.240.192.123]) by orsmga002.jf.intel.com with ESMTP; 28 Jan 2019 23:06:24 -0800 From: Luwei Kang To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, songliubraving@fb.com, pbonzini@redhat.com, rkrcmar@redhat.com, peterz@infradead.org, zsm@chromium.org, alexander.shishkin@linux.intel.com, konrad.wilk@oracle.com, ak@linux.intel.com, Luwei Kang Subject: [PATCH 0/3] Inject a PMI for KVM Guest when ToPA buffer is filled Date: Sat, 19 Jan 2019 15:04:41 -0500 Message-Id: <1547928284-2915-1-git-send-email-luwei.kang@intel.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Each intel processor trace table of physical addresses (ToPA) entry has an INT bit. If this bit is set, the processor will signal a performance-monitoring interrupt (PMI) when the corresponding trace output region is filled. This patch set will inject a PMI for Intel Processor Trace when ToPA buffer is filled. Luwei Kang (3): perf/x86/intel/pt: Move pt structure to global header perf/x86/intel/pt: Inject PMI for KVM guest KVM: x86: Add support of clear Trace_ToPA_PMI status arch/x86/events/intel/pt.c | 12 +++++++++++- arch/x86/events/intel/pt.h | 38 ------------------------------------- arch/x86/include/asm/intel_pt.h | 41 ++++++++++++++++++++++++++++++++++++++++ arch/x86/include/asm/kvm_host.h | 1 + arch/x86/include/asm/msr-index.h | 8 ++++++++ arch/x86/kvm/vmx/pmu_intel.c | 8 +++++++- arch/x86/kvm/x86.h | 6 ++++++ 7 files changed, 74 insertions(+), 40 deletions(-) -- 1.8.3.1