summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-05-19 11:04:49 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-05-27 19:08:29 +0200
commite7581caca4c105d81a490a3e15cf46d6407e3fa7 (patch)
tree8b8bcd58bfb769ea864dc6631b018674a76addf6 /arch/x86/kvm/mmu.h
parentKVM: x86: don't expose MSR_IA32_UMWAIT_CONTROL unconditionally (diff)
downloadlinux-e7581caca4c105d81a490a3e15cf46d6407e3fa7.tar.xz
linux-e7581caca4c105d81a490a3e15cf46d6407e3fa7.zip
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>
Diffstat (limited to 'arch/x86/kvm/mmu.h')
-rw-r--r--arch/x86/kvm/mmu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h
index 8a3b1bce722a..048e865ad485 100644
--- a/arch/x86/kvm/mmu.h
+++ b/arch/x86/kvm/mmu.h
@@ -51,7 +51,7 @@ static inline u64 rsvd_bits(int s, int e)
return ((1ULL << (e - s + 1)) - 1) << s;
}
-void kvm_mmu_set_mmio_spte_mask(u64 mmio_mask, u64 mmio_value, u64 access_mask);
+void kvm_mmu_set_mmio_spte_mask(u64 mmio_value, u64 access_mask);
void
reset_shadow_zero_bits_mask(struct kvm_vcpu *vcpu, struct kvm_mmu *context);