summaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2022-01-05 15:35:31 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-01-14 21:44:42 +0300
commit5429cead01192ff4019ea0b13316268d14fd1ec2 (patch)
treee21623f2ebe688ffd588ca3faa369a9dd569a361 /arch/x86/kvm
parent415a3c33e847349c0f76575b3ebfdfae2f5a681a (diff)
downloadlinux-5429cead01192ff4019ea0b13316268d14fd1ec2.tar.xz
x86/fpu: Provide fpu_sync_guest_vmexit_xfd_state()
KVM can disable the write emulation for the XFD MSR when the vCPU's fpstate is already correctly sized to reduce the overhead. When write emulation is disabled the XFD MSR state after a VMEXIT is unknown and therefore not in sync with the software states in fpstate and the per CPU XFD cache. Provide fpu_sync_guest_vmexit_xfd_state() which has to be invoked after a VMEXIT before enabling interrupts when write emulation is disabled for the XFD MSR. It could be invoked unconditionally even when write emulation is enabled for the price of a pointless MSR read. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Jing Liu <jing2.liu@intel.com> Signed-off-by: Yang Zhong <yang.zhong@intel.com> Message-Id: <20220105123532.12586-21-yang.zhong@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
0 files changed, 0 insertions, 0 deletions