linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] x86, fpu: cleanups, introduce non-lazy FPU restore for xsave
@ 2012-08-24 21:12 Suresh Siddha
  2012-08-24 21:12 ` [PATCH 1/6] x86, fpu: drop_fpu() before restoring new state from sigframe Suresh Siddha
                   ` (6 more replies)
  0 siblings, 7 replies; 45+ messages in thread
From: Suresh Siddha @ 2012-08-24 21:12 UTC (permalink / raw)
  To: hpa, mingo, torvalds, andreas.herrmann3, bp, robert.richter
  Cc: linux-kernel, Suresh Siddha

These patches are against tip/x86/fpu. Few cleanups and more improtantly
this series introduces the non-lazy FPU restore mechanism for processors
supporting xsave feature. More details in the individual patch changelogs.

Thanks.

Suresh Siddha (6):
  x86, fpu: drop_fpu() before restoring new state from sigframe
  x86, fpu: remove unnecessary user_fpu_end() in save_xstate_sig()
  x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu()
  x86, fpu: always use kernel_fpu_begin/end() for in-kernel FPU usage
  lguest, x86: handle guest TS bit for lazy/non-lazy fpu host models
  x86, fpu: use non-lazy fpu restore for processors supporting xsave

 arch/x86/include/asm/fpu-internal.h |  118 +++++++++++++++++++---------------
 arch/x86/include/asm/i387.h         |    1 +
 arch/x86/include/asm/xor_32.h       |   56 +++--------------
 arch/x86/include/asm/xor_64.h       |   61 +++---------------
 arch/x86/include/asm/xor_avx.h      |   54 ++++------------
 arch/x86/include/asm/xsave.h        |    1 +
 arch/x86/kernel/i387.c              |   20 +++++-
 arch/x86/kernel/process.c           |   12 +++-
 arch/x86/kernel/process_32.c        |    4 -
 arch/x86/kernel/process_64.c        |    4 -
 arch/x86/kernel/traps.c             |    5 +-
 arch/x86/kernel/xsave.c             |   58 +++++++++++++----
 arch/x86/kvm/x86.c                  |    3 +-
 drivers/lguest/x86/core.c           |   10 ++-
 14 files changed, 180 insertions(+), 227 deletions(-)

-- 
1.7.6.5


^ permalink raw reply	[flat|nested] 45+ messages in thread
* [PATCH v2 0/5] eagerfpu patches for tip/x86/fpu
@ 2012-09-10 18:11 Suresh Siddha
  2012-09-10 18:11 ` [PATCH v2 1/5] x86, fpu: decouple non-lazy/eager fpu restore from xsave Suresh Siddha
                   ` (5 more replies)
  0 siblings, 6 replies; 45+ messages in thread
From: Suresh Siddha @ 2012-09-10 18:11 UTC (permalink / raw)
  To: hpa, mingo, torvalds, andreas.herrmann3, bp, robert.richter
  Cc: linux-kernel, Suresh Siddha

v2 version of the previous patchset https://lkml.org/lkml/2012/9/7/548
that decouples eagerfpu into a synthetic cpuid feature.

changes from v1:
* Made "eagerfpu=" boot parameter tri-state
* removed the cpu_has_xmm check in the fx_finit (not related to eagerfpu
  per-say, but this patchset touches that area of code).

Suresh Siddha (5):
  x86, fpu: decouple non-lazy/eager fpu restore from xsave
  x86, fpu: enable eagerfpu by default for xsaveopt
  x86, fpu: move check_fpu() after alternative_instructions()
  x86, fpu: make eagerfpu= boot param tri-state
  x86, fpu: remove cpu_has_xmm check in the fx_finit()

 Documentation/kernel-parameters.txt |    6 ++
 arch/x86/include/asm/cpufeature.h   |    3 +
 arch/x86/include/asm/fpu-internal.h |   53 ++++++++++++++------
 arch/x86/kernel/cpu/bugs.c          |    7 ++-
 arch/x86/kernel/cpu/common.c        |    2 -
 arch/x86/kernel/i387.c              |   25 +++------
 arch/x86/kernel/process.c           |    2 +-
 arch/x86/kernel/traps.c             |    2 +-
 arch/x86/kernel/xsave.c             |   95 ++++++++++++++++++++++++-----------
 9 files changed, 129 insertions(+), 66 deletions(-)

