]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/microcode: Add loader version file in debugfs
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 8 May 2019 18:50:39 +0000 (14:50 -0400)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 8 May 2019 21:36:33 +0000 (17:36 -0400)
commit04349cdec537de48763fe5e03b5077364fc1a4bc
treece12e8598d7423588980b79d92a5428a1dc7da6b
parent326783a1ad259aec734e459215197d16c9e64d2c
x86/microcode: Add loader version file in debugfs

We want to be able to find out whether late microcode loader is using a
"safe" method where the system is in stop_machines() --- i.e. all cores
are pinned in kernel with interrupts disabled. This is especially
important for core siblings --- if one thread is loading microcode while
the other is executing instructions that are being patched then bad
things may happen, including MCEs.

Presense of this file indicates that we are all good. We will also
provide version value of "1".

[root@ca-virt1-0 ~]# cat /sys/kernel/debug/x86/microcode_loader_version
1
[root@ca-virt1-0 ~]#

Orabug: 29754165

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/kernel/cpu/microcode/core.c