diff options
author | Ingo Molnar <mingo@kernel.org> | 2015-04-30 07:09:26 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-05-19 13:48:03 (GMT) |
commit | 5e907bb0459399b0d1cc8d4c7e9f363a995b748a (patch) | |
tree | 7a0ba64607b1e538740ef6f5d6b95a91c80418fc /arch/x86/kernel/process.c | |
parent | 2e85591a6ca2ad84741d2859753be5497d74bd42 (diff) | |
download | linux-5e907bb0459399b0d1cc8d4c7e9f363a995b748a.tar.xz |
x86/alternatives, x86/fpu: Add 'alternatives_patched' debug flag and use it in xsave_state()
We'd like to use xsave_state() earlier, but its SYSTEM_BOOTING check
is too imprecise.
The real condition that xsave_state() would like to check is whether
alternative XSAVE instructions were patched into the kernel image
already.
Add such a (read-mostly) debug flag and use it in xsave_state().
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel/process.c')
0 files changed, 0 insertions, 0 deletions