Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1111668lqd; Thu, 25 Apr 2024 06:28:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdUH8DBUPsWa3mJX96onBBRMOWUq+4N7lJbAZPRVH2UXlVo00QsOeKGOnOF3opsDDP9xrCKvXE/0GEX4grDSev+86l3kSPRYHgqUzQgQ== X-Google-Smtp-Source: AGHT+IGvApsAeUcYUB6sissCyhuEXDVs0b8lG+k6f3yDoK8MYKAQFkBoZG6QS/wIZH7Mttv7L6Vg X-Received: by 2002:a05:651c:318:b0:2dd:bc53:e80 with SMTP id a24-20020a05651c031800b002ddbc530e80mr3961197ljp.51.1714051719530; Thu, 25 Apr 2024 06:28:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714051719; cv=pass; d=google.com; s=arc-20160816; b=fEVZDo5JTrURK4PN8oD+7yA291WVKGBBnHeW+66Q41H5iyDpo6/fyfnykbi0yzTHSM xug9twfSbzpJa2pjvDVQuwoL9Iy8k3vm3vBk4UhDPavimOYO4GbdB0tL+GRO6OUsbJR7 64KOKzfkNNlhdyZ+f+zdLzIBHmOI1W3RJ6lAwhr24WNx05YVSr+N/aOEJEX027+ob554 +wEL9jvh/kHHHOAZz3Mrdz5oX0YSlmSSt4Cqx3NYN/AJHG6DxaucUA+Yq0dfa5QFJ1jB SVden0ylEo8kNzyenSdioepGSIR3+tGxZZvTdB4wrOwSeQA0WmhmdiuurIc2YR2/O8z0 OMiQ== 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=z+Dspi2mLotrg9T5QEbD5h9KE5IJzgxUUX8noJ1XcxA=; fh=lW6MHi1ma+bdiE1he+iHyx9lPKntUb1s0946rN3rfJM=; b=rnBJKdaNEJKNAaf2hN3C/CWdE5F4RWpXP3h8A13l9GK0/GQR8DcaYJMbDl7xOmZREI I/CD+YtZsi7Gm30IBROqy+IHGUsPGpeSW7XZXyRH1c4RqxcE24r+Ar5HMLQXgqKNmkhV wMloR/4X4bMSVYiRHSyEqvcWVdgiwvggoIZju0dBEr7aMGE7NGFx0Ax2D4kdtXYFhltM 8jMdj+CoH6PS1JbcubtoMsKd+MKeb8M3SjkGZSRw8Y1hdtKt8q+ZDR9LV91gxQWFcgrx NHY24DV81KI/49s9VTTdilOnRyiIcBzmOQtB7Fej9Q/bK6yeOy6yOJp0vP9AoiRe3ufK w29w==; 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-158596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158596-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l12-20020a1709065a8c00b00a58885c0716si2659837ejq.465.2024.04.25.06.28.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 06:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-158596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158596-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 402111F2130C for ; Thu, 25 Apr 2024 13:28:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C44E7149C6F; Thu, 25 Apr 2024 13:28:29 +0000 (UTC) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) (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 537E4149C43; Thu, 25 Apr 2024 13:28:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.189 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714051709; cv=none; b=UarMABZ3hLPGoqQF/41BkbCszzWFQJT8RVLU7rXVOg6Ln6yZVBryZDUya+ePRFj5w+ehAzduZKZNJRIT2QGe2ZRpkyzt7lZX7HUuZOg/i04jcuRamaChV7wR5wGTPRznE9t6A/rBOtWMvtMQzJe56fv9UqxteCj6cYiRYcVpwPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714051709; c=relaxed/simple; bh=s+L/XVUsPhCxc0N5WzQwY2ZxETHyP0BRBjKEYzxXuqo=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rEoAYfdLVZ7aYEQdvIeYSPxvflDF6keeS/keMXncpHaNagbcDQunFiNDhSOxByzGS9iZgZRD2TYeNi+rRvC5zZPDzywepwuyceyKS91IPDT6sADNZHDXqjfOHhFb6UgbOvIZ9/z8m0s3cm2SHytxokZ5qlZzBMche2Sq/O7vLf4= 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.189 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.163.48]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4VQGnp4YmGzNtQV; Thu, 25 Apr 2024 21:25:50 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id 3F843180073; Thu, 25 Apr 2024 21:28:23 +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, 25 Apr 2024 21:28:22 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v6 0/5] add debugfs to hisilicon migration driver Date: Thu, 25 Apr 2024 21:23:17 +0800 Message-ID: <20240425132322.12041-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: dggems703-chm.china.huawei.com (10.3.19.180) 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 v5 -> v6 Modify log output calling error Changes v4 -> v5 Adjust the debugfs file directory Changes v3 -> v4 Rebased on kernel6.9 Changes v2 -> v3 Solve debugfs serialization problem. Changes v1 -> v2 Solve the racy problem of io_base. Longfang Liu (5): hisi_acc_vfio_pci: extract public functions for container_of hisi_acc_vfio_pci: modify the register location of the XQC address 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 | 27 ++ MAINTAINERS | 1 + .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 302 ++++++++++++++++-- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h | 10 + 4 files changed, 308 insertions(+), 32 deletions(-) create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration -- 2.24.0