diff options
| author | Ben Gardon <bgardon@google.com> | 2021-04-01 16:37:36 -0700 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-19 18:04:45 -0400 |
| commit | 4c6654bd160dbf4503b360ef8eed80b99eb1b8d9 (patch) | |
| tree | aabe3986f40b49d94e88553b85d4cb00f8012937 /tools/perf/scripts/python/flamegraph.py | |
| parent | KVM: x86/mmu: Fast invalidation for TDP MMU (diff) | |
| download | linux-4c6654bd160dbf4503b360ef8eed80b99eb1b8d9.tar.gz linux-4c6654bd160dbf4503b360ef8eed80b99eb1b8d9.zip | |
KVM: x86/mmu: Tear down roots before kvm_mmu_zap_all_fast returns
To avoid saddling a vCPU thread with the work of tearing down an entire
paging structure, take a reference on each root before they become
obsolete, so that the thread initiating the fast invalidation can tear
down the paging structure and (most likely) release the last reference.
As a bonus, this teardown can happen under the MMU lock in read mode so
as not to block the progress of vCPU threads.
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210401233736.638171-14-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
