mbox series

[RESEND,kvmtool,0/4] Add --loglevel argument

Message ID 20230630133134.65284-1-alexandru.elisei@arm.com (mailing list archive)
Headers show
Series Add --loglevel argument | expand

Message

Alexandru Elisei June 30, 2023, 1:31 p.m. UTC
Forgot to add the mailing list the first time I sent the series, sorry for
that.

kvmtool can be unnecessarily verbose at times, and Will proposed in a chat
we had a while ago to add a --loglevel command line argument to choose
which type of messages to silence. This is me taking a stab at it.

Build tested for all arches and run tested lightly on a rockpro64 and my
x86 machine.

Base commit is 3b1cdcf9e78f ("virtio/vhost: Clear VIRTIO_F_ACCESS_PLATFORM").

Alexandru Elisei (4):
  util: Make pr_err() return void
  Replace printf/fprintf with pr_* macros
  util: Use __pr_debug() instead of pr_info() to print debug messages
  Add --loglevel argument for the run command

 arm/gic.c            |   5 +--
 builtin-run.c        | 100 ++++++++++++++++++++++++++++++++-----------
 builtin-setup.c      |  18 ++++----
 guest_compat.c       |   2 +-
 include/kvm/util.h   |  14 ++++--
 kvm-cpu.c            |  12 +++---
 mmio.c               |  10 ++---
 util/parse-options.c |  28 ++++++------
 util/util.c          |  27 +++++++++++-
 virtio/core.c        |   6 +--
 x86/ioport.c         |  11 +++--
 11 files changed, 157 insertions(+), 76 deletions(-)