Skip to content

Commit

Permalink
KVM: x86: adjust SEV for commit 7e8e6ee
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paolo Bonzini committed Dec 3, 2020
1 parent 8cce12b commit dee734a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/svm/sev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dee734a

Please sign in to comment.