Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1108067ybz; Wed, 29 Apr 2020 15:12:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLJ9DqYfa/sq9AIZP3DF8ypkIz5D51CH6tuQJwhGNoMZaIzwE38mCJelQ8j7aTZAe0KIm69 X-Received: by 2002:a17:907:2170:: with SMTP id rl16mr4897688ejb.238.1588198361845; Wed, 29 Apr 2020 15:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588198361; cv=none; d=google.com; s=arc-20160816; b=aYty9/nhU1++wgf5LMzQ3xBouu0a+JVH9/Lo/lNxbIFq6QR2Y2sMVtL9iqwjQh/DPy Z/dbC0DS8bxAJyzcgfwjJpi2B0wYSxmbfyM6Gg0Sxh2RcGLJ6sg6s4p77geiFaAaftVH tqE3jTt0mhAP+W3ygytKSdPwjguV4BEZX4Ace1QKX81QhzknvOnLG1k/oxHhrH7rYf+x 4otYM2B9OOI2JUfnd/OC8opopMTXO//RWvJJfRpxg94lzvNdhspdVZobbdjkc0Y2xgZ2 GFpGvFrvJxiOn3jgW9Fu8WhOSINLSsNM/+hLsJ+JHJ7lgVuZCxJSoiSmDSvM/WDc55K+ nDXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=5o35AFdPST4aa7qhG3KTVMwVrY6YdNahVQGV5LeYsVg=; b=UIAMTyw+0+yVcwxCfgZEDQZ/JPnaIyZ2SD8vDmtxMAy8TpsbLE4+WVMsp4FQDsrU5G zvAW3tWSV/+ASIC14+PHPIk5zTFmMMH0etVSQ87Jm00O47+Db2phNVbNA/ln304DSlDA EaDDOdXNWCdF64dQYE5gXkAPAhof9CZMMaZUbZoaMYSt8SLYyFjuqBv5DYYiEtxJCWrY nREPlrG644qz80Td2ExaHObGLuz67dw2Q++LS0QtfZcK+kWTkmhRkalz5vSrjwUZcZnW 6rDKPoWEsnx9s4Tio+anaTt2mMgh+lj6eIeBI854qlKTdCf+W2G/jia6AStV8E3Oh3K7 gKvQ== 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 v21si4650410eja.226.2020.04.29.15.12.18; Wed, 29 Apr 2020 15:12:41 -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 S1727872AbgD2WKQ (ORCPT + 99 others); Wed, 29 Apr 2020 18:10:16 -0400 Received: from mga09.intel.com ([134.134.136.24]:61300 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727047AbgD2WIp (ORCPT ); Wed, 29 Apr 2020 18:08:45 -0400 IronPort-SDR: SY2SsYfcXBmiGC2QhnG0eqwcoQRnKBBk9kdy78bi08l1M6Jq0x/kZNzdro0vAzIBdZj5aUKeEN SAuqQg+gd41Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 15:08:44 -0700 IronPort-SDR: pyl8+Bd4jBXezcoIXBSDIWdpxBmT5fxbZMtscwTdZZ68sRQD552NLPB0eocmMMhr6/ZVJYXsUt +rhdwsCV1qvQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,333,1583222400"; d="scan'208";a="276308878" Received: from yyu32-desk.sc.intel.com ([143.183.136.146]) by orsmga002.jf.intel.com with ESMTP; 29 Apr 2020 15:08:43 -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 Cc: Yu-cheng Yu , David Airlie , Joonas Lahtinen , Jani Nikula , Daniel Vetter , Rodrigo Vivi , Zhenyu Wang , Zhi Wang Subject: [PATCH v10 09/26] drm/i915/gvt: Change _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Wed, 29 Apr 2020 15:07:15 -0700 Message-Id: <20200429220732.31602-10-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20200429220732.31602-1-yu-cheng.yu@intel.com> References: <20200429220732.31602-1-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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_HW 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 2a4b23f8aa74..789dce23424b 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.c +++ b/drivers/gpu/drm/i915/gvt/gtt.c @@ -1207,7 +1207,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