diff options
| author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-09-23 11:37:29 -0700 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-28 07:57:39 -0400 |
| commit | 7d919c7a38fb2e34d4d27e535f19979e1b415f68 (patch) | |
| tree | f441addd524e3f366d8d7725fdba802d32983e16 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | KVM: x86/mmu: Commit zap of remaining invalid pages when recovering lpages (diff) | |
| download | linux-7d919c7a38fb2e34d4d27e535f19979e1b415f68.tar.gz linux-7d919c7a38fb2e34d4d27e535f19979e1b415f68.zip | |
KVM: x86/mmu: Refactor the zap loop for recovering NX lpages
Refactor the zap loop in kvm_recover_nx_lpages() to be a for loop that
iterates on to_zap and drop the !to_zap check that leads to the in-loop
calling of kvm_mmu_commit_zap_page(). The in-loop commit when to_zap
hits zero is superfluous now that there's an unconditional commit after
the loop to handle the case where lpage_disallowed_mmu_pages is emptied.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200923183735.584-3-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
