Message ID | 168623976753.404.15778077002111483150.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp395631vqr; Thu, 8 Jun 2023 09:25:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VBCkw4TpRo0iDpXvj5AEeB2Fct5A/v/Jdb4dGjXAi/w9qV3EkJQ8oriV9a+D/TmgLM/sj X-Received: by 2002:a17:90b:486:b0:258:ddc3:3efb with SMTP id bh6-20020a17090b048600b00258ddc33efbmr7933783pjb.10.1686241559035; Thu, 08 Jun 2023 09:25:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686241559; cv=none; d=google.com; s=arc-20160816; b=uYCtUtAsjUGKLHuGyZvms4RNmK1ZYO6s6jhNj2lLhfrTzCZ/khBhWx9X2gLZ5urvxm Yi/pZMciOjpqIZau+0cilV6WTSXm0KAmfklWJGHIsEJFcrXr4hhj91dB5/g543lLqdGN jhu5g2ojifAKAIla9e+5myAJuaEc9DrKl4tT12N4ugEcem0+AcML+ZWpewdH0uu5qShY Of3lwuWGSUJ8U97fQanLf1UC8DspeH5Ikyni2EwBErT+ulIMZY/DhA8z7tg/s6to4NX9 rZ2QrnMqM/BvIHqIMXCnR39n0QMvlFJbax+jKE7HsrgG1G3rmdWJRafLVFLtzJjPljyB qQvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=tuM5H6dKcVbkf17tJtrD+wwLgAEUVhTL/oSDY8dt4fU=; b=WDxT5o4tYDqqB1TBfQK49IolG1iw0oxTAnO3xM49uRDLsef3tnxHhJnr0XWT9YEmbg a/ggM6G7LpgyFhko2tgQv0mWAKLcsv6vike6zd4sim2ddESgAdiq+Qd1b7IOSBJYa9iG m8ZYYOht7ssOif1zpZ4TBP0ayXerjMpWOIVGFszh37nS5v/QwzNdZMCZRWJKhKeV2JLd /itGIFG7g78CPfKAGIrlXgcNJg/LNy1r5PUHIsCMm5D86gWeF+3nPfYkjzDBPoZ5iszF gpnSIbWY03uF++zwKry8NDkrhS+/uUY3lnTMSbAy7EJg29atrxGGjTteIROwrdR5mPLg 5tdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ToWxqc6o; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=PfW4JI9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu21-20020a632955000000b0053ef547263csi1172889pgb.398.2023.06.08.09.25.46; Thu, 08 Jun 2023 09:25:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ToWxqc6o; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=PfW4JI9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236788AbjFHP4r (ORCPT <rfc822;literming00@gmail.com> + 99 others); Thu, 8 Jun 2023 11:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235920AbjFHP4q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 8 Jun 2023 11:56:46 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29E692D78; Thu, 8 Jun 2023 08:56:19 -0700 (PDT) Date: Thu, 08 Jun 2023 15:56:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686239768; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tuM5H6dKcVbkf17tJtrD+wwLgAEUVhTL/oSDY8dt4fU=; b=ToWxqc6om6LA3T9lhScIy3vQiKfQJAA8wPHMnZDWjweWTqVzTlhjjBNwvCh+BIoHhBvMzW 1yjQNZ39FD7jYpLwbgTOsXWcAXIUIJyAMcefH2HFMDX1s7sv8oOW+4Cl3tvzTnaFF98jc7 aaPvQLAQLPl9r0YlqBYmQkQA8KwIMuzuNsdLjAGyfgT+Vjuc4iFRtJnfq3JxmnYoWr0bmD xiwtf3Xhyt/STUy+6UCS9u8yMuY/CEl2gaE5yU68vBMmPXuTyjEjbxX3EqILeeRaPAzZ1t 8xXgaYDN+7PxoqWf4fOhdB1RQYGE7XitMNyiiqzZ6YVXOL8E2u7hPNZcO6w7fQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686239768; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tuM5H6dKcVbkf17tJtrD+wwLgAEUVhTL/oSDY8dt4fU=; b=PfW4JI9Wd/DUJF993JhbL/8kD2J8OldbhzzEnZwcF8zkTY05sVRJkyDcl4aZW3RdexwAUi TZcrtXVrwUcJh6Aw== From: "tip-bot2 for Michael Kelley" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/irq] x86/irq: Add hardcoded hypervisor interrupts to /proc/stat Cc: Michael Kelley <mikelley@microsoft.com>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <168623976753.404.15778077002111483150.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768152428558281903?= X-GMAIL-MSGID: =?utf-8?q?1768152428558281903?= |
Series |
[tip:,x86/irq] x86/irq: Add hardcoded hypervisor interrupts to /proc/stat
|
|
Commit Message
tip-bot2 for Thomas Gleixner
June 8, 2023, 3:56 p.m. UTC
The following commit has been merged into the x86/irq branch of tip: Commit-ID: 504dba50b0c3fa02ec513d7d0405ddffba2d1c0a Gitweb: https://git.kernel.org/tip/504dba50b0c3fa02ec513d7d0405ddffba2d1c0a Author: Michael Kelley <mikelley@microsoft.com> AuthorDate: Mon, 27 Feb 2023 10:46:08 -08:00 Committer: Dave Hansen <dave.hansen@linux.intel.com> CommitterDate: Thu, 08 Jun 2023 08:28:08 -07:00 x86/irq: Add hardcoded hypervisor interrupts to /proc/stat Some hypervisor interrupts (such as for Hyper-V VMbus and Hyper-V timers) have hardcoded interrupt vectors on x86 and don't have Linux IRQs assigned. These interrupts are shown in /proc/interrupts, but are not reported in the first field of the "intr" line in /proc/stat because the x86 version of arch_irq_stat_cpu() doesn't include them. Fix this by adding code to arch_irq_stat_cpu() to include these interrupts, similar to existing interrupts that don't have Linux IRQs. Use #if IS_ENABLED() because unlike all the other nearby #ifdefs, CONFIG_HYPERV can be built as a module. Signed-off-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/all/1677523568-50263-1-git-send-email-mikelley%40microsoft.com --- arch/x86/kernel/irq.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 766ffe3..9f668d2 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -211,6 +211,13 @@ u64 arch_irq_stat_cpu(unsigned int cpu) #ifdef CONFIG_X86_MCE_THRESHOLD sum += irq_stats(cpu)->irq_threshold_count; #endif +#ifdef CONFIG_X86_HV_CALLBACK_VECTOR + sum += irq_stats(cpu)->irq_hv_callback_count; +#endif +#if IS_ENABLED(CONFIG_HYPERV) + sum += irq_stats(cpu)->irq_hv_reenlightenment_count; + sum += irq_stats(cpu)->hyperv_stimer0_count; +#endif #ifdef CONFIG_X86_MCE sum += per_cpu(mce_exception_count, cpu); sum += per_cpu(mce_poll_count, cpu);