From patchwork Fri Oct 14 02:57:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liulongfang X-Patchwork-Id: 94 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp589807wrs; Thu, 13 Oct 2022 20:08:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7uvj/aazHSTpN1jOacsqO6krip9YATq7rOVb14HQbHOrLEzTGByEfhK1c+WQS96B4IGcKv X-Received: by 2002:a17:90a:e00a:b0:209:1545:74a7 with SMTP id u10-20020a17090ae00a00b00209154574a7mr3340253pjy.72.1665716935412; Thu, 13 Oct 2022 20:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665716935; cv=none; d=google.com; s=arc-20160816; b=lJoLYoJqSKRK9kKnyn8DEQzKNT6lTI9Ax/O11fI/VJC25DS5ITY01K0chTIyBYRiG8 ZSCJnVvrUH/dUW4ZYjZ8u77oao3Y7tbMYK6Ot9fOINTlPqJSAgWYG0b5Vt++Cu/jSUaW S19AVetkBiGXtVGvgD9dfoXlxaGGEDJlrICntxdwweFCaySpu3Nfwb8R+uk6G1lpM19m yF2eR9eYI7tS4DxqvrMQAFRKRudCl9ZuilJjOwOzLenC+S2xfPjtX284LIIUep73wxzx 3uSuShS51w8ocWBC4gDyUeotfYV5MckHoyZT8dgREwV1GOkTXc3XuigWhG1pwryvp501 wffg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hWl/VZRgtgwrijwLSphJ2QyMD3Mraqgmkv1/bSCrI10=; b=XZQUgY1GZpuW9izlp0ikUmN6ZgXAhtCTQL4lKObhcMvg9tVU0uR1AbsW5ytsLkmMXE SI97vZU7gNoCUH59teaD+4K7+nPYHa9WMU6ech4HG6clQZkmngzxd2ZxxIYl6xADJqE+ lT2ZlCW0H8RfEy0GBQvcmgow1DD+9Z/wlAVnTLU8+ugr3nL4uLo+pTDvqFANTU/mRSTd z2SuKCnntMc04ziTxkfP7y1yxTWQqQhLMv6m4lvsI69fYny1E7RB1jqkZBfqd/EWLRFb wfC2Ma/mH719O/JXuL0yvDYHXfhEj16rvEtBeL5GVuk1jSnor6G9M7O6kgfZ73hPSOx5 k3GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o28-20020a63731c000000b0042b95537587si1286400pgc.359.2022.10.13.20.08.42; Thu, 13 Oct 2022 20:08:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229828AbiJNC6a (ORCPT + 99 others); Thu, 13 Oct 2022 22:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiJNC62 (ORCPT ); Thu, 13 Oct 2022 22:58:28 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AE8715CB27 for ; Thu, 13 Oct 2022 19:58:27 -0700 (PDT) Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MpWGv58CtzDsW9; Fri, 14 Oct 2022 10:55:51 +0800 (CST) Received: from kwepemm600005.china.huawei.com (7.193.23.191) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 10:58:25 +0800 Received: from huawei.com (10.67.164.66) 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.2375.31; Fri, 14 Oct 2022 10:58:24 +0800 From: Longfang Liu To: , , CC: , , , Subject: [PATCH 0/2] Add debugfs to hisilicon migration driver Date: Fri, 14 Oct 2022 10:57:55 +0800 Message-ID: <20221014025757.39415-1-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-Originating-IP: [10.67.164.66] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746630801243570583?= X-GMAIL-MSGID: =?utf-8?q?1746630801243570583?= Add a set of debugfs for the hisilicon accelerator live migration driver. This debugfs is used to test the functions of the qemu tools, driver software and accelerator devices involved in the live migration step by step. Get software data or accelerator devices data in the event of a live migration failure. Longfang Liu (2): hisi_acc_vfio_pci: Add debugfs to migration driver Documentation: Add debugfs for hisi_acc_vfio_pci .../ABI/testing/debugfs-hisi-migration | 16 + .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 296 ++++++++++++++++++ .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h | 14 + 3 files changed, 326 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration