diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2019-02-05 13:01:37 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-20 22:48:49 +0100 |
commit | 8ab3c471eef20925bf64c6d4fa46e88cdb4e86d5 (patch) | |
tree | 45347f67e38f133ed4caa13824c2f8011049b72c /virt | |
parent | 24efe61f696c7b44a66c7d6a41c181b31aa338fc (diff) | |
download | lwn-8ab3c471eef20925bf64c6d4fa46e88cdb4e86d5.tar.gz lwn-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