Alexander Graf wrote:
When using nested SVM we usually want the guest to see the exact CPUID values
we gave it and not some mangled ones.
That would triggered by -cpu host, not nesting.
@@ -1506,7 +1506,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
*edx = env->cpuid_features;
/* "Hypervisor present" bit required for Microsoft SVVP */
- if (kvm_enabled())
+ if (kvm_enabled() && !kvm_nested)
*ecx |= (1 << 31);
break;
-cpu host,-hypervisor
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
--
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