Enable LBR for the guest
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 24 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM/vmx: re-write the msr auto switch featurearch/ | +63 | 5 replies | |
| 1/4 | KVM/vmx: re-write the msr auto switch featurearch/ | +63 | 0 replies | |
| 2/4 | KVM/vmx: auto switch MSR_IA32_DEBUGCTLMSRarch/ | +4 | 2 replies | |
| 3/4 | perf/x86: add a function to get the lbr stackarch/ arch/ | +37 | 0 replies | |
| 3/4 | perf/x86: add a function to get the lbr stackarch/ arch/ | +37 | 0 replies | |
| 4/4 | KVM/vmx: enable lbr for the guestarch/ | +50 | 11 replies | |
| 4/4 | KVM/vmx: enable lbr for the guestarch/ | +50 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [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(-)
Signature · 1 line
2.7.4