1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-22 04:13:38 +01:00

feat: add L1D flush cpuid feature bit detection

This commit is contained in:
Stéphane Lesimple 2018-09-19 09:05:23 +02:00
parent 3cf9141601
commit 1571a56ce2

View File

@ -2057,6 +2057,16 @@ check_cpu()
pstatus yellow NO
fi
fi
# CPUID of L1D
_info_nol " * CPU indicates L1D flush capability: "
read_cpuid 0x7 $EDX 28 1 1; ret=$?
if [ $ret -eq 0 ]; then
pstatus green YES "L1D flush feature bit"
elif [ $ret -eq 1 ]; then
pstatus yellow NO
elif [ $ret -eq 2 ]; then
pstatus yellow UNKNOWN "is cpuid kernel module available?"
fi
if is_intel; then
_info " * Enhanced IBRS (IBRS_ALL)"