]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: simplify is_mmio_spte
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2020 09:04:49 +0000 (05:04 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 May 2020 17:08:29 +0000 (13:08 -0400)
commit6020dd442a8dd8bef2332750a0b84ca7043937e9
tree8b8bcd58bfb769ea864dc6631b018674a76addf6
parent04feaafa93e2b8202bbfd6cda702d6c2ed6b9eb3
KVM: x86: simplify is_mmio_spte

We can simply look at bits 52-53 to identify MMIO entries in KVM's page
tables.  Therefore, there is no need to pass a mask to kvm_mmu_set_mmio_spte_mask.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c