diff options
author | Peter Xu <peterx@redhat.com> | 2021-07-31 01:06:05 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-08-04 12:55:56 +0300 |
commit | a75b540451d20ef1aebaa09d183ddc5c44c6f86a (patch) | |
tree | 360879500a6da4239f9f03dcfb6ef70a5834b1b3 /tools/perf/scripts/python | |
parent | 13236e25ebab91b3e42ddedf5354b569ace1b555 (diff) | |
download | linux-a75b540451d20ef1aebaa09d183ddc5c44c6f86a.tar.xz |
KVM: X86: Optimize zapping rmap
Using rmap_get_first() and rmap_remove() for zapping a huge rmap list could be
slow. The easy way is to travers the rmap list, collecting the a/d bits and
free the slots along the way.
Provide a pte_list_destroy() and do exactly that.
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20210730220605.26377-1-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions