From 039e80647974709fa7bffb40cce73e899db3c8da Mon Sep 17 00:00:00 2001 From: wanyaoqi <18528551+wanyaoqi@users.noreply.github.com> Date: Sat, 24 Feb 2024 07:53:17 +0800 Subject: [PATCH] feat(host): disable guest hpet timer by default (#19534) The HPET was turned off by default purely because of issues with time drifting on Windows guests. (See nova commit ba3fd16605.) --- pkg/hostman/guestman/qemu-kvmhelper.go | 1 - pkg/hostman/options/options.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/hostman/guestman/qemu-kvmhelper.go b/pkg/hostman/guestman/qemu-kvmhelper.go index e6e4c93563..88c0cddd54 100644 --- a/pkg/hostman/guestman/qemu-kvmhelper.go +++ b/pkg/hostman/guestman/qemu-kvmhelper.go @@ -1064,7 +1064,6 @@ func (s *SKVMGuestInstance) initMachineDesc() { noHpet := true s.Desc.NoHpet = &noHpet } - } func (s *SKVMGuestInstance) initQgaDesc() { diff --git a/pkg/hostman/options/options.go b/pkg/hostman/options/options.go index 5bb4207d8a..7c4b8f9a37 100644 --- a/pkg/hostman/options/options.go +++ b/pkg/hostman/options/options.go @@ -36,7 +36,7 @@ type SHostBaseOptions struct { LiveMigrateCpuThrottleMax int64 `default:"99" help:"live migrate auto converge cpu throttle max"` DefaultQemuVersion string `help:"Default qemu version" default:"4.2.0"` - NoHpet bool `help:"disable qemu hpet timer" default:"false"` + NoHpet bool `help:"Disable qemu hpet timer" default:"true"` CdromCount int `help:"cdrom count" default:"1"` FloppyCount int `help:"floppy count" default:"1"`