Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2472928imm; Thu, 11 Oct 2018 10:46:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Vz0WHFNCjh3XeVS+RXzQiD5NTN1ZFDWg/yeig92ofTc0FFr/+AS9lvGA5SJPCWiJgjnnz X-Received: by 2002:a63:5021:: with SMTP id e33-v6mr2263130pgb.306.1539280007307; Thu, 11 Oct 2018 10:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539280007; cv=none; d=google.com; s=arc-20160816; b=A69cZo85iB4GeqsYNdWH8F2yr7YC1RW2HR44NAlkVamd3U6Irm9oBieVi8cOx3Aj8v hYmrhdMZ8nhVZ5U865wkyP2P7/7ibLbRDqQYhb0wToZzfaHooPe+NJnK17dN6tek+Yyo 6d9EnZWE1Iqc0fz2yvtBfo6vEfiRoYWlCzGlNG2toNZfqCfvU6qXSlYexiWJefWe9p5z fLbPEo4HMdZw9s5jBSJj2y7JdLknMsn1Jq0brcPAXCIEkZGhnmUqej6hh+/nPH17R+jQ GAPXBzCn690/uoCBe9uow3g1OZ9+kMdHaY+rHVGwewo1oSystDbL76WbVEzyMkknaWdB Cphw== 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=YEOMYf0cXgFJATUibWDm1MuyDk4WeZ+3DIl8yamBPG5DK88lZQStVbTi+rFYIK0dq1 yXetKGUID1OSP+uEllYpE1EDBVQuyI+zxs4V4oEOnFja8Z4SZUfO5eGrymsfcIYfTv5i qggAk89UCoxUCoJlphjUURANjadnrD2ECHzRVjTFtPMffqrCCqtXYcCEhk0RwzK16XS1 LCorwKXyYDz5mKOOkS1FDJh2bMxKginl/5CfPxqPMTS7iGSJ5592AJkNttGt+ADiR2/t +j+V6wz58mJu230PEHCd5rZLrGJZ2lNl5IBTNHbD3z8EN3WkdGAMg/zG5DjXnFl99Aoq ZNgg== 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 v17-v6si29077224pgn.108.2018.10.11.10.46.31; Thu, 11 Oct 2018 10:46:47 -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 S1729084AbeJKWv5 (ORCPT + 99 others); Thu, 11 Oct 2018 18:51:57 -0400 Received: from mga05.intel.com ([192.55.52.43]:3990 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728340AbeJKWsY (ORCPT ); Thu, 11 Oct 2018 18:48:24 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2018 08:20:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,368,1534834800"; d="scan'208";a="78019119" Received: from 2b52.sc.intel.com ([143.183.136.147]) by fmsmga008.fm.intel.com with ESMTP; 11 Oct 2018 08:20:45 -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 , Eugene Syromiatnikov , 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: [PATCH v5 13/27] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Thu, 11 Oct 2018 08:15:09 -0700 Message-Id: <20181011151523.27101-14-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181011151523.27101-1-yu-cheng.yu@intel.com> References: <20181011151523.27101-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