mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Inject a PMI for KVM Guest when ToPA buffer is filled
@ 2019-02-19  0:26 Luwei Kang
  2019-02-19  0:26 ` [PATCH v2 1/2] KVM: x86: Inject PMI for KVM guest Luwei Kang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Luwei Kang @ 2019-02-19  0:26 UTC (permalink / raw)
  To: linux-kernel, kvm
  Cc: tglx, mingo, bp, hpa, x86, pbonzini, rkrcmar, peterz, acme,
	alexander.shishkin, jolsa, namhyung, kan.liang, ak, konrad.wilk,
	Janakarajan.Natarajan, mattst88, tim.c.chen, Luwei Kang

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.

>From v1:
 - Exported a global function pointers may not a good chioce.
   Add a new member in kvm_guest_cbs to send Intel PT PMI for KVM guest.

Luwei Kang (2):
  KVM: x86: Inject PMI for KVM guest
  KVM: x86: Add support of clear Trace_ToPA_PMI status

 arch/x86/events/intel/core.c     |  6 +++++-
 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.c               | 10 ++++++++++
 include/linux/perf_event.h       |  1 +
 6 files changed, 32 insertions(+), 2 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-02-22 17:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19  0:26 [PATCH v2 0/2] Inject a PMI for KVM Guest when ToPA buffer is filled Luwei Kang
2019-02-19  0:26 ` [PATCH v2 1/2] KVM: x86: Inject PMI for KVM guest Luwei Kang
2019-02-19  0:26 ` [PATCH v2 2/2] KVM: x86: Add support of clear Trace_ToPA_PMI status Luwei Kang
2019-02-22 17:24 ` [PATCH v2 0/2] Inject a PMI for KVM Guest when ToPA buffer is filled Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®