x86: Support XFD and AMX xsave data migration
commitcdec2b753b487d9e8aab028231c35d87789ea083
authorZeng Guang <guang.zeng@intel.com>
Thu, 17 Feb 2022 06:04:33 +0000 (16 22:04 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2022 10:50:50 +0000 (15 11:50 +0100)
treedfa03fe16915fbf6d80ea43012a502e9d1de17d7
parente56dd3c70abb31893c61ac834109fa7a38841330
x86: Support XFD and AMX xsave data migration

XFD(eXtended Feature Disable) allows to enable a
feature on xsave state while preventing specific
user threads from using the feature.

Support save and restore XFD MSRs if CPUID.D.1.EAX[4]
enumerate to be valid. Likewise migrate the MSRs and
related xsave state necessarily.

Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220217060434.52460-8-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h
target/i386/kvm/kvm.c
target/i386/machine.c