Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1687574pxb; Fri, 20 Aug 2021 11:21:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy63ES/CvRwdILcm8N5FeCWU5IowH8Rm6X+Nov4JvVU0LxXErWPfenyhoRJl8dIoaZxCIrK X-Received: by 2002:a92:c848:: with SMTP id b8mr14181480ilq.54.1629483660879; Fri, 20 Aug 2021 11:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629483660; cv=none; d=google.com; s=arc-20160816; b=WQ65rd4eUHY+I+NXSeEp4ATTvKTTh3R/Jqm1/SCjZWi4Xto+qBle9F6kkTJipPdncg nXVnex/y2C5UBYE+cHt2D7NFJqFJduTjkIi0bRlmGdvMoU/XmQ7TirubHsTssF3ICXBS xIJUeLF6J5zBiBdUjmzLWL1JkgV4sgI5tfmd2DC38pOmTiPpHw/kwMPMlEaoMxzLK4EQ OqzuFq+Q8D6vs6TbOgcMYrsZEYw8gf9JUut3Eftfx2oOimT9cAV0TybYNOItqDMoB+r7 /ndEPMb25gp0zAxd6xJOoAKFIXJeQ1Kz1lVaNkKYkT1KhN4hVOAMRnWAzr+M/UVSvJKr 7czA== 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; bh=4HrOxzjzAYn3rErT1tohEfn00PXLdM96MQ60/Nq96mo=; b=ve3qDYDxXHybJbF8936PJVxBKhRi1+rNRTRQ8sKPZOS8kSnNfnsFgpHthXLT/n5Vgg 2OMxePHVnmCn6jpRYuTVW1qF20srA4/q3/ATd3ztef5dlljYUKLxwhLRbS+XVTI2nEir 5/3YFRqVaD0hTq4TDqB8rgv03/KmTehE4qNGy2bUPhcdM9cpzPkb5KxXRsTCmPiYX+Qe QCH2Cw62EczAADpyOQ5V0KC7w0VHXQoxNj15clHTiSbR6KtFRMZcknzqVhHqhEmrSj/2 5DGCRQykqd3VM0xGnTASyISOkKwdjvN4zkMJjxdm598aNsTyDVpQPhthxVBvdEd31xd1 Autw== 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 b4si7003342iln.32.2021.08.20.11.20.48; Fri, 20 Aug 2021 11:21:00 -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 S236826AbhHTSUS (ORCPT + 99 others); Fri, 20 Aug 2021 14:20:18 -0400 Received: from mga05.intel.com ([192.55.52.43]:22429 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236800AbhHTSTc (ORCPT ); Fri, 20 Aug 2021 14:19:32 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10082"; a="302407802" X-IronPort-AV: E=Sophos;i="5.84,338,1620716400"; d="scan'208";a="302407802" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2021 11:18:46 -0700 X-IronPort-AV: E=Sophos;i="5.84,338,1620716400"; d="scan'208";a="533074700" Received: from yyu32-desk.sc.intel.com ([143.183.136.146]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2021 11:18:46 -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" , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang , Rick P Edgecombe Cc: Yu-cheng Yu , "Kirill A . Shutemov" , David Airlie , Joonas Lahtinen , Jani Nikula , Daniel Vetter , Rodrigo Vivi , Zhenyu Wang , Zhi Wang Subject: [PATCH v29 10/32] drm/i915/gvt: Change _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Fri, 20 Aug 2021 11:11:39 -0700 Message-Id: <20210820181201.31490-11-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210820181201.31490-1-yu-cheng.yu@intel.com> References: <20210820181201.31490-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 cc2c05e18206..ca232c822484 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.21.0