KVM in-guest performance monitoring
Status from this message: Queued them, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 45 repliesApplied
- v15 patches 34 repliesSuperseded
Changes in v2 from the cover letter
- don't pass perf_event handler context to the callback; extract it via the 'event' parameter instead
- RDPMC emulation and interception
- CR4.PCE emulation
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | perf: add context field to perf_eventarch/ arch/ arch/ +9 more | +44 | 0 replies | |
| 2/11 | x86, perf: add constraints for architectural PMU v1arch/ | +18 | 0 replies | |
| 3/11 | perf: export perf_event_refresh() to modulesinclude/ kernel/ | +7 | 0 replies | |
| 4/11 | KVM: Expose kvm_lapic_local_deliver()arch/ arch/ | +2 | 0 replies | |
| 5/11 | KVM: Expose a version 1 architectural PMU to guestsarch/ arch/ arch/ +1 more | +293 | 6 replies | |
| 6/11 | KVM: Add generic RDPMC supportarch/ arch/ | +16 | 0 replies | |
| 7/11 | KVM: SVM: Intercept RDPMCarch/ | +15 | 0 replies | |
| 8/11 | KVM: VMX: Intercept RDPMCarch/ | +14 | 7 replies | |
| 9/11 | KVM: Expose the architectural performance monitoring CPUID leafarch/ | +19 | 0 replies | |
| 10/11 | KVM: x86 emulator: fix RDPMC privilege checkarch/ | +1 | 0 replies | |
| 11/11 | KVM: x86 emulator: implement RDPMC (0F 33)arch/ arch/ arch/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/11] KVM in-guest performance monitoring
This patchset exposes an emulated version 1 architectural performance monitoring unit to KVM guests. The PMU is emulated using perf_events, so the host kernel can multiplex host-wide, host-user, and the guest on available resources.
Caveats:
- counters that have PMI (interrupt) enabled stop counting after the interrupt is signalled. This is because we need one-shot samples that keep counting, which perf doesn't support yet
- some combinations of INV and CMASK are not supported
- counters keep on counting in the host as well as the guest
perf maintainers: please consider the first three patches for merging (the first two make sense even without the rest). If you're familiar with the Intel PMU, please review patch 5 as well - it effectively undoes all your work of abstracting the PMU into perf_events by unabstracting perf_events into what is hoped is a very similar PMU.
v2:
- don't pass perf_event handler context to the callback; extract it via the 'event' parameter instead
- RDPMC emulation and interception
- CR4.PCE emulation