[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1506314696-4632-1-git-send-email-wei.w.wang@intel.com>
Date: Mon, 25 Sep 2017 12:44:52 +0800
From: Wei Wang <wei.w.wang@...el.com>
To: virtualization@...ts.linux-foundation.org, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, pbonzini@...hat.com, mst@...hat.com,
rkrcmar@...hat.com, ak@...ux.intel.com, mingo@...hat.com
Cc: Wei Wang <wei.w.wang@...el.com>
Subject: [PATCH v1 0/4] Enable LBR for the guest
This patch series enables the Last Branch Recording feature for the
guest. Instead of trapping each LBR stack MSR access, the MSRs are
passthroughed to the guest. Those MSRs are switched (i.e. load and
saved) on VMExit and VMEntry.
Test:
Try "perf record -b ./test_program" on guest.
Wei Wang (4):
KVM/vmx: re-write the msr auto switch feature
KVM/vmx: auto switch MSR_IA32_DEBUGCTLMSR
perf/x86: add a function to get the lbr stack
KVM/vmx: enable lbr for the guest
arch/x86/events/intel/lbr.c | 23 +++++++
arch/x86/include/asm/perf_event.h | 14 ++++
arch/x86/kvm/vmx.c | 135 +++++++++++++++++++++++++++++++++-----
3 files changed, 154 insertions(+), 18 deletions(-)
--
2.7.4
Powered by blists - more mailing lists