linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: x86: Fix Intel PT Host/Guest mode when host tracing also
@ 2024-09-06 13:00 Adrian Hunter
  2024-09-06 13:00 ` [PATCH 1/3] KVM: x86: Fix Intel PT IA32_RTIT_CTL MSR validation Adrian Hunter
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Adrian Hunter @ 2024-09-06 13:00 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini, Peter Zijlstra
  Cc: Zhenyu Wang, kvm, Shuah Khan, linux-kselftest, Ingo Molnar,
	Thomas Gleixner, Borislav Petkov, Dave Hansen, x86, H Peter Anvin,
	Mark Rutland, Alexander Shishkin, Arnaldo Carvalho de Melo,
	Jiri Olsa, Namhyung Kim, Ian Rogers, Kan Liang, linux-kernel,
	linux-perf-users

Hi

There is a long-standing problem whereby running Intel PT on host and guest
in Host/Guest mode, causes VM-Entry failure.

The motivation for this patch set is to provide a fix for stable kernels
prior to the advent of the "Mediated Passthrough vPMU" patch set:

	https://lore.kernel.org/kvm/20240801045907.4010984-1-mizhang@google.com/

which would render a large part of the fix unnecessary but likely not be
suitable for backport to stable due to its size and complexity.

Ideally, this patch set would be applied before "Mediated Passthrough vPMU"

Note that the fix does not conflict with "Mediated Passthrough vPMU", it
is just that "Mediated Passthrough vPMU" will make the code to stop and
restart Intel PT unnecessary.


Adrian Hunter (3):
      KVM: x86: Fix Intel PT IA32_RTIT_CTL MSR validation
      KVM: x86: Fix Intel PT Host/Guest mode when host tracing also
      KVM: selftests: Add guest Intel PT test

 arch/x86/events/intel/pt.c                         | 131 ++++++-
 arch/x86/events/intel/pt.h                         |  10 +
 arch/x86/include/asm/intel_pt.h                    |   4 +
 arch/x86/kvm/vmx/vmx.c                             |  26 +-
 arch/x86/kvm/vmx/vmx.h                             |   1 -
 tools/testing/selftests/kvm/Makefile               |   1 +
 .../selftests/kvm/include/x86_64/processor.h       |   1 +
 tools/testing/selftests/kvm/x86_64/intel_pt.c      | 381 +++++++++++++++++++++
 8 files changed, 532 insertions(+), 23 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86_64/intel_pt.c

base-commit: d45aab436cf06544abeeffc607110f559a3af3b4


Regards
Adrian

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

end of thread, other threads:[~2024-10-04 17:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 13:00 [PATCH 0/3] KVM: x86: Fix Intel PT Host/Guest mode when host tracing also Adrian Hunter
2024-09-06 13:00 ` [PATCH 1/3] KVM: x86: Fix Intel PT IA32_RTIT_CTL MSR validation Adrian Hunter
2024-09-06 13:00 ` [PATCH 2/3] KVM: x86: Fix Intel PT Host/Guest mode when host tracing also Adrian Hunter
2024-09-06 13:00 ` [PATCH 3/3] KVM: selftests: Add guest Intel PT test Adrian Hunter
2024-09-10  6:02 ` [PATCH 0/3] KVM: x86: Fix Intel PT Host/Guest mode when host tracing also Zhenyu Wang
2024-09-26 14:05 ` Adrian Hunter
2024-10-04 16:59   ` Adrian Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).