Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2589649imm; Wed, 3 Oct 2018 06:19:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63GqQL9x9+349BYXdOdrkWX0WfGM3QnzoBuSrQnkR/WxsJOdvRjZuZdPS6BLSb9Z2NeQGDO X-Received: by 2002:a63:5e46:: with SMTP id s67-v6mr1330750pgb.373.1538572765653; Wed, 03 Oct 2018 06:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538572765; cv=none; d=google.com; s=arc-20160816; b=bv9yfq0TNPoAyussGCIVSLamXnm99XQH+7aXjzqVyNpr2BE9OZkFEfO9bpRzRbj4U2 jF1Pe65cMo0S5ZYCLGipO32AGjr2EcUehXzrNUuBLB8gPZ+R93DsjUqqwTEo5ovYaowa 3+KX/zsHi4pIDYGVnmQaRRPN56V8k6MF/hL1srINEM7uGcOqwambvDbXk8mujTOxqKIQ h5k8PD42QO5ffHM4bnuWdxUMVN0RyhOUE8K67hVWduTtWcbJjCoHnKk8/y/1Qm4TKJsK c8NrqmNhZnIgGhcw7S1o1bEHBDlKZe6g/+a8byxJsAlpzWwbYTqK++g7I6QdoDjuaz56 VNZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aL92jhB/sHh0FbWPE+o6+gdTcA0x4bLiyETEf3B6czc=; b=e0IGJriJaWtvdsODGUfD2B+HCJJbmRPdGA5H+MzyQ6CpmcxCCZYivAsFCKj0n4Nde6 l9rkkMOmtltPtwJeZiwcf6l4+fFRKxENzpRbuafQqpn5Wg3U8pkwOljX9PdyMG37aO9A G+9xD/pxiFmLa2QpnVzNfmyNS6F3ojIXceZS/skd5gmrLx5Uf6OmjaEhpb7JHtub2mnA AQPLVv4pIgXKLlMTDQqZeSaaz6c+WiGZqy3cbswQSGFw3DIlYWs1vm471rwi3rdEXxAm BX5e5U9u5h6DqjrAZC5oWf2ElqT6uQnLA4Gbn75eeGfjBjOGttMxiZsxGVehFpa6CQAg FhtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30-v6si1592493plg.179.2018.10.03.06.19.10; Wed, 03 Oct 2018 06:19:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726971AbeJCUHP (ORCPT + 99 others); Wed, 3 Oct 2018 16:07:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56030 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbeJCUHP (ORCPT ); Wed, 3 Oct 2018 16:07:15 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 85191653C7; Wed, 3 Oct 2018 13:18:52 +0000 (UTC) Received: from asgard.redhat.com (ovpn-200-44.brq.redhat.com [10.40.200.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 83FCC5D78C; Wed, 3 Oct 2018 13:18:42 +0000 (UTC) Date: Wed, 3 Oct 2018 15:19:11 +0200 From: Eugene Syromiatnikov To: Yu-cheng Yu Cc: 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 , Cyrill Gorcunov , Dave Hansen , 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 Subject: Re: [RFC PATCH v4 10/27] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Message-ID: <20181003131911.GB32759@asgard.redhat.com> References: <20180921150351.20898-1-yu-cheng.yu@intel.com> <20180921150351.20898-11-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180921150351.20898-11-yu-cheng.yu@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 03 Oct 2018 13:18:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 08:03:34AM -0700, Yu-cheng Yu wrote: > Update _PAGE_DIRTY to _PAGE_DIRTY_BITS in split_2MB_gtt_entry(). > > In order to support Control Flow Enforcement (CET), _PAGE_DIRTY > is now _PAGE_DIRTY_HW or _PAGE_DIRTY_SW. > > Signed-off-by: Yu-cheng Yu > --- > 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 00aad8164dec..2d6ba1462dd8 100644 > --- a/drivers/gpu/drm/i915/gvt/gtt.c > +++ b/drivers/gpu/drm/i915/gvt/gtt.c > @@ -1170,7 +1170,7 @@ static int split_2MB_gtt_entry(struct intel_vgpu *vgpu, > } > > /* Clear dirty field. */ > - se->val64 &= ~_PAGE_DIRTY; > + se->val64 &= ~_PAGE_DIRTY_BITS; _PAGE_DIRTY_BITS is defined only in "[RFC PATCH v4 11/27] x86/mm: Introduce _PAGE_DIRTY_SW",