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 <[email protected]> Signed-off-by: Roger Pau Monné <[email protected]> Signed-off-by: Fouad Hilly <[email protected]> --- CC: Jan Beulich <[email protected]> CC: Andrew Cooper <[email protected]> CC: "Roger Pau Monné" <[email protected]> CC: Wei Liu <[email protected]> CC: George Dunlap <[email protected]> CC: Julien Grall <[email protected]> CC: Stefano Stabellini <[email protected]> CC: Paul Durrant <[email protected]> CC: Jun Nakajima <[email protected]> CC: Kevin Tian <[email protected]> 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
