Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1610919rdb; Thu, 25 Jan 2024 00:15:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJU/NDwqEr2eXTT9uu1qZlaJHL4ezDpaSs9jWD52wf7NiLaFkNAMi4KWeCJz/re0PMDnmh X-Received: by 2002:a17:906:f88d:b0:a31:6367:96e6 with SMTP id lg13-20020a170906f88d00b00a31636796e6mr119106ejb.212.1706170514396; Thu, 25 Jan 2024 00:15:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706170514; cv=pass; d=google.com; s=arc-20160816; b=w/g+qv8O15V4dwLnN1tx3XGOVDXJCA+P6J1GUrX+xdasMBSCETpb5sirwi9Ykh+C2r tOFkKhF0e/nLSzi5dSEoOJ5PVBjIsRfcO17k4SHjPh8K8HflMVJqt9XtyINALwuM/Ql/ EwS0R0rmgzI/n415vlVCeU2uZ8H9ZmUHJnVvw1MJfEDBnoqN1IEyC9W3rRTVcxfaJtAq Of6vLoJ0MD9GLUwMCI78wSTZ1n3mi5n69bjcr7nG1PjVHRQmn7vjMKad8gJQKGNCMclr zq84PBakkzIYcDfMu4mbtBrjrs+p2c8zfEilTat+vsfmFf5fWQzdpG2BH1EZvLauva6q /dPw== 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=SU9zSdUg5O+wcdIB19jqKNPwdyAHpzEc2bSO5VcIxvs=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=LyqFFiXNJdtK1daP2FPoarvQMCApzFc/FSeRyQD4m8eEnrq32zxV1yF/B831M9yvVz CoRkHv4LB24ca/6VF/+yKqgcRJFTrCoBKU/CF//norQ0se3o5RQaZMVwqegfjlOh8zsr SY+LBrhzoPpKInjO8R/ATwi/nYpnyZmTrNG47Ib1Mkrlkzuvk3uF6i+tMOlR0//EAhST 5NQUuNcotO3cuXrBjv0rCKLXkm51wPiDF9AQcRxfJLZl3boqhxT82Xc+KaS4j0lnYTnK QOBonikqn+31uQgJ3DpxeUlUeV4mMGLfhm4NAjestFuwiX8VvX7QKA4Dswvdhu+DJxaB D2CQ== 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-38145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w27-20020a170906481b00b00a31a3de9c14si54172ejq.44.2024.01.25.00.15.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:15:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-38145-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38145-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2B24F1F2251A for ; Thu, 25 Jan 2024 08:15:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5DB21862E; Thu, 25 Jan 2024 08:14:52 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (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 BD04F179AB; Thu, 25 Jan 2024 08:14:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170492; cv=none; b=Dxf/ajFt8ply7I1Webq1ZF/uf0P0eGuUKtTBjqz/paKGqHP+Telz0lVrh+FHseEufo4Fnhefxf72y8IQLUyf9fB4+BNBhHfUUP0+z+Adit92R7+PDkubughgyX37oLVpUZWU1pLR39o67tccRWNVup7ACojihY6YT+DcrLNwOFw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170492; c=relaxed/simple; bh=eVkxV/i3yWPBEbBpzYDTdGKfRQo1+og3/EJd45UlmLs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=QDQOhgHcKxDUA6xvND7fUw6/A0z0Ho8OOBVoEtB8FwrmJw0ivEUXw+sQjFCfEHHbdXi1hMIVOicXCOjNh/nJYkJqEUpv3jWHB956o10JfazSgi2xlT0xbknxf+ZQHfQZMycLY4yIXdqpy8qWoBB3jDKbUR1CiQRWgGJyzGV2sCY= 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.191 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 szxga05-in.huawei.com (SkyGuard) with ESMTP id 4TLD8t1p7sz1gy3V; Thu, 25 Jan 2024 16:13:02 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 20B6F1A016C; Thu, 25 Jan 2024 16:14:32 +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_128_GCM_SHA256) id 15.1.2507.35; Thu, 25 Jan 2024 16:14:31 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH 0/3] add debugfs to hisilicon migration driver Date: Thu, 25 Jan 2024 16:10:28 +0800 Message-ID: <20240125081031.48707-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: dggems702-chm.china.huawei.com (10.3.19.179) 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. Longfang Liu (3): hisi_acc_vfio_pci: extract public functions for container_of 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 | 211 +++++++++++++++++- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h | 5 + 4 files changed, 241 insertions(+), 10 deletions(-) create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration -- 2.24.0