diff options
author | Like Xu <[email protected]> | 2023-05-17 21:38:08 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2023-05-23 10:01:13 +0200 |
commit | 3c845304d2d723f20d5b91fef5d133ff94825d76 (patch) | |
tree | 44731b323d24d640f73f973b264d813446c5ee5a /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 44c026a73be8038f03dbdeef028b642880cf1511 (diff) |
perf/x86/intel: Save/restore cpuc->active_pebs_data_cfg when using guest PEBS
After commit b752ea0c28e3 ("perf/x86/intel/ds: Flush PEBS DS when changing
PEBS_DATA_CFG"), the cpuc->pebs_data_cfg may save some bits that are not
supported by real hardware, such as PEBS_UPDATE_DS_SW. This would cause
the VMX hardware MSR switching mechanism to save/restore invalid values
for PEBS_DATA_CFG MSR, thus crashing the host when PEBS is used for guest.
Fix it by using the active host value from cpuc->active_pebs_data_cfg.
Fixes: b752ea0c28e3 ("perf/x86/intel/ds: Flush PEBS DS when changing PEBS_DATA_CFG")
Signed-off-by: Like Xu <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Kan Liang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions