aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-30 09:39:59 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-03 12:38:39 -0500
commitdee734a7de9169018b8108208587d3ff1fdfff18 (patch)
tree678b46702600f994436adc1ddb09431aaa9a43cb
parentKVM: nSVM: set fixed bits by hand (diff)
downloadlinux-dev-dee734a7de9169018b8108208587d3ff1fdfff18.tar.xz
linux-dev-dee734a7de9169018b8108208587d3ff1fdfff18.zip
KVM: x86: adjust SEV for commit 7e8e6eed75e
Since the ASID is now stored in svm->asid, pre_sev_run should also place it there and not directly in the VMCB control area. Reported-by: Ashish Kalra <Ashish.Kalra@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/svm/sev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c
index c0b14106258a..3418bb18dae7 100644
--- a/arch/x86/kvm/svm/sev.c
+++ b/arch/x86/kvm/svm/sev.c
@@ -1187,7 +1187,7 @@ void pre_sev_run(struct vcpu_svm *svm, int cpu)
int asid = sev_get_asid(svm->vcpu.kvm);
/* Assign the asid allocated with this SEV guest */
- svm->vmcb->control.asid = asid;
+ svm->asid = asid;
/*
* Flush guest TLB: