From 12ea49fe0c9d76438b01e9bbeb602db8da39b75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 16 Mar 2018 18:29:58 +0100 Subject: [PATCH] fix(kvm): properly detect PVHVM mode (fixes #163) --- spectre-meltdown-checker.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index b9c0c2d..a3c35eb 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -1827,6 +1827,11 @@ check_variant3() else xen_pv_domu=1 fi + # PVHVM guests also print 'Booting paravirtualized kernel', so we need this check. + dmesg_grep 'Xen HVM callback vector for event delivery is enabled$'; ret=$? + if [ $ret -eq 0 ]; then + xen_pv_domu=0 + fi fi fi