From patchwork Thu Aug 19 22:34:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghavendra Rao Ananta X-Patchwork-Id: 12448101 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADDACC4338F for ; Thu, 19 Aug 2021 22:36:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 78C4D60EFE for ; Thu, 19 Aug 2021 22:36:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 78C4D60EFE Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Mime-Version: Message-Id:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=l1UMOz4dISFVMt8hbqqhcZfDpPc2mcWwsK7vI3oAl/o=; b=AcN yKRhcrdwRhkg/yn6GF1HDm+C0FOZpuafeEqKuWHslnkL4PKkfLvVv8eGAjMu81e0vOdD2lcmmsNZ9 5BwzfGzAz+FK7Xkr57cIxoFpDk2Zi01yF1XFHKT0UbqKKu+jowTWZkV0PFuc4ECzl1HrArErT1Vp7 wwMlNjIElYA+2q2QeYdIueoX+pHybSuXJBwLgYoNVu9Kq3g5lJNIT5nyFjkH4bLZfkDil4e3jRfYN aLY14ywul1qSzSNlEAdIkYuH1x5+0m13LAc6evyLIYnCywexRiGy6G3kP4OlJ7EkXEd+Yc8VS34Ry e0+kz98OmRHVsa702wAwvNzSMen2fdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGqc5-009ei7-RW; Thu, 19 Aug 2021 22:34:18 +0000 Received: from mail-pl1-x64a.google.com ([2607:f8b0:4864:20::64a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGqc2-009egv-8O for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 22:34:15 +0000 Received: by mail-pl1-x64a.google.com with SMTP id z11-20020a170902834b00b00130c1b330bcso185869pln.7 for ; Thu, 19 Aug 2021 15:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=bOOZsm5TnyY2OqO/UzAmnygEQIpds7n6pzsOsSOKjBo=; b=erQKmqzaST94afktv4i+np16BCzAXEK8mkPkEZqUXWbY2IpGlSRHpoHtvLy20knfB5 MUa8wp5F7LZCR2p6/9cEOCAK204tRAaWU8Mt4CZxiiAEVQMxrttwaZDW2IVdfs5oStPm XNE8g1p4Pw2Zh408n+CKCdw7JRte0Yb3UZD7swn8yWDhv1GF87O20lxAJhlxkWVEKI8A EuDbz/VdjS8po5swSsNyTmYYrJ3WzOiAetCp4cz+HcHI3aIb3l/lGHcVuHh5lAFaRhf3 AGGbkZ975qoY1uuyFtWjQ20PyjzCR2QDiQ/G7f+Xn3t+wH/tZIdPvlkEJUNuzIZajPnK I+Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=bOOZsm5TnyY2OqO/UzAmnygEQIpds7n6pzsOsSOKjBo=; b=Gclz1ucytmpSkl8YUnWsyiPQqnT3P2qQPcXLpGBAJWro6S/NcfodlLdlCkcLuxBP1z UbohnEiTz5Q5tq0yXoHhXZqB9JaeynfeRZTegVUXYj5uc8v9/JwMz3WFg7kCovFo97iE XgJP7Sb4g1Nk8W3MXDsGM1QLmDExdF5Av9HKPyoCX6dDV4ycc5VOu2f97blq832nSe+t 8V5+fgrSX3BPfcmjvMkWuzRPrUZsrSsdh+PjiXvkuxsALShIZ/IlPRgfoGiF1sM3uvkd Ej3m/HP60Xwhj4YRxgK6+M6aDQYv2ev/XgNmskwB/a62BkNge4J66LTi39HZ6Cp3us6K YX/w== X-Gm-Message-State: AOAM531N4qMQfcW9ighlxjvEY9+/R6n1h8xI3JTh6jNPmR2X794HlIbz /G3imdQ6CTlD9WL+D2LxH09uwGYazlmL X-Google-Smtp-Source: ABdhPJznI71qPa7ZgpjTnaFxnj7Q9vZ3kYUNCCBWfozdXUGInR1VVtDc+5il7yJQk0NRx7nt4l7r7n7cAXKl X-Received: from rananta-virt.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1bcc]) (user=rananta job=sendgmr) by 2002:a17:90b:396:: with SMTP id ga22mr142795pjb.0.1629412451137; Thu, 19 Aug 2021 15:34:11 -0700 (PDT) Date: Thu, 19 Aug 2021 22:34:06 +0000 Message-Id: <20210819223406.1132426-1-rananta@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [PATCH] KVM: arm64: Ratelimit error log during guest debug exception From: Raghavendra Rao Ananta To: Marc Zyngier , Alexandru Elisei , Suzuki K Poulose Cc: Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Reiji Watanabe , Jing Zhang , Raghavendra Rao Anata , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210819_153414_378476_4885D058 X-CRM114-Status: GOOD ( 11.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Potentially, the guests could trigger a debug exception that's outside the exception class range. This could lead to an excessive syslog flooding. Hence, ratelimit the error message. Signed-off-by: Raghavendra Rao Ananta --- arch/arm64/kvm/handle_exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c index 04ebab299aa4..c7cec7ffe93c 100644 --- a/arch/arm64/kvm/handle_exit.c +++ b/arch/arm64/kvm/handle_exit.c @@ -134,7 +134,7 @@ static int kvm_handle_guest_debug(struct kvm_vcpu *vcpu) case ESR_ELx_EC_BRK64: break; default: - kvm_err("%s: un-handled case esr: %#08x\n", + kvm_pr_unimpl("%s: un-handled case esr: %#08x\n", __func__, (unsigned int) esr); ret = -1; break;