KVM: x86: reintroduce kvm_is_mmio_pfn
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jul 2015 13:03:18 +0000 (15:03 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Jul 2015 11:25:24 +0000 (13:25 +0200)
commitd1fe9219551e914f26219afaca1063b280f25963
treef8d2e9309f11a47dcdb76bbd93065bc52ddafb6e
parent5d75a747596be046546eeb9d6ba39a3af851a1af
KVM: x86: reintroduce kvm_is_mmio_pfn

The call to get_mt_mask was really using kvm_is_reserved_pfn to
detect an MMIO-backed page.  In this case, we want "false" to be
returned for the zero page.

Reintroduce a separate kvm_is_mmio_pfn predicate for this use
only.

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