diff options
| author | David Matlack <[email protected]> | 2022-06-22 15:26:57 -0400 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-24 04:51:56 -0400 |
| commit | 2f8b1b539be37f6bbc4827dfe3320935976fefa4 (patch) | |
| tree | de2b6a55eee4081e0f48dd8e88ef8a2750afc1c5 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | be911771330a2ae0938d452fd89a8df085533134 (diff) | |
KVM: x86/mmu: Pass memory caches to allocate SPs separately
Refactor kvm_mmu_alloc_shadow_page() to receive the caches from which it
will allocate the various pieces of memory for shadow pages as a
parameter, rather than deriving them from the vcpu pointer. This will be
useful in a future commit where shadow pages are allocated during VM
ioctls for eager page splitting, and thus will use a different set of
caches.
Preemptively pull the caches out all the way to
kvm_mmu_get_shadow_page() since eager page splitting will not be calling
kvm_mmu_alloc_shadow_page() directly.
No functional change intended.
Signed-off-by: David Matlack <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions