mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-11 21:13:11 +00:00
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 <fenglin.hu@intel.com>
This commit is contained in:
parent
63d3a54285
commit
96d93be2a6
@ -10,27 +10,6 @@ else
|
|||||||
echo "You are in acrn already, no need pre-check "
|
echo "You are in acrn already, no need pre-check "
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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
|
#check vt
|
||||||
vtd=$(ls -al /sys/firmware/acpi/tables |grep DMAR || true)
|
vtd=$(ls -al /sys/firmware/acpi/tables |grep DMAR || true)
|
||||||
|
Loading…
Reference in New Issue
Block a user