@@ -217,7 +217,7 @@ static void sev_decommission(unsigned int handle)
sev_guest_decommission(&decommission, NULL);
}
-static void sev_unbind_asid(struct kvm *kvm, unsigned int handle)
+static void sev_unbind_asid(unsigned int handle)
{
struct sev_data_deactivate deactivate;
@@ -363,7 +363,7 @@ static int sev_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp)
/* return handle to userspace */
params.handle = start.handle;
if (copy_to_user((void __user *)(uintptr_t)argp->data, ¶ms, sizeof(params))) {
- sev_unbind_asid(kvm, start.handle);
+ sev_unbind_asid(start.handle);
ret = -EFAULT;
goto e_free_session;
}
@@ -1426,7 +1426,7 @@ static int sev_receive_start(struct kvm *kvm, struct kvm_sev_cmd *argp)
if (copy_to_user((void __user *)(uintptr_t)argp->data,
¶ms, sizeof(struct kvm_sev_receive_start))) {
ret = -EFAULT;
- sev_unbind_asid(kvm, start.handle);
+ sev_unbind_asid(start.handle);
goto e_free_session;
}
@@ -2078,7 +2078,7 @@ void sev_vm_destroy(struct kvm *kvm)
}
}
- sev_unbind_asid(kvm, sev->handle);
+ sev_unbind_asid(sev->handle);
sev_asid_free(sev);
}