Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4831527pxy; Tue, 27 Apr 2021 13:46:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw40zPaCWwVK8BDX02l8U7lJB6BxnJ6vd+g0rfU9Zx1MgOl0raVuq8jtb0GFuY8rHKPF5je X-Received: by 2002:a65:5a48:: with SMTP id z8mr22883317pgs.71.1619556367185; Tue, 27 Apr 2021 13:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619556367; cv=none; d=google.com; s=arc-20160816; b=ovV+VHiH8f8pdzp/d+OdNkyjPq4FsDfjd7rs9jKMhRfqfK3iq95nnP2F0i2H0mllP/ Q+sXZxxTUsvuxTZnFoXB9OsOVCzKV7Vcs/ZG6FANijkQ1MOMyRW6KO8aehNYGKRY21z3 jV5rthXpCelxfprYKZ9ALn08WHToE2ug8J9oEAc+zHlczvU7l4FMO2rGC5/6pUHM2OcM tsNIJVUV4eRpWAyUC6uch0A2hwpv4FIi2rk+lQPXrdxoiRcYQaT+sBuz/5tN0wUjZnO/ 13KPowXBEw9h4iZsp6lkaIbveSO1XPSglQflma/yMzWppjCMBwVYfNn8fX5B00Dy3Vqb qsAA== 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=ZvOzfgI5wo7d/subJBmg4Tg+uutMj/FVdKPTAHKGm9A=; b=f+BJhlDsSotyScnf2ey6RPmKdEYkD3unLXSi5HwESG9WTwKuAD2uTTBSozTdfDgafo WkE3ZZ6RSDwEWgiSMDfWvN1xEvTm65m/LE/YJgWfUP4kk0egTT3sxs+TXZTm7Ufk4UF0 asxtVRMTvGFZG0nVfJ/OioSO/W8T8lIVz6uc7quy4O1ezHE0YcwiCiLUjAt1FRBmT/5n ZomzDgd2bNXxRkNOFe5S5hTg5Nja5twHYF040CpxF0WL6D/QFwrD0dPWO6IGSPICL+p4 R1Nm63FylOFhHHwT0BNvzoBU3hQeilR1QmLRUfgPVpg3FP3L+xyY/M5abmqtSuGPK/GP WlRw== 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 d15si971138pgk.293.2021.04.27.13.45.53; Tue, 27 Apr 2021 13:46:07 -0700 (PDT) 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 S239142AbhD0Up0 (ORCPT + 99 others); Tue, 27 Apr 2021 16:45:26 -0400 Received: from mga05.intel.com ([192.55.52.43]:31782 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239128AbhD0UpM (ORCPT ); Tue, 27 Apr 2021 16:45:12 -0400 IronPort-SDR: T5spPuKFAtHQMLcQrVxU9tQGEvzjK//W+irHG5EzGzUYCT8fEEdCAdQQ/65nnW+EBQ2JxQhk7/ L+/+7ps7/JzQ== X-IronPort-AV: E=McAfee;i="6200,9189,9967"; a="281922464" X-IronPort-AV: E=Sophos;i="5.82,255,1613462400"; d="scan'208";a="281922464" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 13:44:12 -0700 IronPort-SDR: fhIQad1STiOfMO1Xl7m7hbTbq5zRyOnKXEPM5z/eyo+DYYh0yiHi5PmW/8xS+Hul1JCotpf8Kf rUsRrFJTFOzA== X-IronPort-AV: E=Sophos;i="5.82,255,1613462400"; d="scan'208";a="465623473" Received: from yyu32-desk.sc.intel.com ([143.183.136.146]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 13:44:11 -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 , Weijiang Yang , Pengfei Xu , Haitao Huang Cc: Yu-cheng Yu , "Kirill A . Shutemov" , David Airlie , Joonas Lahtinen , Jani Nikula , Daniel Vetter , Rodrigo Vivi , Zhenyu Wang , Zhi Wang Subject: [PATCH v26 10/30] drm/i915/gvt: Change _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Tue, 27 Apr 2021 13:42:55 -0700 Message-Id: <20210427204315.24153-11-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210427204315.24153-1-yu-cheng.yu@intel.com> References: <20210427204315.24153-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 Reviewed-by: Kirill A. Shutemov 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