target-i386: warns users when CPU threads>1 for non-Intel CPUs
commite48638fdb31bb79de964cd8bbd4621648f5d38c6
authorWei Huang <wei@redhat.com>
Tue, 21 Oct 2014 15:00:45 +0000 (21 11:00 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Oct 2014 14:41:26 +0000 (23 16:41 +0200)
tree2c2c6c51da0eae5718ff3ed59ba1daf985e6a8a7
parentb5917219090d14065196fc2dca15562e13c23a26
target-i386: warns users when CPU threads>1 for non-Intel CPUs

Only Intel CPUs support hyperthreading. When users select threads>1 in
-smp option, QEMU fixes it by adjusting CPUID_0000_0001_EBX and
CPUID_8000_0008_ECX based on inputs (sockets, cores, threads);
so guest VM can boot correctly. However it is still better to gives
users a warning when such case happens.

Signed-off-by: Wei Huang <wei@redhat.com>
[As suggested by Eduardo, check for !IS_INTEL instead of AMD. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/cpu.c