From patchwork Fri Jul 7 15:11:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 13305026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0215EB64D9 for ; Fri, 7 Jul 2023 15:11:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232896AbjGGPLn (ORCPT ); Fri, 7 Jul 2023 11:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjGGPLn (ORCPT ); Fri, 7 Jul 2023 11:11:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9652B124 for ; Fri, 7 Jul 2023 08:11:41 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 519D8D75; Fri, 7 Jul 2023 08:12:23 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A7E023F762; Fri, 7 Jul 2023 08:11:39 -0700 (PDT) From: Alexandru Elisei To: will@kernel.org, julien.thierry.kdev@gmail.com, Suzuki.Poulose@arm.com, andre.przywara@arm.com, maz@kernel.org, oliver.upton@linux.dev, jean-philippe.brucker@arm.com, apatel@ventanamicro.com, kvm@vger.kernel.org Subject: [PATCH kvmtool v2 0/4] Add --loglevel argument Date: Fri, 7 Jul 2023 16:11:15 +0100 Message-ID: <20230707151119.81208-1-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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"). Changelog in each patch. 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 | 69 ++++++++++++++++++++++++++++++-------------- builtin-setup.c | 16 +++++----- guest_compat.c | 2 +- include/kvm/util.h | 14 ++++++--- kvm-cpu.c | 12 ++++---- mmio.c | 2 +- util/parse-options.c | 28 ++++++++++-------- util/util.c | 27 +++++++++++++++-- 9 files changed, 116 insertions(+), 59 deletions(-) Reviewed-by: Anup Patel