Received: by 10.223.185.116 with SMTP id b49csp2474491wrg; Mon, 5 Mar 2018 03:37:18 -0800 (PST) X-Google-Smtp-Source: AG47ELskbkgk7TS06/RxkNNMjU4riH7FoFYkOZ3YZHKslhXwoCz6HtvtBPA0PywFyYZ3zkpnDoh6 X-Received: by 10.98.234.22 with SMTP id t22mr15078933pfh.56.1520249837921; Mon, 05 Mar 2018 03:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520249837; cv=none; d=google.com; s=arc-20160816; b=cFFxq8RHBG6VHjIXVW9MnJpJ8bMsbvwez1OhmEX7dkXd6oVg5g74SB8q9MgkdILaaR +rgBUiFMoZhEt+AAXJS/2icgjK5ahB+Gdo/b995e+sYZ6RA7Qs5m+7HAyMZAzpBf9oqM 9qT7QXFhWYs0OT/LCXUm//vrLgk7itO3wwZfL7SO9wO5fA4HzVmDkHLywO7jgvyeNaa9 PDrjSz+UVyMar5N9Dac+lxw4aJNrZ8GpNTzWIwE4bn3/fH9HBoPc+9g+GBtKrF1UC4HN n/3hbGlXP7GIpQnLI8KF0H+BdQ4EA+maQf1u8c97QlyrpOto6YHbAubjDWen6ueWiPZ3 1sFg== 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=sBmnEAPtOXXVsp27L6zoCbiR5jvnoXrdbebyRH4BDuY=; b=QC4epzHgp4N1Fz3Oo35IVwOr79eKADpbhHJBBCAs3BsTlyF5Ve4KHRfn+Aba1zSgJT 0sO4Ut8sB2vNzmRUNjhtWoED2w/Fb0qWTnLrdaLu3KjCT3gbBU5UojUtAKscF4NfP2z2 Ls/P0WftlRPSp6anuqGoY6wsqJ7two+2Ll2InkU589yZQ/dVyAVdEFdpJtDHyidYN4yd brGsqrfNqMDNig8aTWSoUd4i1phayk76INgxUgb7gMvWr4yg3utzeb770M4EXm0F2fkP OT0bPIOW72HVHCHormFBGpVtkbayM78GTeo1HA6EdBoc9LR9zI5o7zxrkDXTx9cGRR2I J/iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=EWx0NU/3; 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 q19si8219008pgq.10.2018.03.05.03.37.03; Mon, 05 Mar 2018 03:37:17 -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=EWx0NU/3; 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 S934031AbeCEK3e (ORCPT + 99 others); Mon, 5 Mar 2018 05:29:34 -0500 Received: from 8bytes.org ([81.169.241.247]:55140 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933798AbeCEK0U (ORCPT ); Mon, 5 Mar 2018 05:26:20 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id A1E31423F; Mon, 5 Mar 2018 11:26:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1520245569; bh=/Ih1ouATHKIWwXvRWuZbzp4GcZEjnBzBwjH19GfP9H8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EWx0NU/31bmoOewVMLya1F85iveHU/QEz1gFRwM62fT1enKlhpTxdAvU10jPkz+ki BfX0BqakREfkS8OYb6RBCGqvh2rH7+S8rjtW4ICbK8ge/sqgHjjmsUaCV/EAavrEz2 nkgtvEYMF4ONj/0IBnRMDVsYnXomevgJffkLOsrOwKD0HO74VX/p8060XDliyDfMXl 6nbjVNywMW8xGgk50SRlPsBxS7kqowFHoFY0pc8AlCK2BrVq+zyvDMuYK+Rm2qzPY4 J3A5MyV28i8gvzEBcd8xhHU0t29JBII186Nqn1fDGhSu8ixK7TcyBul5lb1n+HzDvU qjd65ouWyZ01g== 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 25/34] x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32 Date: Mon, 5 Mar 2018 11:25:54 +0100 Message-Id: <1520245563-8444-26-git-send-email-joro@8bytes.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520245563-8444-1-git-send-email-joro@8bytes.org> References: <1520245563-8444-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. Reviewed-by: Andy Lutomirski 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