aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2019-02-05 13:01:37 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-02-20 22:48:49 +0100
commit8ab3c471eef20925bf64c6d4fa46e88cdb4e86d5 (patch)
tree45347f67e38f133ed4caa13824c2f8011049b72c /virt
parentKVM: x86/mmu: WARN if zapping a MMIO spte results in zapping children (diff)
downloadlinux-stable-8ab3c471eef20925bf64c6d4fa46e88cdb4e86d5.tar.xz
linux-stable-8ab3c471eef20925bf64c6d4fa46e88cdb4e86d5.zip
KVM: x86/mmu: Consolidate kvm_mmu_zap_all() and kvm_mmu_zap_mmio_sptes()
...via a new helper, __kvm_mmu_zap_all(). An alternative to passing a 'bool mmio_only' would be to pass a callback function to filter the shadow page, i.e. to make __kvm_mmu_zap_all() generic and reusable, but zapping all shadow pages is a last resort, i.e. making the helper less extensible is a feature of sorts. And the explicit MMIO parameter makes it easy to preserve the WARN_ON_ONCE() if a restart is triggered when zapping MMIO sptes. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions