Message ID | 1531308586-29340-26-git-send-email-joro@8bytes.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DBF5A603D7 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 11 Jul 2018 11:31:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E09EF26861 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 11 Jul 2018 11:31:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D481D27DA4; Wed, 11 Jul 2018 11:31:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C32826861 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 11 Jul 2018 11:31:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B868C6B028A; Wed, 11 Jul 2018 07:30:18 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A98776B028B; Wed, 11 Jul 2018 07:30:18 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 931516B028C; Wed, 11 Jul 2018 07:30:18 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by kanga.kvack.org (Postfix) with ESMTP id 348236B028B for <linux-mm@kvack.org>; Wed, 11 Jul 2018 07:30:18 -0400 (EDT) Received: by mail-ed1-f70.google.com with SMTP id c2-v6so9864472edi.20 for <linux-mm@kvack.org>; Wed, 11 Jul 2018 04:30:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=sBmnEAPtOXXVsp27L6zoCbiR5jvnoXrdbebyRH4BDuY=; b=dgqI9LShbYPtNFggxMNAjRk32xpPP1CMRkURroE5JkXfXqoSTL8s4vB/pBevZDRyk0 XNyyjjQpKHECoA9mOM1Oi1Ey6xfB/zglAWJ6mwFnnGKqaLT9chlS07ROkRK7EJVCY3BT g03FWYNUkfLHQcGLFt7um6Y3UO+dmRIiWI/bR5G/hfYSKfSWMGl0Lnbs6dy4bpCJMAO6 kZrkPQCyxbW9xhgH6uSpxf6zXtdEUCmu0BIsVtO2w2mBezC4LoUQhzwsTC8DrvNujN83 w/7Zt0F5pHRnJ5scWe+af76w5y7QAFoZuDjf3OwmDcvtIZDFcVKAkTlDUyQkoo4Faj9J GKJA== X-Gm-Message-State: APt69E2sRXK9p+2x7ZYvo9dFfPQ0aIgqyHxDpOWx/VAXaxzXlHqsLJRV AQ+QBJMqqiwLauTV0yUfZ08nR4o0Cdh85wHUYCSO9sdV+NdSHtPMLm1g/OBHzgfLqytZioqGxD8 i3O/r+20NH9lOcQGdeMSoWflG/ntS3Ogem/sV//ipRLhNPgVPWOwNO2NXVkKRz7Mhug== X-Received: by 2002:a50:a2e5:: with SMTP id 92-v6mr29605132edm.106.1531308617776; Wed, 11 Jul 2018 04:30:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc1Wg6x4X57DQRF+2BTToZ7V5ExBy9qK/HTB1KZLPFrGMLnqIlnSuk3V+nXeB/fDa7p9ClE X-Received: by 2002:a50:a2e5:: with SMTP id 92-v6mr29605097edm.106.1531308617078; Wed, 11 Jul 2018 04:30:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531308617; cv=none; d=google.com; s=arc-20160816; b=uuRXg7cEaui7hKWP+wGnxg2/C0txkG0tYvYyKCLvOIBOEXu7oKE9PojQC2ShFzmo4R xkPftD6KE0T6LGtaJOYZtiqPDY6fPO/7yz/D3xtjnjjuGvqd+48yNIA3s0giM2OEK2Ge eOgOMYe7IokPwgdqPgom65o4koQw5qAHR1i1LVyvJ6HKbEGU7ClgtmxvnnXVP4KmN60b lAGWdsW5Dgb3lkwypLAexFxsq7ppDExGQwUaRLEDLrarAGi0tCXreclPHpH8stvu7yrX /D3XKxepeHaMhZr6V4Og0EIE/n+Hg3lINF8YA4Ktkdu5mK+woybqeHdyGtAXJZ9EM+Tb /alw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=sBmnEAPtOXXVsp27L6zoCbiR5jvnoXrdbebyRH4BDuY=; b=ItxW4CwYmKsPdLs69FE+DHzBcItigaVSKF8UFoDNEj86z4lV6sGweYh/b7le8+r1YM Uwlh4V0llZTo+xJZorjmf/lARMCsDCP5rklAEN7MYTccMpMk/deUVFtC/Yx4voG07khL r1J/7g4gpqzoaIzLk4IL30bfgqvVKl7/dBwU5p/kJ8swRxgHnKvXvPmD9RUhxyEuTPET E1r6QQgFfRcRBSyN/sytF98UFFwe4dy65PYb15dPW5tROnwacga9tlM+5R/rwJeoPlsK sEHXxqIo39cMvGDXlEhneqNlr4UyG3FCNKH1zom+k7r9WB+jiWWLOLm1gGkSU9WnPdhC DtwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@8bytes.org header.s=mail-1 header.b=K1qaWTCi; spf=pass (google.com: domain of joro@8bytes.org designates 81.169.241.247 as permitted sender) smtp.mailfrom=joro@8bytes.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: from theia.8bytes.org (8bytes.org. [81.169.241.247]) by mx.google.com with ESMTPS id w27-v6si3146501eda.272.2018.07.11.04.30.16 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 04:30:17 -0700 (PDT) Received-SPF: pass (google.com: domain of joro@8bytes.org designates 81.169.241.247 as permitted sender) client-ip=81.169.241.247; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@8bytes.org header.s=mail-1 header.b=K1qaWTCi; spf=pass (google.com: domain of joro@8bytes.org designates 81.169.241.247 as permitted sender) smtp.mailfrom=joro@8bytes.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: by theia.8bytes.org (Postfix, from userid 1000) id 62D9C1A02; Wed, 11 Jul 2018 13:30:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1531308606; bh=/Ih1ouATHKIWwXvRWuZbzp4GcZEjnBzBwjH19GfP9H8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K1qaWTCiYEIeGoja1MADwaRUEFV7efFEYqjiiENH/jMjn0ibNSfGtKNg3d5/jQMce 1/VXi/jiEItdXi/xdKfuuer5EFTgtQe3a3tgqWlvtRr2hWo8GN/9mJOjnHM4FioiB8 MKW00TIM+CzEoUfBvcHYrrT0TpUPN0cAxrCRbORHO/bJfA2MCsFs8/Xjse6KQhhP8O Z9OGQvQntQlAIvCNzzE6O6iOcy/xX/k16U4n2hzx7GfAsOFchRfIYklC5DInePkMbF gtK5Ly9vv5q9R0kWUWgeNil1iGFq6MSc8zBlGNz10iLv40K5HZHT8GAnIii+0rjO9H JEc44yaHlzGNQ== From: Joerg Roedel <joro@8bytes.org> To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@kernel.org>, "H . Peter Anvin" <hpa@zytor.com> Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds <torvalds@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, Dave Hansen <dave.hansen@intel.com>, Josh Poimboeuf <jpoimboe@redhat.com>, Juergen Gross <jgross@suse.com>, Peter Zijlstra <peterz@infradead.org>, Borislav Petkov <bp@alien8.de>, Jiri Kosina <jkosina@suse.cz>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, Brian Gerst <brgerst@gmail.com>, David Laight <David.Laight@aculab.com>, Denys Vlasenko <dvlasenk@redhat.com>, Eduardo Valentin <eduval@amazon.com>, Greg KH <gregkh@linuxfoundation.org>, Will Deacon <will.deacon@arm.com>, aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli <aarcange@redhat.com>, Waiman Long <llong@redhat.com>, Pavel Machek <pavel@ucw.cz>, "David H . Gutteridge" <dhgutteridge@sympatico.ca>, jroedel@suse.de, joro@8bytes.org Subject: [PATCH 25/39] x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32 Date: Wed, 11 Jul 2018 13:29:32 +0200 Message-Id: <1531308586-29340-26-git-send-email-joro@8bytes.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531308586-29340-1-git-send-email-joro@8bytes.org> References: <1531308586-29340-1-git-send-email-joro@8bytes.org> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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 */