x86, xsave: Sync xsave memory layout with its header for user handling
commit29104e101d710dd152f807978884643a52eca8b7
authorSuresh Siddha <suresh.b.siddha@intel.com>
Mon, 19 Jul 2010 23:05:49 +0000 (19 16:05 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 20 Jul 2010 00:51:30 +0000 (19 17:51 -0700)
tree03ab625528d91ad13d60a817c7885591fea197b3
parenta1488f8bf4d72ad724700f6e982469a1240e4264
x86, xsave: Sync xsave memory layout with its header for user handling

With xsaveopt, if a processor implementation discern that a processor state
component is in its initialized state it may modify the corresponding bit in
the xsave_hdr.xstate_bv as '0', with out modifying the corresponding memory
layout. Hence wHile presenting the xstate information to the user, we always
ensure that the memory layout of a feature will be in the init state if the
corresponding header bit is zero. This ensures the consistency and avoids the
condition of the user seeing some some stale state in the memory layout during
signal handling, debugging etc.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <20100719230205.351459480@sbs-t61.sc.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/i387.h
arch/x86/include/asm/xsave.h
arch/x86/kernel/i387.c
arch/x86/kernel/xsave.c