-- 
1.7.6.5


^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2012-09-22  0:19 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-24 21:12 [PATCH 0/6] x86, fpu: cleanups, introduce non-lazy FPU restore for xsave Suresh Siddha
2012-08-24 21:12 ` [PATCH 1/6] x86, fpu: drop_fpu() before restoring new state from sigframe Suresh Siddha
2012-08-24 22:13   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-09-19  0:01   ` tip-bot for Suresh Siddha
2012-08-24 21:12 ` [PATCH 2/6] x86, fpu: remove unnecessary user_fpu_end() in save_xstate_sig() Suresh Siddha
2012-08-24 22:14   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-08-26 11:30   ` [PATCH 2/6] " Borislav Petkov
2012-09-19  0:02   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-08-24 21:12 ` [PATCH 3/6] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() Suresh Siddha
2012-08-24 22:15   ` [tip:x86/fpu] x86, kvm: use kernel_fpu_begin/end() in kvm_load/ put_guest_fpu() tip-bot for Suresh Siddha
2012-09-19  0:03   ` tip-bot for Suresh Siddha
2012-09-19 10:13   ` [PATCH 3/6] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() Avi Kivity
2012-09-19 17:18     ` Suresh Siddha
2012-09-19 17:22       ` Avi Kivity
2012-09-19 17:25         ` Suresh Siddha
2012-09-20  9:31           ` Avi Kivity
2012-09-19 17:26         ` H. Peter Anvin
2012-09-20  9:36           ` Avi Kivity
2012-09-20  0:10     ` Suresh Siddha
2012-09-20  9:50       ` Avi Kivity
2012-09-20 18:01         ` Suresh Siddha
2012-09-22  0:19           ` [tip:x86/fpu] x86, kvm: fix kvm's usage of kernel_fpu_begin/end() tip-bot for Suresh Siddha
2012-08-24 21:13 ` [PATCH 4/6] x86, fpu: always use kernel_fpu_begin/end() for in-kernel FPU usage Suresh Siddha
2012-08-24 22:16   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-09-19  0:04   ` tip-bot for Suresh Siddha
2012-08-24 21:13 ` [PATCH 5/6] lguest, x86: handle guest TS bit for lazy/non-lazy fpu host models Suresh Siddha
2012-08-24 22:16   ` [tip:x86/fpu] lguest, x86: handle guest TS bit for lazy/ non-lazy " tip-bot for Suresh Siddha
2012-09-19  0:05   ` tip-bot for Suresh Siddha
2012-08-24 21:13 ` [PATCH 6/6] x86, fpu: use non-lazy fpu restore for processors supporting xsave Suresh Siddha
2012-08-24 22:17   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-08-24 21:33 ` [PATCH 0/6] x86, fpu: cleanups, introduce non-lazy FPU restore for xsave H. Peter Anvin
2012-08-25 18:34   ` Linus Torvalds
2012-09-10 18:11 [PATCH v2 0/5] eagerfpu patches for tip/x86/fpu Suresh Siddha
2012-09-10 18:11 ` [PATCH v2 1/5] x86, fpu: decouple non-lazy/eager fpu restore from xsave Suresh Siddha
2012-09-17 19:11   ` Pavel Machek
2012-09-19  0:07   ` [tip:x86/fpu] x86, fpu: decouple non-lazy/ eager " tip-bot for Suresh Siddha
2012-09-10 18:11 ` [PATCH v2 2/5] x86, fpu: enable eagerfpu by default for xsaveopt Suresh Siddha
2012-09-19  0:08   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-09-10 18:11 ` [PATCH v2 3/5] x86, fpu: move check_fpu() after alternative_instructions() Suresh Siddha
2012-09-19  0:06   ` [tip:x86/fpu] x86, fpu: use non-lazy fpu restore for processors supporting xsave tip-bot for Suresh Siddha
2012-09-10 18:11 ` [PATCH v2 4/5] x86, fpu: make eagerfpu= boot param tri-state Suresh Siddha
2012-09-19  0:09   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-09-10 18:11 ` [PATCH v2 5/5] x86, fpu: remove cpu_has_xmm check in the fx_finit() Suresh Siddha
2012-09-19  0:10   ` [tip:x86/fpu] " tip-bot for Suresh Siddha
2012-09-10 18:16 ` [PATCH v2 0/5] eagerfpu patches for tip/x86/fpu Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).