lkml.org 
[lkml]   [2022]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 10/19] KVM: x86/sev: Remove unused "kvm" of sev_unbind_asid()
Date
From: Jinrong Liang <cloudliang@tencent.com>

The "struct kvm *kvm" parameter of sev_unbind_asid() is not used,
so remove it. No functional change intended.

Signed-off-by: Jinrong Liang <cloudliang@tencent.com>
---
arch/x86/kvm/svm/sev.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c
index eae234afe04e..0727ac7221d7 100644
--- a/arch/x86/kvm/svm/sev.c
+++ b/arch/x86/kvm/svm/sev.c
@@ -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, &params, 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,
&params, 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);
}

--
2.33.1
\
 
 \ /
  Last update: 2022-01-25 11:11    [W:0.114 / U:0.560 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site