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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BAF6C2BD09 for ; Mon, 1 Jul 2024 18:08:43 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.751855.1159938 (Exim 4.92) (envelope-from ) id 1sOLRr-0007xZ-Nc; Mon, 01 Jul 2024 18:08:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 751855.1159938; Mon, 01 Jul 2024 18:08:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sOLRr-0007xS-L1; Mon, 01 Jul 2024 18:08:19 +0000 Received: by outflank-mailman (input) for mailman id 751855; Mon, 01 Jul 2024 18:08:18 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sOLRq-0007xM-9t for xen-devel@lists.xenproject.org; Mon, 01 Jul 2024 18:08:18 +0000 Received: from mailhost.m5p.com (mailhost.m5p.com [74.104.188.4]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id e18057f6-37d4-11ef-a59d-41c015c667e1; Mon, 01 Jul 2024 20:08:15 +0200 (CEST) Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.17.1/8.17.1) with ESMTPS id 461I7x29069790 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 1 Jul 2024 14:08:05 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.17.1/8.15.2/Submit) id 461I7voU069789; Mon, 1 Jul 2024 11:07:57 -0700 (PDT) (envelope-from ehem) 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: e18057f6-37d4-11ef-a59d-41c015c667e1 Date: Mon, 1 Jul 2024 11:07:57 -0700 From: Elliott Mitchell To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Jan Beulich , xen-devel@lists.xenproject.org, Andrew Cooper , Wei Liu , Kelly Choi Subject: Re: Serious AMD-Vi(?) issue Message-ID: References: <2aa4d1f4-ff37-4f12-bfbb-3ef5ad3f6fdd@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jun 27, 2024 at 05:18:15PM -0700, Elliott Mitchell wrote: > I'm rather surprised it was so long before the next system restart. > Seems a quiet period as far as security updates go. Good news is I made > several new observations, but I don't know how valuable these are. > > On Mon, May 13, 2024 at 10:44:59AM +0200, Roger Pau Monné wrote: > > > > Does booting with `iommu=no-intremap` lead to any issues being > > reported? > > On boot there was in fact less. Notably the "AMD-Vi" messages haven't > shown up at all. I haven't stressed it very much yet, but previous > boots a message showed up the moment the MD-RAID1 driver was loaded. > > > I am though seeing two different messages now: > > (XEN) CPU#: No irq handler for vector # (IRQ -#, LAPIC) > (XEN) IRQ# a=#[#,#] v=#[#] t=PCI-MSI s=# > > These are to be appearing in pairs. Multiple values show for each field, > though each field appears to vary between 2-3 different values. There > are thousands of these messages showing up. Some lucky timing so I've done some more experimentation and sampling. The "(XEN) IRQ" line almost always shows up with the "(XEN) CPU" line. I notice it is possible to generate the first without the second, so this seems notable. Every single "(XEN) CPU" line mentioned "LAPIC". The small number (20) of lines where "(XEN) IRQ" did not show up, the "(XEN) CPU" line always ended with "(IRQ -2147483648, LAPIC)" For the "t=" value out of 316 samples, 94 listed "PCI-MSI" while 222 listed "PCI-MSI/-X". For the IRQ, 72 occurred 126 times. 71, 73 and 108 occurred roughly 50 times each. 109 and 111 occurred under 10 times. Almost no other IRQ values appeared. The "s=" value was "00000030" slightly more often than "00000010". No other values have been observed so far. The other values were didn't show too many patterns. Most processors were mentioned roughly equally. Several had fewer mentions, but not enough to seem significant. I discovered processor 1 did NOT show up. Whereas processor 0 had an above average number of occurrences. This seems notable as these 2 processors are both reserved exclusively for domain 0. There have also been a few "spurious 8259A interrupt" lines. So far there haven't been very many of these. The processor and IRQ listed don't yet appear to show any patterns. So far no IRQ has been listed twice. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445