Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4590718pxu; Wed, 9 Dec 2020 23:48:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVU9xvSGLrhgpXBtMBYW/QpapfzsYJ7+OO8we0uae4vIi9n9adxbbDM6GWBqKWNxN7Hrnk X-Received: by 2002:a17:907:101c:: with SMTP id ox28mr4929731ejb.201.1607586515657; Wed, 09 Dec 2020 23:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607586515; cv=none; d=google.com; s=arc-20160816; b=e52M/JbKtV/u2cA5+kBbSQ0L8TNqkl2g2hCYgh7JBT+/VV3M8yqmZmkLTsoTAG2dyM nNHsPe/cOEt2lXuQx5OUp8dJ/DN0yH+Smf/6Cpb3VqsqAozPHIREbFX8garSGPcOGzod oxvrqePRjb+DtDlUGch2z89lc3HWEe4PtevffOihmSFQS9hYTiRMJup+TjxTlT4H1XWQ KhxxQNscsD/i0xrPXGFxy9yiSscqwV76Xrt+piZZh6jYSWFn5OFO8lAejV343WIGMzWj o59fq3b7m26+aJWaXSxcPE4vbOrR85SEYMndnp/+2toBHZqDN1tzFdpzo7R5cBAHzCVL kY+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=vgm34PyiDqvCiun7EJj2HShwusZXOU77pBgrTwt3vGk=; b=VbzqJ/Ca1r5JaBuvZPUe2S8WKPbw++v+HiPuU/m8tBKXUT2RDDhYqGgGX48bcF99Er VxLE4ldNJDVfgCbF6Zc9ANpRXl/Gg3U2WYETGoMEsrZ9Y23J54vWK0jHSxsC4cRtSzLu SGJgt0Lbr5YGSARXtYwld+R1ioWpn0/V41AvpQrqz5hSz6wN754BtfWGETDZip31EZ+Q EWkyRRzP29qo+c5L+128dcDqwsrsOf8cMLwnbkXs30A9GZjQHN4z8Wxq1a63zHhwaTVF 2+d3uF2VS6mnqCDOpql0aUrvQzO1HXfQuVgobQe/CZTFREcDLpkABnfZsUqQyM5QTZ/g Uy0A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si2295196ejc.635.2020.12.09.23.48.13; Wed, 09 Dec 2020 23:48:35 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733133AbgLJHgS (ORCPT + 99 others); Thu, 10 Dec 2020 02:36:18 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9573 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgLJHgS (ORCPT ); Thu, 10 Dec 2020 02:36:18 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cs5KN6PFMzM2xM; Thu, 10 Dec 2020 15:34:48 +0800 (CST) Received: from DESKTOP-5IS4806.china.huawei.com (10.174.187.37) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Thu, 10 Dec 2020 15:35:24 +0800 From: Keqian Zhu To: , , , , , Alex Williamson , Cornelia Huck , Marc Zyngier , Will Deacon , Robin Murphy CC: Joerg Roedel , Catalin Marinas , James Morse , Suzuki K Poulose , Sean Christopherson , Julien Thierry , Mark Brown , "Thomas Gleixner" , Andrew Morton , Alexios Zavras , , , Keqian Zhu Subject: [PATCH 0/7] vfio: iommu_type1: Some fixes and optimization Date: Thu, 10 Dec 2020 15:34:18 +0800 Message-ID: <20201210073425.25960-1-zhukeqian1@huawei.com> X-Mailer: git-send-email 2.8.4.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.187.37] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, This patch series aim to fix up or optimize some code about vfio dirty log tracking. patch 1: Optimize dirty log when unwind pin pages. patch 2-3: Optimize promoting pinned_page_dirty_scope. patch 4: Fix up dirty log missing when promote pinned_page_dirty_scope. patch 5-7: Drop superfluous parameter "pgsize" of some functions. Wish they improves the robustness of vfio dirty log tracking. Thanks, Keqian Keqian Zhu (7): vfio: iommu_type1: Clear added dirty bit when unwind pin vfio: iommu_type1: Initially set the pinned_page_dirty_scope vfio: iommu_type1: Make an explicit "promote" semantic vfio: iommu_type1: Fix missing dirty page when promote pinned_scope vfio: iommu_type1: Drop parameter "pgsize" of vfio_dma_bitmap_alloc_all vfio: iommu_type1: Drop parameter "pgsize" of vfio_iova_dirty_bitmap. vfio: iommu_type1: Drop parameter "pgsize" of update_user_bitmap drivers/vfio/vfio_iommu_type1.c | 108 +++++++++++++++++++------------- 1 file changed, 65 insertions(+), 43 deletions(-) -- 2.23.0