On Thu, May 17, 2012 at 01:26:55PM -0300, Eduardo Habkost wrote: [...] > @@ -521,6 +523,12 @@ static int cpu_x86_fill_host(x86_def_t *x86_cpu_def) > x86_cpu_def->ext_features = ecx; > x86_cpu_def->features = edx; > > + if (x86_cpu_def->level >= 7) { > + x86_cpu_def->cpuid_7_0_ebx_features = kvm_arch_get_supported_cpuid(kvm_state, 0x7, 0, R_EBX); This needs a check for kvm_enabled(). The code for "-cpu host" checks for kvm_enabled() before calling cpu_x86_fill_host() already, but "-cpu enforce" uses cpu_x86_fill_host() and doesn't check for kvm_enabled() (that doesn't make much sense, but I won't try to fix 2 bugs in the same patch). I will send v3. Thanks to Gleb Natapov for catching it. -- Eduardo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html