int cpu;
@@ -1084,6 +1095,16 @@ static __init int svm_hardware_setup(void)
kvm_tsc_scaling_ratio_frac_bits = 32;
}
+ if (sev) {
+ if (boot_cpu_has(X86_FEATURE_SEV) &&
+ IS_ENABLED(CONFIG_KVM_AMD_SEV)) {
+ sev_hardware_setup();
+ pr_info("SEV supported\n");
+ } else {
+ sev = false;
+ }
+ }
Btw, upon a second look, this hunk should go with the previous patch.
This patch deals with ASID ranges, as the commit message states.