Message ID | 20180830143904.3168-12-yu-cheng.yu@intel.com (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-2.web.codeaurora.org (Postfix) with ESMTP id 1028D14E1 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 30 Aug 2018 14:44:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F36AC2B560 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 30 Aug 2018 14:44:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E74D92BC25; Thu, 30 Aug 2018 14:44:15 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham 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 794932B560 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 30 Aug 2018 14:44:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CF39F6B5223; Thu, 30 Aug 2018 10:43:47 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BED596B521F; Thu, 30 Aug 2018 10:43:47 -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 471D36B521F; Thu, 30 Aug 2018 10:43:46 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by kanga.kvack.org (Postfix) with ESMTP id 785606B5222 for <linux-mm@kvack.org>; Thu, 30 Aug 2018 10:43:46 -0400 (EDT) Received: by mail-pl1-f197.google.com with SMTP id g12-v6so4067923plo.1 for <linux-mm@kvack.org>; Thu, 30 Aug 2018 07:43:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=uEehs0O2dwcwadl6JEivnjVZo1VhN/AB3p8NrI/AVMM=; b=NHXpEJZmh0RaPkbDE+qgSdLq1VPEfGibunzGbqN5OLEcUt7ug4j0R/Kbck4wsVBgE2 bIdHJ5cz6VagsfcbbtQEHY1uPLMHwHLcMJ9D3LjdFv5lS7Fyi+mqlFKcOu7jVWTkos5R JcIeiO0ZUxHExnfahz6TTN6E6E+q1GCQ0UxiOeAI+rpw0pSg6nlxxy/xxmRBLs2kMtOA gDNdSoxuBUNoj7XJRlHG3HoOVSWbcw8jvsAetS4XfQgZ3wCutsXqaSrqHLb7ZWOgj5aE bRFIYrMxo2Rk+EABb7I6E+SG2dM2ee8L60IH0PEEhOXq7End95AQ82ujCXiyOvGDRmqB nwXw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: APzg51AUS6Ah9FaVRwEWkfX14go/zlNn5V/NEBT6fxRIrTnKIyg6RUgS nu9so6LXwX7aYKk5+bV9K7Id1BqXHmiHGSaQ1ctVk+t6L9EKpK4D8V6l607o35X/n4/rfk5Whz+ roMxdaZH0LN0Br3GUmvNWM/VOKzCmW36qV/e/YbLoICegXewKQ1RhfnltwdkrVQnCxw== X-Received: by 2002:a63:2c0e:: with SMTP id s14-v6mr8334561pgs.199.1535640226149; Thu, 30 Aug 2018 07:43:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYwDdLJI8toeT65h4ujfSh0vJTz5Cp1VqYpGhuVteHhBmgPnJPO+U7yXzdxztvQOMveFn3z X-Received: by 2002:a63:2c0e:: with SMTP id s14-v6mr8334521pgs.199.1535640225236; Thu, 30 Aug 2018 07:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535640225; cv=none; d=google.com; s=arc-20160816; b=fj7QEwVzs5Mr6TnSoDWfZm60ZfA/16cPoW/diJN67KKsA4g8UMMo1eNScYrNsInYp1 BEgtLIxYWAz9EiNEZOSQOPjqH+mMwIJxi9r0XXjNnIVrK9soMZY2hoRx/jqSVbgTsbWm W4bqn+o1PazPmTdBw8BNRp+dUAqqrmPFIOOS48m9P+dpQMDmR0EwlhdcqawArykQY5uD MCzRr1P23zc5I3b+xZcwRFfWgtFiTXeQis9PtEHLn0BWH5aazkObYolBWW6OZ35USfxn 8+wsXj1/JJEVXcs9LicN/EpgsApbddNnxwnb0oIbIAC0fb5Jed3aN2Z4VgU6MljaFKEi 60sQ== 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 :arc-authentication-results; bh=uEehs0O2dwcwadl6JEivnjVZo1VhN/AB3p8NrI/AVMM=; b=jgmagsFc3rP50Xr0rnIZD9owkCV9gX69fCyrt6L97r7agBSY6dyDI0qesWJJuhlzQt /IF52OKhW4CrEIXI4TzpdAh2Q4LqqpRpC+09YH9Zm5FZ437ZstZsdN6kcw1O2/VgH5oK 85dEHG98uQFeOcozZwsMGuAGG5t1FcVKlgEgnoxpkwLouP3KkQrs+KVIULnNcCpwG+o0 ygz0hQx7K/G3w3W0Js8uca9eQVa0rvV7ggG4OaAaZBKvzin6cyX18MGv3ARVnLlV/2ec M6DGr3b9Gm0/iM8TindiD3xoNmhAbi8QXU83JtkxOuM/MXU4Mr/wgzVnS2aKm2XZTNSC TufQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga01.intel.com (mga01.intel.com. [192.55.52.88]) by mx.google.com with ESMTPS id w13-v6si6403728pll.449.2018.08.30.07.43.44 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 07:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.88 as permitted sender) client-ip=192.55.52.88; Authentication-Results: mx.google.com; spf=pass (google.com: domain of yu-cheng.yu@intel.com designates 192.55.52.88 as permitted sender) smtp.mailfrom=yu-cheng.yu@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Aug 2018 07:43:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,307,1531810800"; d="scan'208";a="67186712" Received: from 2b52.sc.intel.com ([143.183.136.52]) by fmsmga008.fm.intel.com with ESMTP; 30 Aug 2018 07:43:41 -0700 From: Yu-cheng Yu <yu-cheng.yu@intel.com> To: x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Andy Lutomirski <luto@amacapital.net>, Balbir Singh <bsingharora@gmail.com>, Cyrill Gorcunov <gorcunov@gmail.com>, Dave Hansen <dave.hansen@linux.intel.com>, Florian Weimer <fweimer@redhat.com>, "H.J. Lu" <hjl.tools@gmail.com>, Jann Horn <jannh@google.com>, Jonathan Corbet <corbet@lwn.net>, Kees Cook <keescook@chromiun.org>, Mike Kravetz <mike.kravetz@oracle.com>, Nadav Amit <nadav.amit@gmail.com>, Oleg Nesterov <oleg@redhat.com>, Pavel Machek <pavel@ucw.cz>, Peter Zijlstra <peterz@infradead.org>, "Ravi V. Shankar" <ravi.v.shankar@intel.com>, Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com> Cc: Yu-cheng Yu <yu-cheng.yu@intel.com> Subject: [RFC PATCH v3 11/24] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Thu, 30 Aug 2018 07:38:51 -0700 Message-Id: <20180830143904.3168-12-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830143904.3168-1-yu-cheng.yu@intel.com> References: <20180830143904.3168-1-yu-cheng.yu@intel.com> 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 |
Series |
Control Flow Enforcement: Shadow Stack
|
expand
|
diff --git a/drivers/gpu/drm/i915/gvt/gtt.c b/drivers/gpu/drm/i915/gvt/gtt.c index 00aad8164dec..2d6ba1462dd8 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.c +++ b/drivers/gpu/drm/i915/gvt/gtt.c @@ -1170,7 +1170,7 @@ static int split_2MB_gtt_entry(struct intel_vgpu *vgpu, } /* Clear dirty field. */ - se->val64 &= ~_PAGE_DIRTY; + se->val64 &= ~_PAGE_DIRTY_BITS; ops->clear_pse(se); ops->clear_ips(se);
Update _PAGE_DIRTY to _PAGE_DIRTY_BITS in split_2MB_gtt_entry(). In order to support Control Flow Enforcement (CET), _PAGE_DIRTY is now _PAGE_DIRTY_HW or _PAGE_DIRTY_SW. Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com> --- drivers/gpu/drm/i915/gvt/gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)