KVM: export __gfn_to_pfn_memslot, drop gfn_to_pfn_async
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Apr 2015 09:20:48 +0000 (11:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 May 2015 18:52:45 +0000 (20:52 +0200)
gfn_to_pfn_async is used in just one place, and because of x86-specific
treatment that place will need to look at the memory slot.  Hence inline
it into try_async_pf and export __gfn_to_pfn_memslot.

The patch also switches the subsequent call to gfn_to_pfn_prot to use
__gfn_to_pfn_memslot.  This is a small optimization.  Finally, remove
the now-unused async argument of __gfn_to_pfn.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c

Simple merge
Simple merge
Simple merge