fix: Set KVM tick policy (#15)
This commit is contained in:
parent
3e6e5475d8
commit
2fb0eeb68a
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue