mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-01 23:44:58 +08:00
feat: Check for SSE4 instruction set (#1099)
This commit is contained in:
parent
5e8bbc2868
commit
8a89149d58
@ -33,9 +33,8 @@ if [[ "$KVM" != [Nn]* ]]; then
|
|||||||
KVM_OPTS=",accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard"
|
KVM_OPTS=",accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard"
|
||||||
|
|
||||||
if ! grep -qw "sse4_2" <<< "$flags"; then
|
if ! grep -qw "sse4_2" <<< "$flags"; then
|
||||||
info "Your CPU does not have the SSE4 instruction set that Virtual DSM requires, it will be emulated..."
|
error "Your CPU does not have the SSE4 instruction set that Virtual DSM requires!"
|
||||||
[ -z "$CPU_MODEL" ] && CPU_MODEL="qemu64"
|
[[ "$DEBUG" != [Yy1]* ]] && exit 88
|
||||||
CPU_FEATURES+=",+ssse3,+sse4.1,+sse4.2"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CPU_MODEL" ]; then
|
if [ -z "$CPU_MODEL" ]; then
|
||||||
|
|||||||
@ -166,6 +166,10 @@ if [[ "$KVM" != [Nn]* ]]; then
|
|||||||
if ! grep -qw "vmx\|svm" <<< "$flags"; then
|
if ! grep -qw "vmx\|svm" <<< "$flags"; then
|
||||||
KVM_ERR="(not enabled in BIOS)"
|
KVM_ERR="(not enabled in BIOS)"
|
||||||
fi
|
fi
|
||||||
|
if ! grep -qw "sse4_2" <<< "$flags"; then
|
||||||
|
error "Your CPU does not have the SSE4 instruction set that Virtual DSM requires!"
|
||||||
|
[[ "$DEBUG" != [Yy1]* ]] && exit 88
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user