]> git.baikalelectronics.ru Git - kernel.git/commit
lguest, x86: handle guest TS bit for lazy/non-lazy fpu host models
authorSuresh Siddha <suresh.b.siddha@intel.com>
Fri, 24 Aug 2012 21:13:01 +0000 (14:13 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 18 Sep 2012 22:52:09 +0000 (15:52 -0700)
commitf4ed4f7eb05afe31102ca1b27a69da17f4f95fdd
treeae4e563e6afd275f4528877ac3ff884ccb62b243
parent18dfeb34a6f6b32391465bbe3689ac0615bf768f
lguest, x86: handle guest TS bit for lazy/non-lazy fpu host models

Instead of using unlazy_fpu() check if user_has_fpu() and set/clear
the host TS bits so that the lguest works fine with both the
lazy/non-lazy FPU host models with minimal changes.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/1345842782-24175-6-git-send-email-suresh.b.siddha@intel.com
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
drivers/lguest/x86/core.c