diff options
author | Xiao Guangrong | 2012-07-17 15:56:16 +0200 |
---|---|---|
committer | Marcelo Tosatti | 2012-07-20 02:25:24 +0200 |
commit | d566104853361cc377c61f70e41c1ad3d44b86c6 (patch) | |
tree | 6b77f5e4f299bfb0d6c3fa7b3768e7299539f8af /arch/x86/kvm/mmu.c | |
parent | KVM: remove is_error_hpa (diff) | |
download | kernel-qcow2-linux-d566104853361cc377c61f70e41c1ad3d44b86c6.tar.gz kernel-qcow2-linux-d566104853361cc377c61f70e41c1ad3d44b86c6.tar.xz kernel-qcow2-linux-d566104853361cc377c61f70e41c1ad3d44b86c6.zip |
KVM: remove the unused parameter of gfn_to_pfn_memslot
The parameter, 'kvm', is not used in gfn_to_pfn_memslot, we can happily remove
it
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index f85cc21ae95d..4f77f7ac6d25 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2518,7 +2518,7 @@ static pfn_t pte_prefetch_gfn_to_pfn(struct kvm_vcpu *vcpu, gfn_t gfn, hva = gfn_to_hva_memslot(slot, gfn); - return hva_to_pfn_atomic(vcpu->kvm, hva); + return hva_to_pfn_atomic(hva); } static int direct_pte_prefetch_many(struct kvm_vcpu *vcpu, |