runtime: Properly set default hyp loglevel to 1

Tweak default HypervisorLoglevel config option for clh to 1.

Signed-off-by: Cameron Baird <cameronbaird@microsoft.com>
This commit is contained in:
Cameron Baird 2025-02-27 18:58:48 +00:00
parent f485e52f75
commit d48116114e
2 changed files with 4 additions and 1 deletions

View File

@ -521,7 +521,9 @@ func (h hypervisor) defaultBridges() uint32 {
} }
func (h hypervisor) defaultHypervisorLoglevel() uint32 { func (h hypervisor) defaultHypervisorLoglevel() uint32 {
if h.HypervisorLoglevel > maxHypervisorLoglevel { if h.HypervisorLoglevel == 0 {
return defaultHypervisorLoglevel
} else if h.HypervisorLoglevel > maxHypervisorLoglevel {
return maxHypervisorLoglevel return maxHypervisorLoglevel
} }

View File

@ -184,6 +184,7 @@ func createAllRuntimeConfigFiles(dir, hypervisor string) (testConfig testRuntime
GuestHookPath: defaultGuestHookPath, GuestHookPath: defaultGuestHookPath,
VhostUserStorePath: defaultVhostUserStorePath, VhostUserStorePath: defaultVhostUserStorePath,
SharedFS: sharedFS, SharedFS: sharedFS,
HypervisorLoglevel: defaultHypervisorLoglevel,
VirtioFSDaemon: virtioFSdaemon, VirtioFSDaemon: virtioFSdaemon,
VirtioFSCache: defaultVirtioFSCacheMode, VirtioFSCache: defaultVirtioFSCacheMode,
PFlash: []string{}, PFlash: []string{},