On 11/06/2017 04:34 AM, Borislav Petkov wrote:
...

        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.



I will see if I can move the hunk in previous patch. thanks

Reply via email to