feat: Add hypervisor flag

This commit is contained in:
Kroese 2024-06-05 03:37:20 +02:00 committed by GitHub
parent 4a9ae82d92
commit 2b777e1403
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ fi
if [[ "$KVM" != [Nn]* ]]; then
CPU_FEATURES="kvm=on,l3-cache=on"
CPU_FEATURES="kvm=on,l3-cache=on,+hypervisor"
KVM_OPTS=",accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard"
if ! grep -qw "sse4_2" <<< "$flags"; then
@ -67,7 +67,7 @@ if [[ "$KVM" != [Nn]* ]]; then
else
KVM_OPTS=""
CPU_FEATURES="l3-cache=on"
CPU_FEATURES="l3-cache=on,+hypervisor"
if [[ "$ARCH" == "amd64" ]]; then
KVM_OPTS=" -accel tcg,thread=multi"