diff options
author | Jing Liu <jing2.liu@intel.com> | 2022-01-05 15:35:21 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-01-14 21:43:29 +0300 |
commit | 820a6ee944e74e57255ac2e90916ecdaade57b95 (patch) | |
tree | c3f9bef9f63886cb4e158b78923f31d79b32eb36 /arch/x86/include/asm/fpu | |
parent | 8eb9a48ac1e86a8a59f7123b529d6e498fb1f163 (diff) | |
download | linux-820a6ee944e74e57255ac2e90916ecdaade57b95.tar.xz |
kvm: x86: Add emulation for IA32_XFD
Intel's eXtended Feature Disable (XFD) feature allows the software
to dynamically adjust fpstate buffer size for XSAVE features which
have large state.
Because guest fpstate has been expanded for all possible dynamic
xstates at KVM_SET_CPUID2, emulation of the IA32_XFD MSR is
straightforward. For write just call fpu_update_guest_xfd() to
update the guest fpu container once all the sanity checks are passed.
For read simply return the cached value in the container.
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Zeng Guang <guang.zeng@intel.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220105123532.12586-11-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/fpu')
0 files changed, 0 insertions, 0 deletions