From afaeb33168788be391ea7ef257c58c36cdf42411 Mon Sep 17 00:00:00 2001 From: vvto33 <54504675+vvto33@users.noreply.github.com> Date: Sat, 30 Apr 2022 07:53:38 +0900 Subject: [PATCH] Detect KVM when dmesg doesn't show "KVM" e.g. running UFW --- bench.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bench.sh b/bench.sh index fde329d..9edc77d 100644 --- a/bench.sh +++ b/bench.sh @@ -136,6 +136,8 @@ check_virt(){ virt="OpenVZ" elif [[ "${virtualx}" == *kvm-clock* ]]; then virt="KVM" + elif [[ "${sys_product}" == *KVM* ]]; then + virt="KVM" elif [[ "${cname}" == *KVM* ]]; then virt="KVM" elif [[ "${cname}" == *QEMU* ]]; then