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 X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4ED21C433FE for ; Thu, 10 Dec 2020 07:39:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F142F23D23 for ; Thu, 10 Dec 2020 07:39:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733125AbgLJHgS (ORCPT ); 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: kvm@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