diff options
author | Sean Christopherson <[email protected]> | 2024-04-04 08:13:11 -0400 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2024-04-11 13:08:21 -0400 |
commit | 1ff3c89032a8f241502a0ba8a95fe0133707a061 (patch) | |
tree | d851704af0edfa3f4c4d74083a24caabfdfe888e /arch/x86/kvm/svm/svm.c | |
parent | 9bc60f733839ab6fcdde0d0b15cbb486123e6402 (diff) |
KVM: SVM: Invert handling of SEV and SEV_ES feature flags
Leave SEV and SEV_ES '0' in kvm_cpu_caps by default, and instead set them
in sev_set_cpu_caps() if SEV and SEV-ES support are fully enabled. Aside
from the fact that sev_set_cpu_caps() is wildly misleading when it *clears*
capabilities, this will allow compiling out sev.c without falsely
advertising SEV/SEV-ES support in KVM_GET_SUPPORTED_CPUID.
Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: Michael Roth <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
0 files changed, 0 insertions, 0 deletions