On 1/12/2023 10:21 AM, Mingwei Zhang wrote:
Hmm. Given that XFEATURE_XTILE_DATA is a dynamic feature, that means XFEATURE_XTILE_CFG could be set without XFEATURE_XTILE_DATA.
No, XCR0 is different from the IA32_XFD MSR. Check this in the SDM -- Vol.1 13.3 "Enabling the XSAVE Feature Set and XSAVE-Enabled Features":
"In addition, executing the XSETBV instruction causes a general- protection fault (#GP) if ECX = 0 and EAX[17] ≠ EAX[18] (TILECFG and TILEDATA must be enabled together). This implies that the value of XCR0[18:17] is always either 00b or 11b." Thanks, Chang