From 96d93be2a67bb5c088914c9ff084ff226b33f4cf Mon Sep 17 00:00:00 2001 From: Hu Fenglin Date: Fri, 14 Jan 2022 13:16:46 +0800 Subject: [PATCH] deb-pkg: Delete the Hyper-threading check in preinst The check logic of CPU num is wrong and needs to be deleted. Hyper-threading check should be checked when getting board xml. Tracked-On: #6688 Signed-off-by: Hu Fenglin --- misc/packaging/acrn-hypervisor.preinst | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/misc/packaging/acrn-hypervisor.preinst b/misc/packaging/acrn-hypervisor.preinst index a18f7ce12..d5a77cb63 100644 --- a/misc/packaging/acrn-hypervisor.preinst +++ b/misc/packaging/acrn-hypervisor.preinst @@ -10,27 +10,6 @@ else echo "You are in acrn already, no need pre-check " exit 0 fi -#check mem/cpu -cpunumsexp=4 -percode=$(lscpu |awk '$1 == "Thread(s)" {print $NF}') -cputotal=$(lscpu |awk '$1 == "CPU(s):" {print $NF}') - - -if [[ $cputotal -eq $cpunumsexp ]] -then - echo "CPU cores config is ok" - -elif [[ $cputotal -gt $cpunumsexp ]] -then - echo "Error ! hyper-threading config is not correct!" - echo "CPU(s) $cputotal should be $cpunumsexp,Thread(s) per core is $percode, please disable hyper-threading in bios" - -elif [[ $cputotal -lt $cpunumsexp ]] -then - echo "Error ! hyper threading config is incorrect!" - echo "CPU(s) $cputotal should be $cpunumsexp,Thread(s) per core is $percode, please enable hyper-threading in bios" -fi - #check vt vtd=$(ls -al /sys/firmware/acpi/tables |grep DMAR || true)