kvm: x86: Emulate IA32_XFD_ERR for guest
authorJing Liu <jing2.liu@intel.com>
Wed, 5 Jan 2022 12:35:24 +0000 (04:35 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jan 2022 18:44:26 +0000 (13:44 -0500)
commit548e83650a51dce0d188b9e41b1e2ca5d63597cf
tree07e97d8652c297707302a9bfebb75920a438fc7e
parentec5be88ab29fd9145c7ced20b58fb96f7c6b6890
kvm: x86: Emulate IA32_XFD_ERR for guest

Emulate read/write to IA32_XFD_ERR MSR.

Only the saved value in the guest_fpu container is touched in the
emulation handler. Actual MSR update is handled right before entering
the guest (with preemption disabled)

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-14-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c