|
@@ -2091,14 +2091,14 @@ void x86_cpu_realize(Object *obj, Error **errp)
|
|
env->cpuid_ext3_features &= TCG_EXT3_FEATURES;
|
|
env->cpuid_ext3_features &= TCG_EXT3_FEATURES;
|
|
env->cpuid_svm_features &= TCG_SVM_FEATURES;
|
|
env->cpuid_svm_features &= TCG_SVM_FEATURES;
|
|
} else {
|
|
} else {
|
|
-#ifdef CONFIG_KVM
|
|
|
|
- filter_features_for_kvm(cpu);
|
|
|
|
-#endif
|
|
|
|
if (check_cpuid && kvm_check_features_against_host(cpu)
|
|
if (check_cpuid && kvm_check_features_against_host(cpu)
|
|
&& enforce_cpuid) {
|
|
&& enforce_cpuid) {
|
|
error_setg(errp, "Host's CPU doesn't support requested features");
|
|
error_setg(errp, "Host's CPU doesn't support requested features");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+#ifdef CONFIG_KVM
|
|
|
|
+ filter_features_for_kvm(cpu);
|
|
|
|
+#endif
|
|
}
|
|
}
|
|
|
|
|
|
#ifndef CONFIG_USER_ONLY
|
|
#ifndef CONFIG_USER_ONLY
|