fix: Set KVM tick policy (#15)

This commit is contained in:
Kroese 2024-02-05 14:14:21 +01:00 committed by GitHub
parent 3e6e5475d8
commit 2fb0eeb68a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -3,11 +3,13 @@ set -Eeuo pipefail
# Docker environment variables
: "${VGA:=""}" # VGA adaptor
: "${DISPLAY:="web"}" # Display type
: "${VGA:="virtio-gpu"}" # VGA adaptor
if [[ "${BOOT_MODE,,}" == "windows" ]]; then
[[ "$VGA" == "virtio-gpu" ]] && VGA="ramfb"
[ -z "$VGA" ] && VGA="ramfb"
else
[ -z "$VGA" ] && VGA="virtio-gpu"
fi
case "${DISPLAY,,}" in

View file

@ -35,7 +35,7 @@ if [[ "$KVM" != [Nn]* ]]; then
WIN_FEATURES=""
CPU_FEATURES="kvm=on"
KVM_OPTS=",accel=kvm -enable-kvm"
KVM_OPTS=",accel=kvm -enable-kvm -global kvm-pit.lost_tick_policy=discard"
#CPU_FEATURES="kvm=on,l3-cache=on"
#WIN_FEATURES="+hypervisor,+invtsc,hv_passthrough"