Commit c1a81f3b authored by Michal Luczaj's avatar Michal Luczaj Committed by Paolo Bonzini

KVM: x86: Remove unused argument in gpc_unmap_khva()

Remove the unused @kvm argument from gpc_unmap_khva().
Signed-off-by: default avatarMichal Luczaj <mhal@rbox.co>
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent aba3caef
...@@ -98,7 +98,7 @@ bool kvm_gpc_check(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa, ...@@ -98,7 +98,7 @@ bool kvm_gpc_check(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa,
} }
EXPORT_SYMBOL_GPL(kvm_gpc_check); EXPORT_SYMBOL_GPL(kvm_gpc_check);
static void gpc_unmap_khva(struct kvm *kvm, kvm_pfn_t pfn, void *khva) static void gpc_unmap_khva(kvm_pfn_t pfn, void *khva)
{ {
/* Unmap the old pfn/page if it was mapped before. */ /* Unmap the old pfn/page if it was mapped before. */
if (!is_error_noslot_pfn(pfn) && khva) { if (!is_error_noslot_pfn(pfn) && khva) {
...@@ -177,7 +177,7 @@ static kvm_pfn_t hva_to_pfn_retry(struct kvm *kvm, struct gfn_to_pfn_cache *gpc) ...@@ -177,7 +177,7 @@ static kvm_pfn_t hva_to_pfn_retry(struct kvm *kvm, struct gfn_to_pfn_cache *gpc)
* the existing mapping and didn't create a new one. * the existing mapping and didn't create a new one.
*/ */
if (new_khva != old_khva) if (new_khva != old_khva)
gpc_unmap_khva(kvm, new_pfn, new_khva); gpc_unmap_khva(new_pfn, new_khva);
kvm_release_pfn_clean(new_pfn); kvm_release_pfn_clean(new_pfn);
...@@ -329,7 +329,7 @@ int kvm_gpc_refresh(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa, ...@@ -329,7 +329,7 @@ int kvm_gpc_refresh(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa,
mutex_unlock(&gpc->refresh_lock); mutex_unlock(&gpc->refresh_lock);
if (unmap_old) if (unmap_old)
gpc_unmap_khva(kvm, old_pfn, old_khva); gpc_unmap_khva(old_pfn, old_khva);
return ret; return ret;
} }
...@@ -358,7 +358,7 @@ void kvm_gpc_unmap(struct kvm *kvm, struct gfn_to_pfn_cache *gpc) ...@@ -358,7 +358,7 @@ void kvm_gpc_unmap(struct kvm *kvm, struct gfn_to_pfn_cache *gpc)
write_unlock_irq(&gpc->lock); write_unlock_irq(&gpc->lock);
mutex_unlock(&gpc->refresh_lock); mutex_unlock(&gpc->refresh_lock);
gpc_unmap_khva(kvm, old_pfn, old_khva); gpc_unmap_khva(old_pfn, old_khva);
} }
EXPORT_SYMBOL_GPL(kvm_gpc_unmap); EXPORT_SYMBOL_GPL(kvm_gpc_unmap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment