X86 Xen will only eagerly switch FPU context in the scheduler. Xen itslef won't set CR0.TS other than for the purpose of servicing a PV guset.
Signed-off-by: Wei Liu <wei.l...@citrix.com> Signed-off-by: Roger Pau Monné <roger....@citrix.com> Signed-off-by: Fouad Hilly <fouad.hi...@cloud.com> --- CC: Jan Beulich <jbeul...@suse.com> CC: Andrew Cooper <andrew.coop...@citrix.com> CC: "Roger Pau Monné" <roger....@citrix.com> CC: Wei Liu <w...@xen.org> CC: George Dunlap <george.dun...@citrix.com> CC: Julien Grall <jul...@xen.org> CC: Stefano Stabellini <sstabell...@kernel.org> CC: Paul Durrant <p...@xen.org> CC: Jun Nakajima <jun.nakaj...@intel.com> CC: Kevin Tian <kevin.t...@intel.com> Wei Liu (3): x86: i387.c cleanup x86: introduce xstate_zero x86: switch to eager fpu save / restore xen/arch/x86/cpu/common.c | 3 - xen/arch/x86/domain.c | 10 +- xen/arch/x86/domctl.c | 4 +- xen/arch/x86/hvm/emulate.c | 38 +---- xen/arch/x86/hvm/hvm.c | 8 +- xen/arch/x86/hvm/svm/nestedsvm.c | 62 +------ xen/arch/x86/hvm/svm/svm.c | 81 +-------- xen/arch/x86/hvm/svm/vmcb.c | 4 +- xen/arch/x86/hvm/vlapic.c | 4 - xen/arch/x86/hvm/vmx/vmcs.c | 8 +- xen/arch/x86/hvm/vmx/vmx.c | 70 +------- xen/arch/x86/hvm/vmx/vvmx.c | 15 +- xen/arch/x86/i387.c | 170 +++++-------------- xen/arch/x86/include/asm/domain.h | 3 - xen/arch/x86/include/asm/hvm/svm/nestedsvm.h | 3 - xen/arch/x86/include/asm/hvm/vmx/vmcs.h | 2 - xen/arch/x86/include/asm/i387.h | 3 +- xen/arch/x86/include/asm/xstate.h | 18 +- xen/arch/x86/pv/misc-hypercalls.c | 3 +- xen/arch/x86/traps.c | 18 +- xen/arch/x86/xstate.c | 65 ++++--- xen/common/domain.c | 2 - xen/common/efi/runtime.c | 9 +- xen/include/xen/sched.h | 4 - 24 files changed, 108 insertions(+), 499 deletions(-) -- 2.42.0