diff options
| author | David Matlack <[email protected]> | 2021-09-24 05:05:26 -0400 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-10-01 03:44:53 -0400 |
| commit | e710c5f6be0eb36f8f2e98efbc02f1b31021c29d (patch) | |
| tree | 73f624c5ff275ba2a777cf7f7723e93d292d933a /scripts/gdb/linux/clk.py | |
| parent | 6ccf44388206e60bd0ba46d00f8570a0588d812e (diff) | |
KVM: x86/mmu: Pass the memslot around via struct kvm_page_fault
The memslot for the faulting gfn is used throughout the page fault
handling code, so capture it in kvm_page_fault as soon as we know the
gfn and use it in the page fault handling code that has direct access
to the kvm_page_fault struct. Replace various tests using is_noslot_pfn
with more direct tests on fault->slot being NULL.
This, in combination with the subsequent patch, improves "Populate
memory time" in dirty_log_perf_test by 5% when using the legacy MMU.
There is no discerable improvement to the performance of the TDP MMU.
No functional change intended.
Suggested-by: Ben Gardon <[email protected]>
Signed-off-by: David Matlack <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions