arm64: add sysfs vulnerability show for spectre-v2
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 15 Apr 2019 21:21:26 +0000 (16:21 -0500)
committerWill Deacon <will.deacon@arm.com>
Fri, 26 Apr 2019 15:31:36 +0000 (16:31 +0100)
commitd2532e27b5638bb2e2dd52b80b7ea2ec65135377
tree31f1be21c8df7abee8f3235afcad6fa411fb133c
parent8c1e3d2bb44cbb998cb28ff9a18f105fee7f1eb3
arm64: add sysfs vulnerability show for spectre-v2

Track whether all the cores in the machine are vulnerable to Spectre-v2,
and whether all the vulnerable cores have been mitigated. We then expose
this information to userspace via sysfs.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpu_errata.c