Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp364267lqi; Wed, 6 Mar 2024 22:08:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUu4MQxZvu2bXcWBsPBeDqxTQBKMe26TTbmSo2RibnyYNU4VrSf99cBDm4BVwdb0/GQ9PH4Kiykgh3yl45lgNKwwqjeIy7YfaSzXzlbzA== X-Google-Smtp-Source: AGHT+IF3vSDKqdXzDMnrJQceW0FlYttAMYNeprtqFYvQbaGjoikgehFoiNhIveLcNIhuU9Vn9vML X-Received: by 2002:a05:622a:1b8d:b0:42f:200b:450c with SMTP id bp13-20020a05622a1b8d00b0042f200b450cmr31917qtb.64.1709791717964; Wed, 06 Mar 2024 22:08:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709791717; cv=pass; d=google.com; s=arc-20160816; b=iyqOyLpbO3tbusLP2yX1a+qWzuW+w5C1GAn+WwytFgjyqSybphgtCf7pGZLcGnEwQH s3t97flrBZCGi81ipjJ7lphW9Vc6IyXqCtOhOw/T+dbV2AZZMgSkbpF3yiq2lZR4O6xw Q5EFB+0hcVmLWhOXoJRM3EYcIyb73TB6cQZmXSHB7oF44XatYJliC5H3UUE2Qh54hc3T hg3UDADVYCmusd+XMyC4Cd1/1JDjMS1mzN9ECzCfEwAsT9HdWWj4dyRyWIE6lJpeP+xl +8dp/kiFHd7RYHrzQb/1dg6JPei2EaKIvIZwHKT39I1Jay+sv9GYZTsKXisEvbg2/7vF EJBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=LPizumVm/rNGPKjvTrC0vy0cOBx91KHYEKKD4laYnrU=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=gNI6S2khopDNa+dioMwRU+wUJ6epJdDKmj9fQFxXQYX5WSwVsE8NI2myME5o/+eHoP UIDL7xtfYY86CBJAjxzXPTGipPF1sEARc8Wrmgb2oRJcJfkxef6SIEMqzOhD0cFTjYMQ xhBK9mEqY7GygB1hiAuROFbnzfPxla6Uo4RYXz8aaku6IL+400WeprA4B7gHUuEEgIlR ZTJPL+Cl61vdbZsOFq0t+CsJ3rtq+7ATG2xGTjvxD+c+gKCUYqYxXExm/BTaLNJH4e56 UvK0ADQdOiBQX/F4K3YFsLmmxM8e0X0BkbdDy5ME7OOr9YSEA4v+mJ/ki0i2F579NCYb XGJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-94994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b11-20020ac87fcb000000b0042ef5553bd5si8104755qtk.281.2024.03.06.22.08.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 22:08:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-94994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94994-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AE4C01C225C9 for ; Thu, 7 Mar 2024 06:08:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99B341BF47; Thu, 7 Mar 2024 06:08:29 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA62F1BC56; Thu, 7 Mar 2024 06:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709791709; cv=none; b=s2GMTpqqsf1Hiy5e/QTmkBsVASF1poZnRvyReaepu4N+h/2k5CCrM5J6NgE+oCvYzQZYsdlXtdMNN9rS7kvUDq3XVMv8RK7q6ahUNEoOMRy/ktb0dk/Yp+4Af0RZ/IDunK3ql2nogGMouO+3AkzmK1ylH99xb7Nci8PGDrUmHOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709791709; c=relaxed/simple; bh=uZnVujjLp3je8R0QvccPWIRlHY3nzJXYfC0KxKP4/Ec=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JmAPjLdLe2rX1iPb49pO656Q8imxvYCNccSmOyeVs6x29k04tiOUeOyoOLlnyZt7/xngFUkpXRSutTc5AiyRDn0ERBezb2YC8mVbp7DKR7eCG2rwtgQuJcv/zwzl3d9paPBm7c/CutzL+hZ7CJwzMpLxdJ98SJDzDIaGCGEDY5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4TqzMl3qg2z1xqN1; Thu, 7 Mar 2024 14:06:43 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 1A2F51A016C; Thu, 7 Mar 2024 14:08:22 +0800 (CST) Received: from huawei.com (10.50.165.33) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 7 Mar 2024 14:08:21 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v3 0/4] add debugfs to hisilicon migration driver Date: Thu, 7 Mar 2024 14:03:49 +0800 Message-ID: <20240307060353.16095-1-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600005.china.huawei.com (7.193.23.191) Add a debugfs function to the hisilicon migration driver in VFIO to provide intermediate state values and data during device migration. When the execution of live migration fails, the user can view the status and data during the migration process separately from the source and the destination, which is convenient for users to analyze and locate problems. Changes v2 -> v3 Solve debugfs serialization problem. Changes v1 -> v2 Solve the racy problem of io_base. Longfang Liu (4): hisi_acc_vfio_pci: extract public functions for container_of hisi_acc_vfio_pci: Create subfunction for data reading hisi_acc_vfio_pci: register debugfs for hisilicon migration driver Documentation: add debugfs description for hisi migration .../ABI/testing/debugfs-hisi-migration | 34 +++ MAINTAINERS | 1 + .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 280 +++++++++++++++--- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h | 14 + 4 files changed, 294 insertions(+), 35 deletions(-) create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration -- 2.24.0