diff options
author | Michal Luczaj <mhal@rbox.co> | 2023-01-07 03:12:52 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-02-04 02:30:17 +0300 |
commit | 708f799d22fe6b69d2e6e3e0625c30666d5e798a (patch) | |
tree | d8c5d7356311c60c71776cd9fac0f42a05a6092c /tools/perf/scripts/python/flamegraph.py | |
parent | 95744a90db18437410aa94620b8a330311bd9cf6 (diff) | |
download | linux-708f799d22fe6b69d2e6e3e0625c30666d5e798a.tar.xz |
KVM: x86: Optimize kvm->lock and SRCU interaction (KVM_X86_SET_MSR_FILTER)
Reduce time spent holding kvm->lock: unlock mutex before calling
synchronize_srcu(). There is no need to hold kvm->lock until all vCPUs
have been kicked, KVM only needs to guarantee that all vCPUs will switch
to the new filter before exiting to userspace.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://lore.kernel.org/r/20230107001256.2365304-3-mhal@rbox.co
[sean: expand changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions