Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5559301imm; Wed, 12 Sep 2018 07:46:50 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZEjsarotzkdJXm5geC35i4Lv6bHeON5Ae7daoaNLTJOj05hVCjIwOuu5QFXsmhPRDE9/pO X-Received: by 2002:a17:902:ba86:: with SMTP id k6-v6mr2736303pls.84.1536763609840; Wed, 12 Sep 2018 07:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536763609; cv=none; d=google.com; s=arc-20160816; b=f7sYSyu4WCG+s7sLSWsWhScTwRvRskRbbgv0LK2OpSoF1J2ruwpV0jQBh/hHMMGtoY qkPVXh4tmkvgAEhn9uhYw1ip2UFxrwfFgtHXl7HzHz0C7msMbDE12ntrLC88mh8lZ3IE gGEW7o7T535x4ACbZGMtJc4NajBLY/uhElYTeYnhSLc7l1R7f1wQYMHoPgLy/dlR27Ic j51e78/sNYopxnoFnwijNIAnMCgRfujZJhSlaQZ/8OV1aRTP3EtFXe2K9F/MvHiG4ZJj 9DWJjxZCWqIXOk0OQHXY+nIo3XVNqRHDAss27mEcTcnmJNRtlDQBSweJFtrqJO5QUNyq GoXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=MEkFUdhatU81cd/6CNGwUOFEf7dJ6l9UqhcYhOm2uRo=; b=iGmV27J4s0WKKs6WR68eVucmXZ8Rh2eWPv2sSmuiM4DsqEhi4Jknazc2Q7UocHcLGW Gyjuyn+pLQymUqTWdPl9AXQlo37BYpKy3F78dbWmCo87Jm7tr/KN9hBtwkeEmovl+Byy FhjB5ta9JoPk//vMlOtFQcRO8AGsr5IWliYCr7fJKe2r15EVcL4LVx7useQDofnCODhP kUYUdirlx4bQfdKlbbmXPaWMbFjHjE3ntyLI8oZ6L3TnhgU8OeU8ifyREgY88u/g8qfB S2t/Lbpf9YrJnTADFdA5RNcmc9e3hsN38Vcjiq21Y0lgY6jZBpVZn9wInEq4GoorwxEA rDag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=q9ARnH5f; 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 a8-v6si1487884pgm.201.2018.09.12.07.46.33; Wed, 12 Sep 2018 07:46:49 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=q9ARnH5f; 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 S1728256AbeILTto (ORCPT + 99 others); Wed, 12 Sep 2018 15:49:44 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38592 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726819AbeILTto (ORCPT ); Wed, 12 Sep 2018 15:49:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MEkFUdhatU81cd/6CNGwUOFEf7dJ6l9UqhcYhOm2uRo=; b=q9ARnH5fAdoVUFOBv1tae/ZOB 4nIaZoWAUNOMHS7qZvfWxRUzRI/RaVI15s5RB0ck34RmwwQOtWhDoReS5k1DCUYwlDTQN4R1I/WAe ihJnEUexBf1XGqvISN80kUBjkn7gWyYl5DYy61IJFaHzSiW9tb6c0EntFnIZ6jZaXQLlbTc/RlvBR 5w0j1Kg/WdA5SniktkgI/Xq0/a2PEaVQB5ay09A43ZA2xtlE1QvK9v/7g5woBmCdZ7SsTSDhhMXu0 7XeCiZJc5wPPNlq8xdjYgeA6fV5v+x2RWD15AxlsOCjjuU7cMzDbsYnygH1ifILjPUE1U/k1Xk7v+ 9qznGS8Qg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g06Nr-0007dH-Fh; Wed, 12 Sep 2018 14:44:47 +0000 From: Matthew Wilcox To: Ingo Molnar Cc: Matthew Wilcox , Waiman Long , x86@kernel.org, linux-kernel@vger.kernel.org, Richard Henderson Subject: [PATCH 2/2] x86: Enable named address spaces for percpu data Date: Wed, 12 Sep 2018 07:44:42 -0700 Message-Id: <20180912144442.29271-3-willy@infradead.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180912144442.29271-1-willy@infradead.org> References: <20180912144442.29271-1-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Henderson For ease of disabling this feature, split the actual enabling into its own patch. Signed-off-by: Richard Henderson Signed-off-by: Matthew Wilcox --- arch/x86/include/asm/percpu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 30a08d0d95ee..f3c5eebcbc86 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -5,9 +5,15 @@ #ifdef CONFIG_X86_64 #define __percpu_seg gs #define __percpu_mov_op movq +# ifdef __SEG_GS +# define __percpu_addrspace __seg_gs +# endif #else #define __percpu_seg fs #define __percpu_mov_op movl +# ifdef __SEG_FS +# define __percpu_addrspace __seg_fs +# endif #endif #ifdef __ASSEMBLY__ -- 2.18.0