From nobody Fri Nov 22 12:57:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1715954396; cv=none; d=zohomail.com; s=zohoarc; b=In3GGDnRTiu6EMe9l82NHK8Zpwsx70wAY94pKxJxYvmIwSoTX47MZQQfnSaWbfuU4D2COg02b6fhebqekasF7YaDtnelPgYeQZL+JQK2icj5BAtuNoIEuEUVSLadJpBHp6fYOfkeITZUvsnJRb9gE+fk2COa+sWosn+GXvBY96U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1715954396; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=M+QOPgKgaP14grMwcOnBETVr6+/OzicFLEDWvdXBbb8=; b=HowcTdj61y5NpKlxGMghirNjc9sphejzZy0Q4/DgU7T/33ID82DMAlfOtyrYHet1Vla4KaDznFTG7ccFZFhcz47f9UuESfbYvC86esVw/9tcM5gi1DyTV4E3t5SnZh95J9/CJ/w5qHQmICmNClGGyYEpde+J7kjtY0Aba0BYXoY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1715954396240936.4405182894563; Fri, 17 May 2024 06:59:56 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.724202.1129514 (Exim 4.92) (envelope-from ) id 1s7y7V-00024Z-Jq; Fri, 17 May 2024 13:59:37 +0000 Received: by outflank-mailman (output) from mailman id 724202.1129514; Fri, 17 May 2024 13:59:37 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s7y7V-00024S-Fy; Fri, 17 May 2024 13:59:37 +0000 Received: by outflank-mailman (input) for mailman id 724202; Fri, 17 May 2024 13:59:36 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s7y4W-0001cB-1H for xen-devel@lists.xenproject.org; Fri, 17 May 2024 13:56:32 +0000 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [2607:f8b0:4864:20::f2f]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 433cb533-1455-11ef-909e-e314d9c70b13; Fri, 17 May 2024 15:56:31 +0200 (CEST) Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6a0b68733f5so4932196d6.1 for ; Fri, 17 May 2024 06:56:31 -0700 (PDT) Received: from localhost ([213.195.114.223]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6a15f205d88sm85754546d6.144.2024.05.17.06.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 06:56:29 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 433cb533-1455-11ef-909e-e314d9c70b13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1715954189; x=1716558989; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=M+QOPgKgaP14grMwcOnBETVr6+/OzicFLEDWvdXBbb8=; b=DfNHB3P4ZvVodkxRHlTglvtcNH2rH+3QSQw2FBxj2ekAhQoFTMutxFQG0sZ3UkpuXT yWZDUhJBxzFh8hPnPPCh/E6X5+zWQASLF9Eq56MVP21ulcS2R/iY1Db/jCTz+HMFVgk3 PcqvTuT2ETVo8JwNMVR9G7P2NCptFuS+KvcOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715954189; x=1716558989; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M+QOPgKgaP14grMwcOnBETVr6+/OzicFLEDWvdXBbb8=; b=iTaKA3kprUw6rTk7+kueIwAh7T7VuCxuZeD9c5FrfRQ4tMwo1uFbHg/inQyJ6BwTvN wVZ7g7y4Dj5NXsXlb2niAg08eVZBoSsnIIqtvyuGxINfWB9M/gpHMbW2SSOzOln5imHh QR/w2A+lfxAxxP1CH6MQm1HOMRy3N/bKpVf4u9JTQzVqQ7MjTrm9n1Ec+ikUQ43qcQYo U+KZS1+gLKioqwwrAAhQHJXiDEKrORkga/40uzHHauFmDnnhxYDuzuIDCjgrVmqFYZug 3uVXD+hoG3UbrsXwZa2TjGEuIsqAEJ9S8u5HnJAtzVVBcpHkYmsZYwp0yCxgCergJjjn k53Q== X-Gm-Message-State: AOJu0YweNm3hFbyAYsM5rJJ6uu2GIGt4ic2yxnhkql6wUqKRCUBfeZU/ WlfbWuIw+RaKKsF9RtsPHDh8xMnfsYPqV7fYPFYnhNekhMRZSYKTUCdo44UB5C2hEacbAFKn/8P f X-Google-Smtp-Source: AGHT+IHgrQTPsapkmh3V9ID2fxskDwsofaTuANyIWY+R6O9TdkN1TKqI3uGLThAa5+sDl2A9eaE7DA== X-Received: by 2002:a05:6214:2f08:b0:6a0:bb97:9470 with SMTP id 6a1803df08f44-6a1682588d5mr283883386d6.41.1715954189511; Fri, 17 May 2024 06:56:29 -0700 (PDT) From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Jan Beulich , Andrew Cooper , Oleksii Kurochko Subject: [PATCH for-4.19] x86/msi: prevent watchdog triggering when dumping MSI state Date: Fri, 17 May 2024 15:56:05 +0200 Message-ID: <20240517135605.94781-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1715954396761100001 Use the same check that's used in dump_irqs(). Signed-off-by: Roger Pau Monn=C3=A9 Acked-by: Andrew Cooper --- xen/arch/x86/msi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c index 19830528b65a..0c97fbb3fc03 100644 --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -1451,6 +1452,9 @@ static void cf_check dump_msi(unsigned char key) unsigned long flags; const char *type =3D "???"; =20 + if ( !(irq & 0x1f) ) + process_pending_softirqs(); + if ( !irq_desc_initialized(desc) ) continue; =20 --=20 2.44.0