x86: Fix the 64-byte boundary enumeration for extended state
commit131266b7565bd437127bd231563572696bb27235
authorJing Liu <jing2.liu@intel.com>
Thu, 17 Feb 2022 06:04:27 +0000 (16 22:04 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2022 10:50:50 +0000 (15 11:50 +0100)
treee96d846af98572fda44f2ff4713da2a1f4dc6454
parent1ea5208febcc068449b63282d72bb719ab67a466
x86: Fix the 64-byte boundary enumeration for extended state

The extended state subleaves (EAX=0Dh, ECX=n, n>1).ECX[1]
indicate whether the extended state component locates
on the next 64-byte boundary following the preceding state
component when the compacted format of an XSAVE area is
used.

Right now, they are all zero because no supported component
needed the bit to be set, but the upcoming AMX feature will
use it.  Fix the subleaves value according to KVM's supported
cpuid.

Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220217060434.52460-2-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/kvm-cpu.c