@@ -98,7 +98,7 @@ bool kvm_gpc_check(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa,
98
98
}
99
99
EXPORT_SYMBOL_GPL (kvm_gpc_check );
100
100
101
- static void gpc_unmap_khva (struct kvm * kvm , kvm_pfn_t pfn , void * khva )
101
+ static void gpc_unmap_khva (kvm_pfn_t pfn , void * khva )
102
102
{
103
103
/* Unmap the old pfn/page if it was mapped before. */
104
104
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
177
* the existing mapping and didn't create a new one.
178
178
*/
179
179
if (new_khva != old_khva )
180
- gpc_unmap_khva (kvm , new_pfn , new_khva );
180
+ gpc_unmap_khva (new_pfn , new_khva );
181
181
182
182
kvm_release_pfn_clean (new_pfn );
183
183
@@ -329,7 +329,7 @@ int kvm_gpc_refresh(struct kvm *kvm, struct gfn_to_pfn_cache *gpc, gpa_t gpa,
329
329
mutex_unlock (& gpc -> refresh_lock );
330
330
331
331
if (unmap_old )
332
- gpc_unmap_khva (kvm , old_pfn , old_khva );
332
+ gpc_unmap_khva (old_pfn , old_khva );
333
333
334
334
return ret ;
335
335
}
@@ -358,7 +358,7 @@ void kvm_gpc_unmap(struct kvm *kvm, struct gfn_to_pfn_cache *gpc)
358
358
write_unlock_irq (& gpc -> lock );
359
359
mutex_unlock (& gpc -> refresh_lock );
360
360
361
- gpc_unmap_khva (kvm , old_pfn , old_khva );
361
+ gpc_unmap_khva (old_pfn , old_khva );
362
362
}
363
363
EXPORT_SYMBOL_GPL (kvm_gpc_unmap );
364
364
0 commit comments