x86, cpu: Expand cpufeature facility to include cpu bugs
authorBorislav Petkov <bp@suse.de>
Wed, 20 Mar 2013 14:07:23 +0000 (15:07 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 19 Mar 2018 18:58:26 +0000 (18:58 +0000)
commit247e576e11e815537e5dba83f4d3c533a609cb29
tree56b357a6cf5073086beef0fec8ce51cf97b132cc
parentc696d63402ecc346c0d6edc7ffdd0c85d25c8eac
x86, cpu: Expand cpufeature facility to include cpu bugs

commit 65fc985b37dc241c4db7cd32adcbc989193fe3c8 upstream.

We add another 32-bit vector at the end of the ->x86_capability
bitvector which collects bugs present in CPUs. After all, a CPU bug is a
kind of a capability, albeit a strange one.

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1363788448-31325-2-git-send-email-bp@alien8.de
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/processor.h
arch/x86/kernel/alternative.c
arch/x86/kernel/cpu/common.c