From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3FF8C433F5 for ; Tue, 31 May 2022 12:16:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 93A3640348; Tue, 31 May 2022 12:16:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tB0SIgBzZA-2; Tue, 31 May 2022 12:16:02 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 40840402A0; Tue, 31 May 2022 12:16:02 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 17F5AC0039; Tue, 31 May 2022 12:16:02 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3FB20C002D for ; Tue, 31 May 2022 12:16:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2D4D7405F6 for ; Tue, 31 May 2022 12:16:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a0zDbrzt6GSk for ; Tue, 31 May 2022 12:15:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by smtp2.osuosl.org (Postfix) with ESMTPS id 8B42C40181 for ; Tue, 31 May 2022 12:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653999359; x=1685535359; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=hNAiQ7gwO4WzGADus3ttqXuH+fpzFCczEESmD6y6uic=; b=ERV5t2msuyG6jDDmy1t0MkONKb2OiC96N3gZ3fGgK1MQVQhqT+oqvM4T RNJhxcL6E5xmkkHwELDTa9+4xWe3zDb/06AxSDjb1WDON69DfUK1V5fQa 7nRDyoq/SK1Ug8HN7szj+u2gl+hQq+AjikDaQELDSIxWzgbltr7bYuqE6 Q4+scTAT1cYAyKFnDILWTiR8+XrH8Mwj2UOO4MjOo9Gbix4tVo1eeb8fG n03b/2iLQW3KuPAi6S98JPxt+SLx1VmYzSZ6G+pmphhEAZEzDxhxqX719 H4DL8jHELPepv8NQ6JBjZNDn4hmziC+gsF/VowD1dlX3shZB4zh/zMWgx g==; X-IronPort-AV: E=McAfee;i="6400,9594,10363"; a="300584358" X-IronPort-AV: E=Sophos;i="5.91,265,1647327600"; d="scan'208";a="300584358" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2022 05:15:59 -0700 X-IronPort-AV: E=Sophos;i="5.91,265,1647327600"; d="scan'208";a="706548125" Received: from xingzhen-mobl.ccr.corp.intel.com (HELO [10.249.170.74]) ([10.249.170.74]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2022 05:15:54 -0700 Message-ID: <2532cb21-5fc9-57b9-82f6-69a7577ffe4a@linux.intel.com> Date: Tue, 31 May 2022 20:15:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH RFC 09/19] iommu/amd: Access/Dirty bit support in IOPTEs Content-Language: en-US To: Suravee Suthikulpanit , Joao Martins , iommu@lists.linux-foundation.org References: <20220428210933.3583-1-joao.m.martins@oracle.com> <20220428210933.3583-10-joao.m.martins@oracle.com> From: Baolu Lu In-Reply-To: Cc: Jean-Philippe Brucker , Kevin Tian , Yishai Hadas , kvm@vger.kernel.org, Will Deacon , Robin Murphy , Cornelia Huck , Alex Williamson , Jason Gunthorpe , David Woodhouse X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" SGkgU3VyYXZlZSAsCgpPbiAyMDIyLzUvMzEgMTk6MzQsIFN1cmF2ZWUgU3V0aGlrdWxwYW5pdCB3 cm90ZToKPiBPbiA0LzI5LzIyIDQ6MDkgQU0sIEpvYW8gTWFydGlucyB3cm90ZToKPj4gLi4uLi4K Pj4gK3N0YXRpYyBpbnQgYW1kX2lvbW11X3NldF9kaXJ0eV90cmFja2luZyhzdHJ1Y3QgaW9tbXVf ZG9tYWluICpkb21haW4sCj4+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oCBib29sIGVuYWJsZSkKPj4gK3sKPj4gK8KgwqDCoCBzdHJ1Y3QgcHJvdGVjdGlvbl9kb21haW4g KnBkb21haW4gPSB0b19wZG9tYWluKGRvbWFpbik7Cj4+ICvCoMKgwqAgc3RydWN0IGlvbW11X2Rl dl9kYXRhICpkZXZfZGF0YTsKPj4gK8KgwqDCoCBib29sIGRvbV9mbHVz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