Re: [Part2 PATCH v7 23/38] KVM: SVM: Reserve ASID range for SEV guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux