Received: by 10.223.176.46 with SMTP id f43csp1505648wra; Wed, 24 Jan 2018 18:23:41 -0800 (PST) X-Google-Smtp-Source: AH8x227wa6cA+ZCrjPUNSYZXLY1Hq6xH2cexMh1oZM+xH8wXAS4jtGVgJzg8HVNecZY16M93vcZ2 X-Received: by 2002:a17:902:9348:: with SMTP id g8-v6mr9628035plp.102.1516847021658; Wed, 24 Jan 2018 18:23:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516847021; cv=none; d=google.com; s=arc-20160816; b=cdE8bWydzRg0LFLNeRVgJhtUbFPfWBoruZeFEJKFs10YBpxD2SXVaSekM1WvCUvRox DhflfIoBocTYCGV124twkK83WxrHAez6F8K2ASJKkePpBRJV1PXAG9HOi2AdCVZs5PxB yOY5RqB21KUdyB7czApjXtLGaBDTB6v1HQhHzBTYjqA8D9C2+BpwLgdCnHIgYwmK9KYP cIWxchUnl5AxULPZAi9+MSg4p+xC3aK6QEE8QtGJy+IJtccfJBeTCUSRLX16BueOS0rT gIugxbeHSWa9BszNfmh5BJ3mCkrRtNnquML8tXJ4mCj0wesH/yel8Yc7UG6VJ5/GLJQ9 EWjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=xbyqSWAd/x7jpIM7kjttsx2KHXYk3x27uJIPbXfw8S4=; b=k5u/m0ZnAEWutC29nCoQa8HD1+7FY1c3Q4OAySb75A8urYp0he5igvDhr9PK9VnThp YqnmOL4WHfdKJE2CTKYqkI/VZhiUyUSdTxy+Gk8MzoUJfEczS/GvWdCmCXC4zm88hAtG aavCKG0S/HvPTEZ+pzFArVdfFfrAG+56ATbKqkDvxfkxmfXs2HMNOTo5MpsevtWeWn6f ibruxMgUPuGtyUSrXgX4xtAydSVsh6mswPwqmECzxn6KZLYF+riAqtZZ7Lo/CS1HrAz2 JQZFwT26wklKqkICVAa85pY+E00XYEUOM+a6Ff+iYzcbTHKEZZa4qHPP9e7vahBKaRd0 0gCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si879580pgc.708.2018.01.24.18.23.27; Wed, 24 Jan 2018 18:23:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752730AbeAYCXD convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Jan 2018 21:23:03 -0500 Received: from mga05.intel.com ([192.55.52.43]:31113 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605AbeAYCXB (ORCPT ); Wed, 24 Jan 2018 21:23:01 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2018 18:23:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,409,1511856000"; d="scan'208";a="168942820" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 24 Jan 2018 18:23:00 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 18:23:00 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 18:23:00 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Thu, 25 Jan 2018 10:22:58 +0800 From: "Zhang, Ning A" To: "gregkh@linuxfoundation.org" CC: Andy Lutomirski , "tglx@linutronix.de" , "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: backport Rewrite sync_core() to use IRET-to-self to stable kernels? Thread-Topic: backport Rewrite sync_core() to use IRET-to-self to stable kernels? Thread-Index: AdOT9XC/9ChlpK+tQrm8CDNqlNiSQf//fVWAgABIYoD//djOAIAD1DqA//5X0IA= Date: Thu, 25 Jan 2018 02:22:57 +0000 Message-ID: <027FCDD209E4CC4181A7B9D5DBB880575FDDBC11@SHSMSX104.ccr.corp.intel.com> References: <027FCDD209E4CC4181A7B9D5DBB880575FDD83D2@SHSMSX104.ccr.corp.intel.com> <20180123072533.GA17566@kroah.com> <027FCDD209E4CC4181A7B9D5DBB880575FDD9DEC@SHSMSX104.ccr.corp.intel.com> <20180124090107.GB30613@kroah.com> In-Reply-To: <20180124090107.GB30613@kroah.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2ZlZTExYWQtODRlMi00ZTcwLWFkOTQtMTIwYjYzZmZjNzJiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJidGJmbGp5RUErdnBEdW01NjVUeUxcL0doUjdGOFNaSThhV3JPR1wvTjZEWldKcE53ZWVWcEZLcHFrQXQ0TnpTM0cifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When Linux runs as a guest OS, CPUID is privileged instruction, sync_core() will be very slow. If apply this patch, 200ms will be saved for kernel initial, when Linux runs as a guest OS. BR. Ning. -----Original Message----- From: gregkh@linuxfoundation.org [mailto:gregkh@linuxfoundation.org] Sent: Wednesday, January 24, 2018 5:01 PM To: Zhang, Ning A Cc: Andy Lutomirski ; tglx@linutronix.de; stable@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: backport Rewrite sync_core() to use IRET-to-self to stable kernels? On Wed, Jan 24, 2018 at 08:19:44AM +0000, Zhang, Ning A wrote: > Thanks Greg, Andy > > How about c198b121b1a1d7a7171770c634cd49191bac4477? Why do you think that is needed in the older stable kernels? What problem does it solve? Do any distros have this patch in their kernels? thanks, greg k-h