target/i386/cpu: Fix CPUID_HT exposure
commit83629b14614a7b56358addd96ff85d92eb6f72dc
authorXiaoyao Li <xiaoyao.li@intel.com>
Tue, 10 Oct 2023 06:05:39 +0000 (10 02:05 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Oct 2023 13:20:46 +0000 (17 15:20 +0200)
tree42e4defec94932d32e3bc724e64e37962ca79828
parent4f94781196a5bea7c07f6a6d6c301abf2a069e2b
target/i386/cpu: Fix CPUID_HT exposure

When explicitly booting a multiple vcpus vm with "-cpu +ht", it gets
warning of

  warning: host doesn't support requested feature: CPUID.01H:EDX.ht [bit 28]

Make CPUID_HT as supported unconditionally can resolve the warning.
However it introduces another issue that it also expose CPUID_HT to
guest when "-cpu host/max" with only 1 vcpu. To fix this, need mark
CPUID_HT as the no_autoenable_flags.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-ID: <20231010060539.210258-1-xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/kvm/kvm.c