KVM: SVM: Remove the call to sev_platform_status() during setup
authorTom Lendacky <thomas.lendacky@amd.com>
Thu, 10 Dec 2020 17:09:37 +0000 (11:09 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Dec 2020 16:09:30 +0000 (11:09 -0500)
commit9d4747d02376aeb8de38afa25430de79129c5799
tree4a04bba141094a0e429e3c84e7384758d7dbc43a
parent69372cf01290b9587d2cee8fbe161d75d55c3adc
KVM: SVM: Remove the call to sev_platform_status() during setup

When both KVM support and the CCP driver are built into the kernel instead
of as modules, KVM initialization can happen before CCP initialization. As
a result, sev_platform_status() will return a failure when it is called
from sev_hardware_setup(), when this isn't really an error condition.

Since sev_platform_status() doesn't need to be called at this time anyway,
remove the invocation from sev_hardware_setup().

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <618380488358b56af558f2682203786f09a49483.1607620209.git.thomas.lendacky@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c