Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp949119pxb; Thu, 19 Aug 2021 15:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8U3j7BCKYDVuNuhIK5wzwhFuN0BP6HDCpcmRTBOUUJEHL+LCXTPhC/TlC4JPYgSvbbSKO X-Received: by 2002:a17:906:af4f:: with SMTP id ly15mr18333817ejb.175.1629412677558; Thu, 19 Aug 2021 15:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629412677; cv=none; d=google.com; s=arc-20160816; b=ZqJ4wQvtNo74cd3D1RVMaT/J1Gat8Nz5rj843nr+EN7Zi0HApMdmJ9gKhX5xMst6st 5CaUFiSYD6mI2xVWAmp3Yd28K2PnfkfWqByOlbjnZ4V7vTuPfoDDgMEezQAjMLaaDJGG ehxweFlZwlsGPUAUsLaXLKi6ZrR9/ipjwk+nicmbTKfPerQWkec8/QFb6OA7OwvP5YVj eiM+Lk64ABKgQZ51hwXLUQ4ZCMgIST8jVgwkf9vU209yyngbsNEkQaGstGescBIa1ru+ EGsZqQkKnd5k0uNUt8GY3ynyXL17+/Pfpqw3SbUz9HcrNY0RI4fic7q5N1KThSJeFmlk jTAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=bOOZsm5TnyY2OqO/UzAmnygEQIpds7n6pzsOsSOKjBo=; b=B6U+pyGfzAGD3etVHeC/IHpeyXyBBfW2YQkoWSJa7tWxGq03tsm6i8vkHntDhHwkHu GnmKQJzwGWGVObzscolyi4ZB+I/ieSUKC/VELPmLSI7MJOISsfMOlhStZ7AX79WxJyE2 HXCBJC2d0Ltte5CD3BR6S6WIoKnKzS8Dr8vPsWHyJlmmdY7oMg2vsVXLr8E0ugb5D2/R Xss5MHdC+wiUW2gqp4S8sklAH1E0Y60QvAED+yPHaq02DXBUiLRmrlOrcgzO4d3mS6Ow 08IaDNiMtvpdD9sEaZJI9Uv8zsf295dpXj/e2HfrQsC+dAud/3hHSlnLjSE0NABIz6N+ EX9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=erQKmqza; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci1si4516755ejc.747.2021.08.19.15.37.34; Thu, 19 Aug 2021 15:37:57 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=erQKmqza; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236222AbhHSWex (ORCPT + 99 others); Thu, 19 Aug 2021 18:34:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233391AbhHSWes (ORCPT ); Thu, 19 Aug 2021 18:34:48 -0400 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4EEC061575 for ; Thu, 19 Aug 2021 15:34:12 -0700 (PDT) Received: by mail-pf1-x44a.google.com with SMTP id g17-20020a056a00079100b003e1010a1ad4so3673310pfu.5 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=uiMJMQw1ZGl55cCSrrn6IaRPZg24VcVXQB6VC6RrxXK2MbSU2ZBfCVydoUYxQnB9dg bgS6ABCZPzRlY0tvs7xuRNgwr9DgKiBkyaJ8rJxpVdoxA2Zc+cXNd5l5TqTH96gJlJzX a2mF5oMl667M6QiUn5NfA4owCG/QA994x5UyynDnl1XXALmhyzRDZivVZb/d7XlVftas OwWf8eGTOGnnH0ZzuYTNE/ZLlJDe2EhKm0b01Mv37CJhkx0MD/c+FiKTQV3IZZIx+aGJ zqYcMywkaZsj6DkHIyJveitVsDwAJFHsWIkVCM5pZXrh3fLsCy6yofoom6+MGyHMLWk/ pAJw== X-Gm-Message-State: AOAM530sUwfjyebTakC5QoezVYTV5ZyQpbCuLITdADbGK+vOLaUKxsZ8 Cd7j8yFZvaPTmogOuk7dJY8E4ItWAD5p 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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; -- 2.33.0.rc2.250.ged5fa647cd-goog