diff options
| author | Like Xu <[email protected]> | 2022-03-29 23:50:52 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-04-13 13:37:44 -0400 |
| commit | 8f969c0c3443183972ac7311d2bd656806082579 (patch) | |
| tree | e7457b30c3e0ab944bc31a50cfea800a496458d3 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | fdc298da866165ec0288fe227982f1aa0467bf5c (diff) | |
KVM: x86: Copy kvm_pmu_ops by value to eliminate layer of indirection
Replace the kvm_pmu_ops pointer in common x86 with an instance of the
struct to save one pointer dereference when invoking functions. Copy the
struct by value to set the ops during kvm_init().
Signed-off-by: Like Xu <[email protected]>
[sean: Move pmc_is_enabled(), make kvm_pmu_ops static]
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions