Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp925252imm; Fri, 22 Jun 2018 07:35:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ5S+vaSDGQDt0aXcnXlfZE2QYU7XmvTt8+vQPLUc9XGjcBl/K3/5BFl9K55Zi0Alx0wQxa X-Received: by 2002:a62:119d:: with SMTP id 29-v6mr2068707pfr.102.1529678134468; Fri, 22 Jun 2018 07:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529678134; cv=none; d=google.com; s=arc-20160816; b=ML+rNlHLBqYYEXhTSVntf6HLEV+BDnUz0ZyG64ToReiYBYtHOgACfOSRckNizAUqk2 lMcRxSgxU0QWDBu8VwCtm8OTY7cz3Iq6N3THP0ttC6YvzV0qdYqGsBHvqErkoi3nf/LR BgM2+YIHM/wDyi0TXM3fhhLomLTAyyQyEJZTa2Anmg9os3MPbR1lRVpbwYKm3KBK1bcd uTfZzBTXxRMSU+soR3ngxO3fHXwhL3Cx/m8DTfqxwIbUMLxf8n5P/QXcGDLe0ss0mWKF /o636dAWbjQ+jbOntYeIieFHHhA/WGkyS+pqgDnnYwP8ZLaVPqkz9/91D4zROmn5niIu 96zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=K03UBt5Cxh6PS8i1l1gy8nQfABZ8sSNoJ06dP05r9F8=; b=tcd9fhJzFm89yE3sa95jSkFWT8UnOP49BjCJhqzfUpmDMe5gL5VftcZGVBQX0Wk+OK VMLFmQs+IqYpzz8rzfm6RJNdWKK1fd064a2yuPEwrtxjtfUkD1G6jS+GeyVUFh4a3kwB SFS4d6+aQb6g3J/BSfRQq9RXELcAVNyCSBBTHmI/cjreWnbyNvzfVKndCGnVB4hAinNf yNlUxLQePLiulTPrKlEXWpxBS9/qas39DTy8jxhdOVTvpz/YbDrmTMNMMPIv16O5lksr k4krpkpYVAFQoCPaJd7mVWh9pO4WRXwwbYepDBhxIQaaEXjieOp/BVErp6DdBrff/67Y vC3Q== 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 u190-v6si7887078pfb.325.2018.06.22.07.35.19; Fri, 22 Jun 2018 07:35:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933572AbeFVOdG (ORCPT + 99 others); Fri, 22 Jun 2018 10:33:06 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:41830 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933275AbeFVOdF (ORCPT ); Fri, 22 Jun 2018 10:33:05 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fWN7R-0006bp-Q0; Fri, 22 Jun 2018 16:32:57 +0200 Date: Fri, 22 Jun 2018 16:32:57 +0200 (CEST) From: Thomas Gleixner To: "Chang S. Bae" cc: Andy Lutomirski , "H . Peter Anvin" , Ingo Molnar , Andi Kleen , Dave Hansen , Markus T Metzger , Ravi Shankar , LKML Subject: Re: [PATCH v4 4/7] x86/fsgsbase/64: Factor out load FS/GS segments from __switch_to In-Reply-To: <1529536506-26237-5-git-send-email-chang.seok.bae@intel.com> Message-ID: References: <1529536506-26237-1-git-send-email-chang.seok.bae@intel.com> <1529536506-26237-5-git-send-email-chang.seok.bae@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Jun 2018, Chang S. Bae wrote: > Instead of open coding the calls to load_seg_legacy(), add a > load_fsgs() helper to handle fs and gs. When FSGSBASE is enabled, > load_fsgs() will be updated. > > Signed-off-by: Chang S. Bae > Reviewed-by: Andi Kleen > Cc: H. Peter Anvin > Cc: Dave Hansen > Cc: Thomas Gleixner > Cc: Ingo Molnar > Reviewed-by: Andy Lutomirski Reviewed-by: Thomas Gleixner