Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp622569pxb; Tue, 1 Feb 2022 07:10:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPomf8yXLbHay96x+Rg/vapn6WHHrJ3MSYRKlesrtGqV5UvZwcSHNcIa6LHNJy6zCndXXH X-Received: by 2002:a50:baa8:: with SMTP id x37mr4319107ede.450.1643728249496; Tue, 01 Feb 2022 07:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643728249; cv=none; d=google.com; s=arc-20160816; b=LNCsG0Qv+mNkZ9p0UKI2+NkQIbcs9MCJSwtX6YnDUCFlsKZSABgAADtVkkYNyew0Rp Lz/FaaPDXLYjtiWTsHAVntoVVStkiZbk3J/sCSsespJlGZaED/RfuQV147lq3e4t16XH ybC+DxGtM3jrBlYsE64ZAB2XX8OU36/t/1N7sN/3ywyNJyHG9PneQUgpTfpbwUoSuFzq moBnkZT7NLetcvdNrgaI421cZm44PYh0E0x0gWeZSOZMEiYr1W492dXQff9Wu4FTAi8q JHYOdYZ+t+n2UAsVbnMvJSaQPovHYBjVQLQEvsDDBGVlR+MKpHxpTJsmzOX0pPkgsead 4Gpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=QJVyCVbCNPFagHOkDGyGGwzCiUOBogoSvZzBoAdPi0I=; b=WJnyv73AkC/7MFZd2LZd9U/tbI5eWrySmji5rIpQeG0w0SKwCxvjQm7AWahSOyAOy+ /Cy6QQXchYGFWKrPSh+mSueneOPCsmUjfQkuQbTBprsOVeVQlw4ovHRArNJjkNHQXtfl e/mdyRJFLkpMtuUJQC8/5wGhp+hQtxYEFyWDA9VQa2u3gWBRnqEsvJQoWV6d4N65qeNq PvOuaGRb8bZl+W3OxkEGADgphcuedal0oOLT+d5SKmwDfCcfq+zuMtEySVYW+VjwlUlO w1vJ7XO8AHfal5UKdtpFGzB6IaDwoPRjPE+Fc4ONTc3JCDNrsTipTIKuxRXAP8KeOfdo LOZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=R5qmEBhF; 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=pass (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 mp41si9860926ejc.153.2022.02.01.07.10.21; Tue, 01 Feb 2022 07:10:49 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=R5qmEBhF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356623AbiA3VXV (ORCPT + 99 others); Sun, 30 Jan 2022 16:23:21 -0500 Received: from mga06.intel.com ([134.134.136.31]:52019 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356485AbiA3VV5 (ORCPT ); Sun, 30 Jan 2022 16:21:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643577717; x=1675113717; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=+eAnCtRCGeSNI9GSLUBTMzpMHzzkOWpz+oSQRTzFUvU=; b=R5qmEBhFh7gdCtULQD9itTCPsFHLB+7JDmovQZlSK1UwgUOWU8ugIX9J bqNwIcAVKul2a+05DMoY+KFKP/qeJZ6bwJ+EtH8AGy+gt7kkTVobqXIOY 2UNeG7nkm1wl0v6Fb25tJGMDit3EZKs41rI6eMVgNcFL+l/PsCmJ/jxoA 0uz1G6YVhwooy+GkH+f6eNr+biOAycOIEuFB1T5uWL0Q0CU45q+Etrajp hHzvqwB6U2j3Juzio9ZHfEOvbsJC24AT7wInw4FJBC5em+eOHlaz7P+be RT66qM3b1iaFZEE0PEyeE5+vtVsHhz48jIHNJ2M4nbvfvuW7TSfGdtQCd A==; X-IronPort-AV: E=McAfee;i="6200,9189,10243"; a="308104914" X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="308104914" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2022 13:21:54 -0800 X-IronPort-AV: E=Sophos;i="5.88,329,1635231600"; d="scan'208";a="536856742" Received: from avmallar-mobl1.amr.corp.intel.com (HELO rpedgeco-desk.amr.corp.intel.com) ([10.209.123.171]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2022 13:21:53 -0800 From: Rick Edgecombe 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" , Dave Martin , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com Cc: rick.p.edgecombe@intel.com, Yu-cheng Yu , David Airlie , Joonas Lahtinen , Jani Nikula , Daniel Vetter , Rodrigo Vivi , Zhenyu Wang , Zhi Wang Subject: [PATCH 10/35] drm/i915/gvt: Change _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Sun, 30 Jan 2022 13:18:13 -0800 Message-Id: <20220130211838.8382-11-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220130211838.8382-1-rick.p.edgecombe@intel.com> References: <20220130211838.8382-1-rick.p.edgecombe@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yu-cheng Yu 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 Reviewed-by: Kirill A. Shutemov Signed-off-by: Rick Edgecombe 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 99d1781fa5f0..75ce4e823902 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.c +++ b/drivers/gpu/drm/i915/gvt/gtt.c @@ -1210,7 +1210,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