i386/cpu: Clear FEAT_XSAVE_COMP_{LO,HI} when XSAVE is not available
commit19ca8285fcd61a8f60f2f44f789a561e0958e8e6
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 16 Jul 2020 08:20:18 +0000 (16 16:20 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Sep 2020 17:09:20 +0000 (30 19:09 +0200)
tree2302869c6262222274ee478c130d9e723d6e443c
parent4773a5f35b0d83674f92816a226a594b03bbcf60
i386/cpu: Clear FEAT_XSAVE_COMP_{LO,HI} when XSAVE is not available

Per Intel SDM vol 1, 13.2, if CPUID.1:ECX.XSAVE[bit 26] is 0, the
processor provides no further enumeration through CPUID function 0DH.
QEMU does not do this for "-cpu host,-xsave".

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20200716082019.215316-2-xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c