Message ID | 20230302052511.1918-2-xin3.li@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp4062995wrd; Wed, 1 Mar 2023 21:51:38 -0800 (PST) X-Google-Smtp-Source: AK7set9hrmTWYc34PUOQt8A/s1Fu6x0Ln86qHIDFhoo2so/rb4yLxr6itTWmh02BXYw6i1SjF/2d X-Received: by 2002:a17:906:af16:b0:8b1:bafe:6135 with SMTP id lx22-20020a170906af1600b008b1bafe6135mr11587508ejb.60.1677736298031; Wed, 01 Mar 2023 21:51:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677736298; cv=none; d=google.com; s=arc-20160816; b=gJUB7S+w+OVn6QUAztm4wN+hBrDo+KfgyprRUMcUxoe8mMsLrlNjVta6u86XOL9NmI WnBioomPmr6zIAUa4CcTqrhESXDqMTqTAFAqFhTYivaAOodqi33BWpQJAB+ErqZUJcXP vqVJL2sMoteHq3ITNA//E0sDLJAlbONoPq9Y1KVZifurMzxX3BABuYGYZYilyFOxWH/W cZPmSoKsJbnBHKFbgqSRu/GUgirlbwpIA7Zi9b01nt8Lr820RL6gMYTPM8PEEV0jaS9f BuNJxY4IULSFzibl7/DhRZcZaUgymOjt9U5kW/NAJEDbJ8BmCgN8EZ/HLWWT/5arG2iy wXkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lz0rIzgfQ3UdI4kxn19lGElU0pAx4EZmyexpGqpeLQk=; b=dyATA3twGC5JiBfFmFbrpzmcuST5gEXhjqEe1zWgJuBNlXhujrcnnxQR8WtS7e5Owm OkI8VmettCJnNRZ46Gm1kUx0aJfBbHoAOiQD/92pAnud/SMturYs0pkvHak6h7sEXdmj TYBJfAoa6LXVCqcyp/zuOmvu3yHbxk/7/ENrnInn0ncCbT5FOX2dOXRDySITKTC2mxuP +1NgWiQdLBnWZiNXkNN2TWhiPnEWxLJ7/2byMvSHjSYg00zT5vuv0YvxhoFND3JNBV7U LYu1X0uCN0PLCvcfW1Z5RWJ1iuiyS9jW/qAlHsV/zxKNMikj6ltEGZWhd3cSgsQDKIsT pQ7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MvS+NcCT; 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=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a50fc02000000b004bcee2b45f9si3700741edr.175.2023.03.01.21.51.14; Wed, 01 Mar 2023 21:51:38 -0800 (PST) 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=@intel.com header.s=Intel header.b=MvS+NcCT; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229730AbjCBFuv (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Thu, 2 Mar 2023 00:50:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbjCBFur (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Mar 2023 00:50:47 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE66A149A8; Wed, 1 Mar 2023 21:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677736246; x=1709272246; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CJ5cn83oehVUqkHaIiQkGH139f3gJuf37y85qUnwXYY=; b=MvS+NcCTWz/P/JGdBBZx180i+UI49OYJrJnLKHtoDmLWma28RoMjOAzl y1AoHFUayKa2Ua/dwMv1P4+JxbNJffOatKrNjbUh1+jMa02w5AJ0jcEvf AgPsjHM3ubDgun5p4uL3ier4bAsw8CRUcAKlTxjENZp9Erq34yEUx0kD0 BVZ6aJTn4KTiq7a0WxAxPbaQnmXJJLnDBrWUQ66Mzfqs31ax3jRyGAwaB uhonjlT8TSnJu2hLAsDhtE+7+SljxYScJNq9f/InrPKjaFKtlS1zoedxs eI+Tn6i4lnzGVOQ33I4aw8aXK+FzrpUAjP77d9o1gMENSKC2EKDehoQQk Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="420886998" X-IronPort-AV: E=Sophos;i="5.98,226,1673942400"; d="scan'208";a="420886998" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2023 21:50:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10636"; a="920530866" X-IronPort-AV: E=Sophos;i="5.98,226,1673942400"; d="scan'208";a="920530866" Received: from unknown (HELO fred..) ([172.25.112.68]) by fmsmga006.fm.intel.com with ESMTP; 01 Mar 2023 21:50:45 -0800 From: Xin Li <xin3.li@intel.com> To: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, peterz@infradead.org, andrew.cooper3@citrix.com, seanjc@google.com, pbonzini@redhat.com, ravi.v.shankar@intel.com Subject: [PATCH v4 01/34] x86/traps: let common_interrupt() handle IRQ_MOVE_CLEANUP_VECTOR Date: Wed, 1 Mar 2023 21:24:38 -0800 Message-Id: <20230302052511.1918-2-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302052511.1918-1-xin3.li@intel.com> References: <20230302052511.1918-1-xin3.li@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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?1759234016448911228?= X-GMAIL-MSGID: =?utf-8?q?1759234016448911228?= |
Series |
x86: enable FRED for x86-64
|
|
Commit Message
Li, Xin3
March 2, 2023, 5:24 a.m. UTC
From: "H. Peter Anvin (Intel)" <hpa@zytor.com> IRQ_MOVE_CLEANUP_VECTOR is the only one of the system IRQ vectors that is *below* FIRST_SYSTEM_VECTOR. It is a slow path, so just push it into common_interrupt() just before the spurious interrupt handling. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com> Tested-by: Shan Kang <shan.kang@intel.com> Signed-off-by: Xin Li <xin3.li@intel.com> --- arch/x86/kernel/irq.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 766ffe3ba313..7e125fff45ab 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -248,6 +248,10 @@ DEFINE_IDTENTRY_IRQ(common_interrupt) desc = __this_cpu_read(vector_irq[vector]); if (likely(!IS_ERR_OR_NULL(desc))) { handle_irq(desc, regs); +#ifdef CONFIG_SMP + } else if (vector == IRQ_MOVE_CLEANUP_VECTOR) { + sysvec_irq_move_cleanup(regs); +#endif } else { ack_APIC_irq();