Skip to content
Commit 6d58f275 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86/mmu: clear MMIO cache when unloading the MMU



For cleanliness, do not leave a stale GVA in the cache after all the roots are
cleared.  In practice, kvm_mmu_load will go through kvm_mmu_sync_roots if
paging is on, and will not use vcpu_match_mmio_gva at all if paging is off.
However, leaving data in the cache might cause bugs in the future.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent d2e5f333
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment