diff options
| author | Paolo Bonzini <[email protected]> | 2020-03-23 20:42:57 -0400 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-04-20 17:25:55 -0400 |
| commit | 5efac0741ce238e0844d3f7af00198f81e84926a (patch) | |
| tree | a5578f17278650aec112656d4cb7bd8ff3de8d95 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 53b3d8e9d57753295b33065f80b1e2fb4fcb946d (diff) | |
KVM: x86: introduce kvm_mmu_invalidate_gva
Wrap the combination of mmu->invlpg and kvm_x86_ops->tlb_flush_gva
into a new function. This function also lets us specify the host PGD to
invalidate and also the MMU, both of which will be useful in fixing and
simplifying kvm_inject_emulated_page_fault.
A nested guest's MMU however has g_context->invlpg == NULL. Instead of
setting it to nonpaging_invlpg, make kvm_mmu_invalidate_gva the only
entry point to mmu->invlpg and make a NULL invlpg pointer equivalent
to nonpaging_invlpg, saving a retpoline.
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