Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1517124ybl; Tue, 13 Aug 2019 14:08:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4U6NA6Xw26K1kT32H0bhTovmWim1gfqbLdCDQCqe/xyq67q06M3KqC8UufQ7F7mciDSXo X-Received: by 2002:a17:902:fe14:: with SMTP id g20mr37221420plj.54.1565730490475; Tue, 13 Aug 2019 14:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565730490; cv=none; d=google.com; s=arc-20160816; b=lUxevqFrPsRBs9o+hoisX+3/6gDV2C9YU+vMFn3F7X0egfRWbRyTiVdm4nmVfym8R/ F9fmyx0Lr8SaNnJW45u9Y4JBsLWTVIgz+3U66lt+4ficz8+mhm1wkm8kbSykGo+Tzqkk ElbHw1jDn/NqeOk0N5d1I8/fR8HGUC1JLBKjMDfgvVi/sJHQiGMhrO90kQV8Y2V71Hvz HPKrTbLeRV2YQDbQgENAIdXqOVmhX7UYmXgJv1gu64aoFVS1FpOZl6Z0YLt8aOG0b/hq WIn0GEF78bPwFBcdYFVgU+4VZz4JTq0Wn/SBk2KWfaAaH6owcVvO9gwq+eN1Y0jnvRIL jGbg== 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=vUr27XiMOiVOhKa0VYGVzQonj3eP11KUxGT2Egdr9lM=; b=EDtj8Q5ZGk8GDYKqackcFxKOD0LCYnRHV+v+qPjLgW5tiLnpqg0n3FVTgrtCChZ9Hf dW5UzJsUXjTeEUP3YbxvLx4lA+JptkwfMi3Ai5BOceAuJ4pdGsy4Ql6R26P1wB32ZjwQ hcNFYqFPuLe/KKLwx1vn5MgDcpQpbZIuuN/Mm0DeaHFAfR2AXCNUjlynOcppuVhxilzJ QMkK5C/HUHENQJEgk+27FTFELAaRjcam5EdWoMNp1CyGQm+hWnpBCB/kyXrs8nE/SIUq rbtShinRba8bUGjPx6PlPwuMZ4tREQv7Kc6NiaGeCHz7L+NSQjGzdVaoYlmTZeVqPYjj a8bw== 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 f185si4545191pfg.47.2019.08.13.14.07.49; Tue, 13 Aug 2019 14:08:10 -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 S1726823AbfHMVCw (ORCPT + 99 others); Tue, 13 Aug 2019 17:02:52 -0400 Received: from mga06.intel.com ([134.134.136.31]:16072 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726809AbfHMVCt (ORCPT ); Tue, 13 Aug 2019 17:02:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 14:02:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,382,1559545200"; d="scan'208";a="187901405" Received: from yyu32-desk1.sc.intel.com ([10.144.153.205]) by orsmga002.jf.intel.com with ESMTP; 13 Aug 2019 14:02:47 -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 , Borislav Petkov , 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 , Dave Martin Cc: Yu-cheng Yu Subject: [PATCH v8 12/27] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Tue, 13 Aug 2019 13:52:10 -0700 Message-Id: <20190813205225.12032-13-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190813205225.12032-1-yu-cheng.yu@intel.com> References: <20190813205225.12032-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 4b04af569c05..e467ca182633 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.c +++ b/drivers/gpu/drm/i915/gvt/gtt.c @@ -1201,7 +1201,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