Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp684537pxb; Wed, 3 Feb 2021 15:20:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiGONLkVXGFA7b+2SALpipxphp1keiM6TfNTwIkpqV5VSog+lqMYPVxtzldYTiELTre7Zl X-Received: by 2002:a05:6402:104e:: with SMTP id e14mr5572350edu.316.1612394402759; Wed, 03 Feb 2021 15:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612394402; cv=none; d=google.com; s=arc-20160816; b=gWTKi+l/hKu7MabBWl86dut7G9Gees2FuFHWWYOEl1Tdx4Ei3BDCx6N5r6GMhh/8XZ jEiy/1TTYjOWXlI9J2GvkKJFkCBSYfhXpL3/6wwMYtxBJho8XqQOFGuCSeeey5rsU6D3 EI3ccdVz9X+Knudj+DS2eR5CAF+KGT0qKBb3P7vJqfF64j9M+KrHoFqq8ZXlfJWAlnWD e9/VBYR0WEqjenk0SE+kvdVF4MLaKqGh+uLAhsvBLN8cNV0EBHEm/phWC3hUXnu3Z2GE wF4M2hwC7eo0wJI2HtnrQTfbJs60+ai9b0vJT0zNDzu9AfCauqVQoVe1XQknb04X0TfH kGjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=BmAExN5pglFv/YOlFJjxFIkhInzlgEiN74H/Vcm3Rxc=; b=PY/V3obT58jjhyye3xuXfPVhP2FlEk3QOSlNbkDWrKY2eytrDfwXP5UTA+rpHo0Q4W NJekW0qQTAVqjZTBLi1fLlZdVF1Z5Ubrg6dloCVbadsTioiRuJpAL+LJTAY5oBsW5djq MOtrrQn8D0BGG4g8ik/iSVDCoLsr52JTkXVE6TSJZ9ziBGpyXp8vo9e8aRbUhubXlPhM HUAj7oG1KvuRd2SgyTyKYYQ2YFv44xT/CPnsuNMqoprae3YzmG+YG3BYoHtCpSM1dqaH eM4vWBD/yVZTj2cXei+6Q9jKpAK60Q4vBxx/BuPtpqRpWFMdKGauWhsZjbEA7e9J5wC0 77ng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a89si2359431ede.326.2021.02.03.15.19.37; Wed, 03 Feb 2021 15:20:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233222AbhBCXQe (ORCPT + 99 others); Wed, 3 Feb 2021 18:16:34 -0500 Received: from mga06.intel.com ([134.134.136.31]:30214 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233213AbhBCW5o (ORCPT ); Wed, 3 Feb 2021 17:57:44 -0500 IronPort-SDR: 8uuFB6KqhtY9NyRm/ujjzRIUfmF8Bc/XypgAyekqVKAdt5CzKXsyjlwLK8PXKop/34+0iPzvJf ywlWPjD0HjEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="242642356" X-IronPort-AV: E=Sophos;i="5.79,399,1602572400"; d="scan'208";a="242642356" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 14:56:25 -0800 IronPort-SDR: m6tpGWfG0av6ZfWWYwHw2IG6iI1bRrTUXj0gVwFAsCIfLLHy+hqq1j5MO/yNwyrQ2a1IyJeugR AhEDEjKXQPYQ== X-IronPort-AV: E=Sophos;i="5.79,399,1602572400"; d="scan'208";a="507921101" Received: from yyu32-desk.sc.intel.com ([143.183.136.146]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 14:56:24 -0800 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 , Weijiang Yang , Pengfei Xu Cc: Yu-cheng Yu , David Airlie , Joonas Lahtinen , Jani Nikula , Daniel Vetter , Rodrigo Vivi , Zhenyu Wang , Zhi Wang Subject: [PATCH v19 09/25] drm/i915/gvt: Change _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Wed, 3 Feb 2021 14:55:31 -0800 Message-Id: <20210203225547.32221-10-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210203225547.32221-1-yu-cheng.yu@intel.com> References: <20210203225547.32221-1-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the introduction of _PAGE_COW, a modified page's PTE can have either _PAGE_DIRTY or _PAGE_COW. Change _PAGE_DIRTY to _PAGE_DIRTY_BITS. Signed-off-by: Yu-cheng Yu Reviewed-by: Kees Cook Cc: David Airlie Cc: Joonas Lahtinen Cc: Jani Nikula Cc: Daniel Vetter Cc: Rodrigo Vivi Cc: Zhenyu Wang Cc: Zhi Wang --- 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 897c007ea96a..937b6083b2dc 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.c +++ b/drivers/gpu/drm/i915/gvt/gtt.c @@ -1216,7 +1216,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.21.0