tools: hv: Enable debug logs for hv_kvp_daemon
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Tue, 15 Apr 2025 11:19:38 +0000 (04:19 -0700)
committerWei Liu <wei.liu@kernel.org>
Fri, 23 May 2025 16:30:55 +0000 (16:30 +0000)
commita9c0b33ef2306327dd2db02c6274107065ff9307
tree31e6ee042646d6c7f90568806f71b9310dc29f29
parent82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3
tools: hv: Enable debug logs for hv_kvp_daemon

Allow the KVP daemon to log the KVP updates triggered in the VM
with a new debug flag(-d).
When the daemon is started with this flag, it logs updates and debug
information in syslog with loglevel LOG_DEBUG. This information comes
in handy for debugging issues where the key-value pairs for certain
pools show mismatch/incorrect values.
The distro-vendors can further consume these changes and modify the
respective service files to redirect the logs to specific files as
needed.

Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Naman Jain <namjain@linux.microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Link: https://lore.kernel.org/r/1744715978-8185-1-git-send-email-shradhagupta@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1744715978-8185-1-git-send-email-shradhagupta@linux.microsoft.com>
tools/hv/hv_kvp_daemon.c