diff options
author | Thomas Gleixner <[email protected]> | 2022-01-05 04:35:31 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-01-14 13:44:42 -0500 |
commit | 5429cead01192ff4019ea0b13316268d14fd1ec2 (patch) | |
tree | e21623f2ebe688ffd588ca3faa369a9dd569a361 /tools/perf/scripts/python | |
parent | 415a3c33e847349c0f76575b3ebfdfae2f5a681a (diff) |
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 <[email protected]>
Signed-off-by: Jing Liu <[email protected]>
Signed-off-by: Yang Zhong <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions