static int has_svm(void)
{
	const char *msg;

	if (!cpu_has_svm(&msg)) {
		printk(KERN_INFO "has_svm: %s\n", msg);
		return 0;
	}

	if (sev_active()) {
		pr_info("KVM is unsupported when running as an SEV guest\n");
		return 0;
	}

	if (pgtable_l5_enabled()) {
		pr_info("KVM doesn't yet support 5-level paging on AMD SVM\n");
		return 0;
	}

	return 1;
}
static int has_svm(void)
{
	const char *msg;

	if (!cpu_has_svm(&msg)) {
		printk(KERN_INFO "has_svm: %s\n", msg);
		return 0;
	}

	if (sev_active()) {
		pr_info("KVM is unsupported when running as an SEV guest\n");
		return 0;
	}

	if (pgtable_l5_enabled()) {
		pr_info("KVM doesn't yet support 5-level paging on AMD SVM\n");
		return 0;
	}

	return 1;
}