Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp782251imm; Fri, 21 Sep 2018 08:12:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZMXXjTTf5Q2gwg1tzYuGZ7yhxjTBkcd53dX2r37ms++llsSMvZG4lONfzaS3xoxb/RMkMQ X-Received: by 2002:a62:e008:: with SMTP id f8-v6mr47065161pfh.208.1537542775047; Fri, 21 Sep 2018 08:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537542775; cv=none; d=google.com; s=arc-20160816; b=iZxcrYzRvfzwHOxx4KGg0mxe7NV7M4V6B0V7vT1Nutc6OMs+ktltSgeyNvdE8/I4L9 3I/Ea1BgL0AuNTgX1EmXj40nI+NLAXe9PEIUshvTkDKk+TNcGRKbxV4UaJ9oxf2ssEec N/33gKFf27FP8DJ8nadQQuapMtjwcnYYxDfLDIpAhT/7vjWaOiez2X4aDu/y2sho5e8d 4YCTLrUhAqImdwsdsUezuIftbDN1I4fD0YjgG8Aecq70aqkpIwXq3Pf3P9mhHCEA8KUB lGl59c0ioijQTVgiXaOaBQW7EZEWa7eNemu3Ep62QDkesEieoM48WdQVTLxdf2XsTlpS tb3A== 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; bh=uEehs0O2dwcwadl6JEivnjVZo1VhN/AB3p8NrI/AVMM=; b=X9rthsV/URsOYLIWnEbJzDGRv/3ep8fHZA6oO7plwPwHHa+ds8fwjhOkA7vgykQaGN OksS2aNLhBVEJMp0N7fSI+zUdoXJCGLxovNpx+l2kvWTX9EtfyAqFFpxT7ao6UcvrTXl +GjD2YITgpXZ7yZNiU6x6nEa94HlLLvYWXoDOt8GLFf+icZsBneGD6h46GIxv5/JgRry pKiG0KEghDBwcoEV2Rm6EwkgCyPcxi3u56Vnf6YbxmU3VGXumoTlmSlITcF9RTFAUTU3 G4dpEKI3ilHwK/ZoS2daNYIarLsGNOzJJymtHBS6ZlIK+UzF0oqLngEYlO01c/RHsjIY zhSA== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v132-v6si29611189pfc.193.2018.09.21.08.12.37; Fri, 21 Sep 2018 08:12:55 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390771AbeIUU7f (ORCPT + 99 others); Fri, 21 Sep 2018 16:59:35 -0400 Received: from mga07.intel.com ([134.134.136.100]:47282 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728184AbeIUU6I (ORCPT ); Fri, 21 Sep 2018 16:58:08 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Sep 2018 08:08:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,285,1534834800"; d="scan'208";a="71856558" Received: from 2b52.sc.intel.com ([143.183.136.51]) by fmsmga007.fm.intel.com with ESMTP; 21 Sep 2018 08:08:48 -0700 From: Yu-cheng Yu To: x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , 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 , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Cc: Yu-cheng Yu Subject: [RFC PATCH v4 10/27] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Fri, 21 Sep 2018 08:03:34 -0700 Message-Id: <20180921150351.20898-11-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180921150351.20898-1-yu-cheng.yu@intel.com> References: <20180921150351.20898-1-yu-cheng.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/gpu/drm/i915/gvt/gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.17.1