Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp554977pxb; Wed, 25 Aug 2021 09:19:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8VfAjQc5aD1qqBHr7lcUtUUR8SGtkvzCDr52I2R8NJenhRwz4EZ3+hLcUYTp5fq0RcQQE X-Received: by 2002:a17:906:1b14:: with SMTP id o20mr2025738ejg.154.1629908390959; Wed, 25 Aug 2021 09:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629908390; cv=none; d=google.com; s=arc-20160816; b=CYk+a137Dg3FgbAm4Jimf2JNJLSnwEX7U92AWpgMfyMwfWC7u9gI9FYxq3copcl8he akcam5wCosRoAlccggjrHEOub5GBT59NUQrAnq4VnnYe+xDNiXDFECiQqbAE59NTSJHK HPS6TQtjwry3JcEfciH0SHsxNJtYUEOt5gNSxSTXy9qQjh7qgVlmUZH9eQb39/ReDRGy aZSlob669ySLUs9iAyIVyokTSYtCU9r4zIF51rQR4YWCIyZZM9Um+pYPEqsLuMgqwUce KczL2ZyjIkRR1aZOEEc1qkqYsFJMyagns2iRY82+2tUf2rTuA+1OhEsaFOGdTVj4/y5w VVZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=BhKJBvTg4AiCcU0fj1U7sDruNVrX9tpqBwQQWQzktWk=; b=CndYlFDmuH8J5JI8bzAYEJ9eKwsI0dA8fa9WuhHy4bkCFaTYHW7XL1aVEkb/2eAhrp BkJP5EEB0NGMNC9skWdpSYKl60jsbaD/cV0s2mnWJ3OC29sCAcsg8JQhY0SHF1s4UHQo G5Dz8q+0Qy/EwUpp2URjHXMyR067hx2Ul3g3HJAwpxbaGULlPzR+r6gbU2NXE61Blo16 vJYrEYRZE5omjCM6I/2uGmYaV1Su0zmYSs9s83wtGDPnE/fdnz3mDzSzH3YyOhC/gv3q WajCXwAib7IpbhXtSvg6H4tOSzWkgHukyUUiIG46L3NkgZYsOttyRNFcRuAXBJylNWxa gskg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fl2si251150ejc.34.2021.08.25.09.19.26; Wed, 25 Aug 2021 09:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240825AbhHYQS3 (ORCPT + 99 others); Wed, 25 Aug 2021 12:18:29 -0400 Received: from foss.arm.com ([217.140.110.172]:54702 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240722AbhHYQSM (ORCPT ); Wed, 25 Aug 2021 12:18:12 -0400 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 9EACF1063; Wed, 25 Aug 2021 09:17:26 -0700 (PDT) Received: from monolith.cable.virginm.net (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5044F3F66F; Wed, 25 Aug 2021 09:17:25 -0700 (PDT) From: Alexandru Elisei To: maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, will@kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v4 09/39] KVM: Add kvm_warn{,_ratelimited} macros Date: Wed, 25 Aug 2021 17:17:45 +0100 Message-Id: <20210825161815.266051-10-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210825161815.266051-1-alexandru.elisei@arm.com> References: <20210825161815.266051-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the kvm_warn() and kvm_warn_ratelimited() macros to print a kernel warning. Signed-off-by: Alexandru Elisei --- include/linux/kvm_host.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ae7735b490b4..ada5019ad93d 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -605,6 +605,10 @@ struct kvm { #define kvm_err(fmt, ...) \ pr_err("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) +#define kvm_warn(fmt, ...) \ + pr_warn("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) +#define kvm_warn_ratelimited(fmt, ...) \ + pr_warn_ratelimited("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) #define kvm_info(fmt, ...) \ pr_info("kvm [%i]: " fmt, task_pid_nr(current), ## __VA_ARGS__) #define kvm_debug(fmt, ...) \ -- 2.33.0