aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-11-09 21:51:00 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2021-11-18 02:10:27 -0500
commitea410ef4dad6282420bde00e1ffca874344f0e95 (patch)
tree4f3d3fd363673159edfadda88c79c067bbe34964 /arch/x86
parentKVM: SEV: WARN if SEV-ES is marked active but SEV is not (diff)
downloadlinux-dev-ea410ef4dad6282420bde00e1ffca874344f0e95.tar.xz
linux-dev-ea410ef4dad6282420bde00e1ffca874344f0e95.zip
KVM: SEV: Drop a redundant setting of sev->asid during initialization
Remove a fully redundant write to sev->asid during SEV/SEV-ES guest initialization. The ASID is set a few lines earlier prior to the call to sev_platform_init(), which doesn't take "sev" as a param, i.e. can't muck with the ASID barring some truly magical behind-the-scenes code. No functional change intended. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20211109215101.2211373-6-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/svm/sev.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c
index 50b9d76e9137..80692435ac3d 100644
--- a/arch/x86/kvm/svm/sev.c
+++ b/arch/x86/kvm/svm/sev.c
@@ -249,7 +249,6 @@ static int sev_guest_init(struct kvm *kvm, struct kvm_sev_cmd *argp)
if (ret)
goto e_free;
- sev->asid = asid;
INIT_LIST_HEAD(&sev->regions_list);
return 0;