From patchwork Fri Jun 30 13:31:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 13298228 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 79A4CEB64D7 for ; Fri, 30 Jun 2023 13:31:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232591AbjF3Nb4 (ORCPT ); Fri, 30 Jun 2023 09:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbjF3Nbv (ORCPT ); Fri, 30 Jun 2023 09:31:51 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 824F11FCD for ; Fri, 30 Jun 2023 06:31:50 -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 7E7E9D75; Fri, 30 Jun 2023 06:32:33 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3134F3F64C; Fri, 30 Jun 2023 06:31:48 -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 RESEND kvmtool 0/4] Add --loglevel argument Date: Fri, 30 Jun 2023 14:31:30 +0100 Message-ID: <20230630133134.65284-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 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(-)