KVM: SVM: Update ASID allocation to support SEV-ES guests
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:10:05 +0000 (11:10 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 10:20:57 +0000 (05:20 -0500)
commit80675b3ad45f79d97ce47a0faac3a6d22ab7e876
tree6ae9ead1dc8683dfc252a077e8cbfa64cc5a4e17
parent85ca8be938c0e693b5ed5392279d5ecedf42901e
KVM: SVM: Update ASID allocation to support SEV-ES guests

SEV and SEV-ES guests each have dedicated ASID ranges. Update the ASID
allocation routine to return an ASID in the respective range.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <d7aed505e31e3954268b2015bb60a1486269c780.1607620209.git.thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c