KVM: x86: MMU: Remove unused parameter of __direct_map()
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 20 Nov 2015 08:42:23 +0000 (17:42 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Nov 2015 16:26:03 +0000 (17:26 +0100)
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c

index d9a6801457aa57176a400a6028c1971399519a6e..8a1593f985dfd0a26f8770cec8d414b943a11b44 100644 (file)
@@ -2708,9 +2708,8 @@ static void direct_pte_prefetch(struct kvm_vcpu *vcpu, u64 *sptep)
        __direct_pte_prefetch(vcpu, sp, sptep);
 }
 
-static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write,
-                       int map_writable, int level, gfn_t gfn, pfn_t pfn,
-                       bool prefault)
+static int __direct_map(struct kvm_vcpu *vcpu, int write, int map_writable,
+                       int level, gfn_t gfn, pfn_t pfn, bool prefault)
 {
        struct kvm_shadow_walk_iterator iterator;
        struct kvm_mmu_page *sp;
@@ -3018,11 +3017,9 @@ static int nonpaging_map(struct kvm_vcpu *vcpu, gva_t v, u32 error_code,
        make_mmu_pages_available(vcpu);
        if (likely(!force_pt_level))
                transparent_hugepage_adjust(vcpu, &gfn, &pfn, &level);
-       r = __direct_map(vcpu, v, write, map_writable, level, gfn, pfn,
-                        prefault);
+       r = __direct_map(vcpu, write, map_writable, level, gfn, pfn, prefault);
        spin_unlock(&vcpu->kvm->mmu_lock);
 
-
        return r;
 
 out_unlock:
@@ -3531,8 +3528,7 @@ static int tdp_page_fault(struct kvm_vcpu *vcpu, gva_t gpa, u32 error_code,
        make_mmu_pages_available(vcpu);
        if (likely(!force_pt_level))
                transparent_hugepage_adjust(vcpu, &gfn, &pfn, &level);
-       r = __direct_map(vcpu, gpa, write, map_writable,
-                        level, gfn, pfn, prefault);
+       r = __direct_map(vcpu, write, map_writable, level, gfn, pfn, prefault);
        spin_unlock(&vcpu->kvm->mmu_lock);
 
        return r;