Merge pull request #10955 from microsoft/cameronbaird/hyp-loglevel-default-upstream

runtime: Properly set default hyp loglevel to 1
This commit is contained in:
Dan Mihai 2025-03-04 16:44:08 -08:00 committed by GitHub
commit edf6af2a43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 {
if h.HypervisorLoglevel > maxHypervisorLoglevel {
if h.HypervisorLoglevel == 0 {
return defaultHypervisorLoglevel
} else if h.HypervisorLoglevel > maxHypervisorLoglevel {
return maxHypervisorLoglevel
}

View File

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