Like Xu e973746882 KVM: x86/cpuid: Clear XFD for component i if the base feature is missing
According to Intel extended feature disable (XFD) spec, the sub-function i
(i > 1) of CPUID function 0DH enumerates "details for state component i.
ECX[2] enumerates support for XFD support for this state component."

If KVM does not report F(XFD) feature (e.g. due to CONFIG_X86_64),
then the corresponding XFD support for any state component i
should also be removed. Translate this dependency into KVM terms.

Fixes: 690a757d610e ("kvm: x86: Add CPUID support for Intel AMX")
Signed-off-by: Like Xu <likexu@tencent.com>
Message-Id: <20220117074531.76925-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-01-19 12:09:25 -05:00
..
2021-11-25 14:26:12 +01:00
2021-11-17 10:36:15 -05:00
2021-11-25 10:31:37 -08:00
2022-01-07 10:42:19 -05:00
2021-11-10 11:22:03 -08:00
2021-11-08 09:15:45 -08:00
2021-11-20 10:35:54 -08:00
2021-11-25 14:26:12 +01:00
2021-11-25 10:41:28 -08:00
2021-11-17 10:36:15 -05:00
2021-11-17 10:36:15 -05:00
2021-12-21 12:59:53 -05:00
2021-11-25 10:41:28 -08:00
2021-11-25 10:41:28 -08:00
2021-11-25 10:41:28 -08:00