diff options
author | Peter Xu <peterx@redhat.com> | 2021-07-30 18:06:05 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-08-04 05:55:56 -0400 |
commit | a75b540451d20ef1aebaa09d183ddc5c44c6f86a (patch) | |
tree | 360879500a6da4239f9f03dcfb6ef70a5834b1b3 /tools/perf/scripts/python | |
parent | 13236e25ebab91b3e42ddedf5354b569ace1b555 (diff) |
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