Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6144934yba; Wed, 1 May 2019 06:54:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqz25gGVDEV8ssHdAGvlhcGXthTxemzwRnxD7rajClFUmgFdt8wDnZJrePh3gXtay7cGNob0 X-Received: by 2002:aa7:8c84:: with SMTP id p4mr60187845pfd.164.1556718844596; Wed, 01 May 2019 06:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556718844; cv=none; d=google.com; s=arc-20160816; b=xRCD2qhZyLl829uxzpRyM93ZjY56rROt9juNkK3FZ0SUp8P122L/FF9LP8OM/VPXMt eMCS/x+CbW7119uBfGUuIX8tJbHriomJ+VfnX0gRjDtX1Fc/ju80kBQJB2V+4WuwnmZt UvUbY5Lpix/rperhK1RbeT7u57IQ+RwMMFZAIvAvf+Ev8qBtO7WQjPa6dTBvH0D1sif/ GtBvLLEFWr3JE1g2WfdoCjtzebBVMUPpYgYcdo3V7YVdXVhyqrUVA0eYfxfjxPKUyeLw s4Eh3tp/u9xGj1ix97t5Biq9XH6vrZzZATQ+duHgU6Q4wzhSiebMgcL6HFQ7CEOYq+rF 0j/g== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=oob0+1c97Q4jCfZby1YjoCz8V+yGzDCkcPbxPz7jnXI=; b=Ng4PAUriWrjozXchLTVTGfk6XreYdW5/dbFw6j8kPcpJeIDAaWFA0bq8Js5p5uIjlx Qq1HB5Mcq2FPl9Te8WtbY79HI5rwzJ4vh+3iPLOmSGfOiU2HEaInQHO/9lugmbgEKJbl VOO0Sg6MvwjDMmHEfvkHFeaPdN39AEwQzR8D8GnOKwnSVP7p3ShVjb2CXWu1akbZ6zyi wICYtV3UMDT6ix78+u8PwUFHzJUk4uUdOo3kYnhCB6nVwGNIEVJ/oeRzfJTFVnVLZl6T cnhJJ5dK/IoKtLdjm1LznLzWLGIZJqfnjVOVHI4FsmYjqejJm2V2g6UzWrH3sspKmbck 1rPg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m123si13124710pfm.169.2019.05.01.06.53.49; Wed, 01 May 2019 06:54:04 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbfEANw7 (ORCPT + 99 others); Wed, 1 May 2019 09:52:59 -0400 Received: from mga01.intel.com ([192.55.52.88]:44567 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfEANw5 (ORCPT ); Wed, 1 May 2019 09:52:57 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 May 2019 06:52:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,417,1549958400"; d="scan'208";a="145139334" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga008.fm.intel.com with ESMTP; 01 May 2019 06:52:56 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 1 May 2019 06:52:56 -0700 Received: from crsmsx152.amr.corp.intel.com (172.18.7.35) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 1 May 2019 06:52:56 -0700 Received: from crsmsx101.amr.corp.intel.com ([169.254.1.116]) by CRSMSX152.amr.corp.intel.com ([169.254.5.91]) with mapi id 14.03.0415.000; Wed, 1 May 2019 07:52:53 -0600 From: "Bae, Chang Seok" To: Andy Lutomirski CC: Thomas Gleixner , Ingo Molnar , "Andy Lutomirski" , "H . Peter Anvin" , Andi Kleen , "Shankar, Ravi V" , LKML , Dave Hansen Subject: Re: [RESEND PATCH v6 08/12] x86/fsgsbase/64: Use the per-CPU base as GSBASE at the paranoid_entry Thread-Topic: [RESEND PATCH v6 08/12] x86/fsgsbase/64: Use the per-CPU base as GSBASE at the paranoid_entry Thread-Index: AQHU22qy2YcgqOSDVkqDsKh+C1SMYaYcjFAAgBE2kgCAAFfpAIAo3UsA Date: Wed, 1 May 2019 13:52:52 +0000 Message-ID: References: <1552680405-5265-1-git-send-email-chang.seok.bae@intel.com> <1552680405-5265-9-git-send-email-chang.seok.bae@intel.com> <5DCF2089-98EC-42D3-96C3-6ECCDA0B18E2@amacapital.net> In-Reply-To: <5DCF2089-98EC-42D3-96C3-6ECCDA0B18E2@amacapital.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.48.92] Content-Type: text/plain; charset="utf-8" Content-ID: <4D45D011BB5F73448B22D78C6D10E8E0@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IE9uIEFwciA1LCAyMDE5LCBhdCAwNjo1MCwgQW5keSBMdXRvbWlyc2tpIDxsdXRv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