Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1115011rwb; Thu, 10 Nov 2022 11:20:55 -0800 (PST) X-Google-Smtp-Source: AMsMyM7QrLbDq+Bfae34ueHm7VTNGoRi68uIlORmr7xVJ6w+1d5Bln4O6rsGLoshnkKrJRnrjP17 X-Received: by 2002:a17:902:aa46:b0:186:e220:11d4 with SMTP id c6-20020a170902aa4600b00186e22011d4mr66016941plr.163.1668108055698; Thu, 10 Nov 2022 11:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668108055; cv=none; d=google.com; s=arc-20160816; b=zOC6Q3Nagq+Idw62yf6HspmuHhic11E6UtGfh+MsEORl67eHx/TlqMxRe1ioqrC8RA d5O4JBOulWKTpJbzmcvA7haT0rd3NGHP3qbiE8jKiaPjM7+Uzs3HUeIEgYuAAtMCZxaT mhxXVjNNz73+LpodP0a6G73emP6sQyo5K2jNlZlUkkaZBjg5dzZp1pQNizK5cUrrjFy/ HLrFS3sabiaCW8+kzamwnJR4hEAQNKIHV1P0QSrBvw6G4QHl1gsjAfVeDDhHlqhCbViz 2uxKrGnCDQSK8mpG5C0s7oW3HiHyUyU3yqP9vKcfip3zNlp2KhA2A9nq2smAKhG1f721 l4PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z2sf8qkUzcRCzzHZUUK3XBW0mghyO2uD9QRIcH7ecAY=; b=0FLlYmvKH06IdgvFBx/ofCzZxUVnxLzZTV9XcfAsnfaOi3hP7U4o9guagb4ijzmAiP eEEBK4IOtrXaPRJackt6n7UvasILGSanwAXPMzxOIwlVw8dMke38+NOAZ2pmR4LkvIx8 DRXjr8NVrlVud4Wy+Rv/6YVmQmCLhs89alUMXfUIRhPn/Hk5mDmHmTDO2I9J37fuHowz R4PtuXLFvyaaHb6eI9a/d7f1CTO/nA3enz83ehu9gwhpVI4Mde5GYXc7L4r2kGC9Ig82 jOV+eEr6zENeECgcpM5+ka1wuYUB2iyC6gTKP4WPQTUNTPAHJOHxlc0hCoKXjqk2MOT1 ZXAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TUFt96eP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020aa79548000000b0056f0d233a56si23808pfq.235.2022.11.10.11.20.43; Thu, 10 Nov 2022 11:20:55 -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=TUFt96eP; 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 S229862AbiKJTKf (ORCPT + 94 others); Thu, 10 Nov 2022 14:10:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231847AbiKJTKN (ORCPT ); Thu, 10 Nov 2022 14:10:13 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B924853EF8; Thu, 10 Nov 2022 11:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668107324; x=1699643324; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=aOltYfGZXNfb4QrtqdeCodHtFaXJI4WUvkI+Z6sZAVI=; b=TUFt96ePKwVmj+3NFcrVb+exvZsQDooCi1zjUEcym9bdUZ8vd2c75IZg SWzgbKHiWt8uVrALQNbmJkZj9fLgQ4MXlyWy1jbeN2auL8xWkR0dETatz gMutMXJe793PpnS079QnnRG8QkQc+69Y2qlTkNdwpx2Zb91vqVGrz7ZnQ DKNqeTkYx/WkVx60kmb+5ewc0/PPnRfACUQqrLP6/B2SpiiQA+coqMnOd 8wQfuv6/T21b3X59li9cmomkPsSW482xS7nzsFrwP0k1Xx06+l6mLPLzB 4VukqZjeUz2zDTyZ7ru+11NLNSFF6jLsQn/b3Qyo1jGKmMQD4B4RpP5jH w==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="338173627" X-IronPort-AV: E=Sophos;i="5.96,154,1665471600"; d="scan'208";a="338173627" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 10:59:14 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="966529519" X-IronPort-AV: E=Sophos;i="5.96,154,1665471600"; d="scan'208";a="966529519" Received: from araj-dh-work.jf.intel.com (HELO araj-dh-work) ([10.165.157.158]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 10:59:14 -0800 Date: Thu, 10 Nov 2022 18:59:08 +0000 From: Ashok Raj To: Xin Li Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, seanjc@google.com, pbonzini@redhat.com, kevin.tian@intel.com, Ashok Raj Subject: Re: [RESEND PATCH 1/6] x86/traps: let common_interrupt() handle IRQ_MOVE_CLEANUP_VECTOR Message-ID: References: <20221110061545.1531-1-xin3.li@intel.com> <20221110061545.1531-2-xin3.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110061545.1531-2-xin3.li@intel.com> X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 09, 2022 at 10:15:40PM -0800, Xin Li wrote: > From: "H. Peter Anvin (Intel)" > > 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 spurios interrupt handling. nit: s/spurios/spurious > > Signed-off-by: H. Peter Anvin (Intel) > Signed-off-by: Xin Li > --- > 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(); > > -- > 2.34.1 >