mirror of
https://github.com/speed47/spectre-meltdown-checker
synced 2025-01-03 10:05:44 +01:00
feat: add L1D flush cpuid feature bit detection
This commit is contained in:
parent
3cf9141601
commit
1571a56ce2
@ -2057,6 +2057,16 @@ check_cpu()
|
|||||||
pstatus yellow NO
|
pstatus yellow NO
|
||||||
fi
|
fi
|
||||||
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
|
if is_intel; then
|
||||||
_info " * Enhanced IBRS (IBRS_ALL)"
|
_info " * Enhanced IBRS (IBRS_ALL)"
|
||||||
|
Loading…
Reference in New Issue
Block a user