Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp38230imm; Thu, 30 Aug 2018 07:49:35 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYPYXsHVQVlXYhfDloMnf8Kx1mWW9wRPgd/snjoKyZcUgIq6gs+C7l6nufhbEK4O0ljSr7L X-Received: by 2002:a17:902:820a:: with SMTP id x10-v6mr10533494pln.261.1535640575172; Thu, 30 Aug 2018 07:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535640575; cv=none; d=google.com; s=arc-20160816; b=ICGOb0DSlS+aH/hLADFP5QnxdE6VBFeQFoB1AI0z2OZaMa55gzB4ivIGpsPozdOFMG 2VaWfEPMBtdiuzHpkqxMH2q7MDVZPgYEGRTuTJuwWbNNCP7qHbePAVFLyl+nqctDHwr0 jdocmM+4u5G5rz3OTFABjmp82NGMHMBc6gxSSiQTsyGjv02Ld0Ks2KhimYI5iRZZy4q1 P6sNE0P4li9WUgdT3ku8AJcSiDAtCCT5H9A5E2CW/stM1lwyBJBq3U1TUbrA4SaIXSKy b/n7aMEF0g8YhqTA74d1pI7zOSacm0oTiF2I0w9WCy47w2Rl1JBIGaMPPXDj2PbgD++F nFTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=uEehs0O2dwcwadl6JEivnjVZo1VhN/AB3p8NrI/AVMM=; b=WYJDfPPP7V61JrB5GXIv6ZeO0j8xZ10UhaQ0mZ7a50ZIrNbk5PP+s9pyN+JQovfYWx f/A+ndmGxT5h3Fv4an9eno1X+6avV/rYfWrRk0ZpTmgzY8qHWsyCX8ZqRvSypRf7C0pW 8rrB+CCEa+Esqxxat1x4NcH2tgkrQcHGIUFxDJimZhRVzOULYYrUiz86cXPVqGRg/fg+ wXhDV3IbY52caEXx/in5qePIojrVATZHIz/jb35V9cXXeb1tqVuhHthmu71uQ7sAf7Xp gqYY3pJGxrGxvQbDlfw48lDCwYd2LTnQ3pRAN6OgYox0WM9fpgrB6Jkf6QfEj1bm7BLY G0qQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1-v6si7285538pfc.23.2018.08.30.07.49.19; Thu, 30 Aug 2018 07:49:35 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729797AbeH3St4 (ORCPT + 99 others); Thu, 30 Aug 2018 14:49:56 -0400 Received: from mga01.intel.com ([192.55.52.88]:38430 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729538AbeH3SqS (ORCPT ); Thu, 30 Aug 2018 14:46:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Aug 2018 07:43:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,307,1531810800"; d="scan'208";a="67186712" Received: from 2b52.sc.intel.com ([143.183.136.52]) by fmsmga008.fm.intel.com with ESMTP; 30 Aug 2018 07:43:41 -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 , 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 , "Ravi V. Shankar" , Vedvyas Shanbhogue Cc: Yu-cheng Yu Subject: [RFC PATCH v3 11/24] drm/i915/gvt: Update _PAGE_DIRTY to _PAGE_DIRTY_BITS Date: Thu, 30 Aug 2018 07:38:51 -0700 Message-Id: <20180830143904.3168-12-yu-cheng.yu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830143904.3168-1-yu-cheng.yu@intel.com> References: <20180830143904.3168-1-yu-cheng.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; ops->clear_pse(se); ops->clear_ips(se); -- 2.17.1