Received: by 10.223.176.5 with SMTP id f5csp448942wra; Fri, 9 Feb 2018 01:36:23 -0800 (PST) X-Google-Smtp-Source: AH8x227w//oBOJrxsKNhfCc8dSWb+R8n2wsHRwYqZVf7mE0it4vr23Kwuwgl+ILjz8zhwasvnX5Q X-Received: by 2002:a17:902:7510:: with SMTP id i16-v6mr2038949pll.220.1518168983848; Fri, 09 Feb 2018 01:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518168983; cv=none; d=google.com; s=arc-20160816; b=gg2RYzRGVVFzU0r+YUfkhvf60vUVmru/gsFLHb06YRWS5pSXfDDrOQLsTi+E8x3jKE 2i761Mc1x67UH2XTUvdlgjjXGyA+isc8yzfD0pZaPVXZ1Ene+t1pN5mcDk9Pm7xmyAzp PbvGn1TZQChQGdUH63VPPJ3uwIK5ssgprSF8IckWVIiK2Dm4qAdEa/uWWv0hqxyWaOM4 3VGyLQfmLWLq7HH4gwsM8Uf05Q6o+8PBuWucYnCrj6N22cbISLylY15HIFwHjSQEIME1 wXHtTC33E2M7XX9AxUAjbwFv+icuHiR2TXtiw0fXE3I9MpVOSKcg2rYqweWsJZ5G95kd gZwQ== 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:arc-authentication-results; bh=1NttUfG1dbBu4q1Ghm8E6zuzd47Oa/dg7nGYF58eE7I=; b=oJFkDSewZeZ4JC024LBlWchn1Gt3R4j4nt+2EVPlpGVha0xUruyBPCjEKL/feH5DDT vHHz8ufTJzAR3dNXJQRsNWIZWMYngfrKA0uODi66SgXHejzL33M3dEnYvGi+kuZfyx1w ZoZ7SqH6h7EoxJL8o2hJmGxV9rH4jDRf/ckpchGE/iL06WvFCfezUnzDsvfJol6Zn2Sc lHTCxUsWUYjbRJtYtwPgDQtklSfZAjwu2M4mVXOT1okKkeHgIH8m8XJT2l+Ap+hCShHJ lB0qdbCkbH5boNmezFdzwoBJjwxt+kVaNnKfAdIE9VLRH4XSnHZqI9mXvpxy4XYRaN11 id6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=hbQ6+qgh; 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=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a195si736119pfa.271.2018.02.09.01.36.10; Fri, 09 Feb 2018 01:36:23 -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; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=hbQ6+qgh; 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=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752782AbeBIJb6 (ORCPT + 99 others); Fri, 9 Feb 2018 04:31:58 -0500 Received: from 8bytes.org ([81.169.241.247]:43688 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752222AbeBIJ0D (ORCPT ); Fri, 9 Feb 2018 04:26:03 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 5E1208DB; Fri, 9 Feb 2018 10:25:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1518168354; bh=0ilAIzI+qpLTIVaeC6YdYQfy36SzTMwsYDPM5n3IOjg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hbQ6+qghIgpSNXtCj2xLkqy9xvTH4eszMs/e82ImIx2AJg+Bqq9LZda2oQak71QcF TKlO8CfmYAtqXPGDHRG/UJkWClAqxBDBJSaaWr8f1sFh91V0evZxTEG9nxG44xBmxM OmD9a6R0qcylUBKhIrGN3a4/lmR4Wz00gwcreRViCcZeecISMyLfGKYe1xO80Ntous TIXRNxUqxz+tGFzzI2diZWF/cB7isVHxvClq09yMH2wYHpxTnHfHmK5EnTjsbcw8oG sBQf22+ieBGlcg2jQLD76CxQCFzfucpGpzgDpoHlqcPgsjVWRN3kBmhSy0rrQ9wC5W RY0lFslLyvb6g== From: Joerg Roedel To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , jroedel@suse.de, joro@8bytes.org Subject: [PATCH 23/31] x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32 Date: Fri, 9 Feb 2018 10:25:32 +0100 Message-Id: <1518168340-9392-24-git-send-email-joro@8bytes.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518168340-9392-1-git-send-email-joro@8bytes.org> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel Move it out of the X86_64 specific processor defines so that its visible for 32bit too. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/processor-flags.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/processor-flags.h b/arch/x86/include/asm/processor-flags.h index 625a52a..02c2cbd 100644 --- a/arch/x86/include/asm/processor-flags.h +++ b/arch/x86/include/asm/processor-flags.h @@ -39,10 +39,6 @@ #define CR3_PCID_MASK 0xFFFull #define CR3_NOFLUSH BIT_ULL(63) -#ifdef CONFIG_PAGE_TABLE_ISOLATION -# define X86_CR3_PTI_PCID_USER_BIT 11 -#endif - #else /* * CR3_ADDR_MASK needs at least bits 31:5 set on PAE systems, and we save @@ -53,4 +49,8 @@ #define CR3_NOFLUSH 0 #endif +#ifdef CONFIG_PAGE_TABLE_ISOLATION +# define X86_CR3_PTI_PCID_USER_BIT 11 +#endif + #endif /* _ASM_X86_PROCESSOR_FLAGS_H */ -- 2.7.4