]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Explicitly check max SEV ASID during sev_hardware_setup()
authorSean Christopherson <seanjc@google.com>
Thu, 22 Apr 2021 02:11:21 +0000 (19:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Apr 2021 09:27:16 +0000 (05:27 -0400)
commitbca63237ee208fc914df8c680ac69fcdc631c3b9
treecbde5e7f3a11b814ff8e7052f819089e36679389
parent53cf5ee85573fb652bcf96fd0e903366b7d90311
KVM: SVM: Explicitly check max SEV ASID during sev_hardware_setup()

Query max_sev_asid directly after setting it instead of bouncing through
its wrapper, svm_sev_enabled().  Using the wrapper is unnecessary
obfuscation.

No functional change intended.

Reviewed by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210422021125.3417167-12-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c