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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 136F2C4361B for ; Thu, 10 Dec 2020 07:37:14 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B5CCC20727 for ; Thu, 10 Dec 2020 07:37:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5CCC20727 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=0Zpv82WhPHcAOvX6bw65z5nyJXysL0euQ2LkrDJ5d/c=; b=y/s5d1CTHZMX0q3LYscMtLkDPN E3Al904cN/BDOT0vTcuWKOcappFYmCiNjJy7hCcwpxlQk7A79Q3gQZm1G786sNe9CKasCN4Ra6JY0 Jm3b33ZrJQPOvKm3PRCOkOFO9tPNsfgItI2ZgJfbn9ofICeVf5lTSmMh498xjCpn3WQzlNcz7o7sZ OdyX25zLASkl4J8/LAvG8IQx3VL232vYlH4kxMtiK+DAQZur3luy0HeeAu2TOhmAmFjLh84sxzNEa bUfrGTnvgso71uDhyIk8Lzdv7XkLLQIe9l57nKJpcfXYzxF6I1HYDth3JuPdOOL2FY+szBspd25jr C8m9aZKw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1knGUX-0007M2-Mb; Thu, 10 Dec 2020 07:35:57 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1knGUM-0007Aj-EM for linux-arm-kernel@lists.infradead.org; Thu, 10 Dec 2020 07:35:47 +0000 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 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 X-Originating-IP: [10.174.187.37] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201210_023546_753282_047F6AF2 X-CRM114-Status: UNSURE ( 7.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Suzuki K Poulose , Catalin Marinas , Joerg Roedel , jiangkunkun@huawei.com, Sean Christopherson , Alexios Zavras , Mark Brown , James Morse , wanghaibin.wang@huawei.com, Thomas Gleixner , Keqian Zhu , Andrew Morton , Julien Thierry Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel