From af3271df4cab2371082d55dfdb2ee9d34577f384 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Kliemeck Date: Sun, 16 Dec 2018 22:08:40 +0100 Subject: [PATCH] add xen support for meltdown --- spectre-meltdown-checker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index 652c00f..3119e5c 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -3307,6 +3307,10 @@ check_CVE_2017_5754_linux() # Red Hat Backport creates a dedicated file, see https://access.redhat.com/articles/3311301 kpti_enabled=$(cat /sys/kernel/debug/x86/pti_enabled 2>/dev/null) _debug "kpti_enabled: file /sys/kernel/debug/x86/pti_enabled exists and says: $kpti_enabled" + elif is_xen_dom0; then + pti_xen_pv_domU=$(xl dmesg | grep 'XPTI' | grep 'DomU enabled' | head -1) + + [ -n "$pti_xen_pv_domU" ] && kpti_enabled=1 fi if [ -z "$kpti_enabled" ]; then dmesg_grep "$dmesg_grep"; ret=$?