OSDN Git Service

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)
commit3520469d65f26a1cd2f610f5d5de976f78db74fe
tree2b3ab1f42a0168b238662fd9252e94a269acc550
parent69a1220060c1523fd0515216eaa29e22f133b894
KVM: export __gfn_to_pfn_memslot, drop gfn_to_pfn_async

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