Message ID | 20240204085610.17720-1-liulongfang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-51537-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp260503dyb; Sun, 4 Feb 2024 01:00:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEvoBEXDDuEh8BlO2yW3l8E/t7Nc7+Lq9ypENke70YDKQwZ4wujM8Zfhxqj4Gbhy7tYRsJF X-Received: by 2002:a17:906:18ea:b0:a36:3819:940e with SMTP id e10-20020a17090618ea00b00a363819940emr5564306ejf.27.1707037243869; Sun, 04 Feb 2024 01:00:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707037243; cv=pass; d=google.com; s=arc-20160816; b=M9WRO2wY7Pd2NmlVhl/J+NVIpVoYNuetzUs/nMEsFtYLlxQvg8FPmg2VE8uwMX55gS UjF/6bX0v48Q6AwTzye6RTtHL185OGJRGLNenLNcm/EZkfLktJ8GX35kpwBVV2+LK171 BvodgJ7es3E6pT0gMIqed1ogAQPd3QO0CDNeCMskP2XrA3l0uLDUB1XI/SePXaunr/wm +cP4ibMuBMeMq3T35l9fZn2KAoC+X4g63UX2DLAWubHgi6TltHXqcp/qOTnQdXGRY2Bc ws2SmvIZf/p7Zk1e8zYR8NJVdWD1xBNL4bxxvQAqXetf1Lq4CNG27aH+CUwmTfJfLR73 w0tA== 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=VzGMIHdAK01kqHXsrYKq4rp636Gey35rQAEoI1mYCww=; fh=go2nHe+c5hCP0+8aKqMff3J2Rv9TXYx904mriWmyaF0=; b=Ej37VBEze4LHeR6eqKLz40Cg9iGoMpL8fHfUuyqUw7aN4RFuwg2btWczBWynDb6zS7 DQk1PQoXrQ3Hqz4sFAYUTlGSK0yzNY01O09M5RVieD18GsIHXqutyPR6VLLs18ml4IOa y6VyIpulcfQGpKSF/IlfkX+Hw9kSxT/l0t4ANfuOt5m5DsHslb1yomOQnYiPa4tNXF1V 6RmrIkCV+A779+ydC3LGOCNZYm1Rd/Te2pdQHnU4eEUaVtdoD/tus+jthPluFkc100GQ UM9oAU0fbqp5a+pV1NHH+1hpjIfc5DcEis7P1koRuPF6GaVb+Kw9gw9ioozFAxoh0Qgo I2Hw==; 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-51537-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51537-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com X-Forwarded-Encrypted: i=1; AJvYcCX6aRqqcaCuZqYdgicFA/+LpozhISkLR5wat9GNrKKUJ9iz+XsI6hikOn9yItvj/zuPuwmXwRpX3v2Lg6CZg8N/O26IPg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v13-20020a170906564d00b00a372ac5cee5si2067441ejr.850.2024.02.04.01.00.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 01:00:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51537-ouuuleilei=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-51537-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51537-ouuuleilei=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 7A2A31F2237A for <ouuuleilei@gmail.com>; Sun, 4 Feb 2024 09:00:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62B1C171C7; Sun, 4 Feb 2024 09:00:25 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (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 ACC0016429; Sun, 4 Feb 2024 09:00:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707037223; cv=none; b=bobPFg113XqioY5GCgcbC8pAgv+eQmBaWoUpZWoor9SlLJK8MpjP7oOs3OehHEyLqDMU2bZShrCCPlEtgbcr9uqKY0RdGJ3Ow2+lJD7/dXxkaWDk9FAW7lN2laH+694lAZgVJOpRirQeUdvhAlBxl9KDAGUbyTbN5PW3ejLnklY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707037223; c=relaxed/simple; bh=R9YJdadMG0beDrQ5hAFVncKtFW0TPcOt5e7kmsnmhj8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ilNStU6LSogoFMb2B6MB7jQZ6MpQoM1tbpyZMPmyCCB7nP3Lwi0Xb50ofRRbBhT8gnot2tS3PEWYQDtctIzKX1yU6Qb2NYcn0ie3QPejG0lgipVxoEh+iMG3IMQABwbka2dqy6ca+uinHMyjfzYsFMOBoCuheyTwrPBYu0kqzeg= 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.255 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.105]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4TSNjJ5VJBz1Q8XT; Sun, 4 Feb 2024 16:59:00 +0800 (CST) Received: from kwepemm600005.china.huawei.com (unknown [7.193.23.191]) by mail.maildlp.com (Postfix) with ESMTPS id C20F31404FE; Sun, 4 Feb 2024 17:00:17 +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; Sun, 4 Feb 2024 17:00:17 +0800 From: Longfang Liu <liulongfang@huawei.com> To: <alex.williamson@redhat.com>, <jgg@nvidia.com>, <shameerali.kolothum.thodi@huawei.com>, <jonathan.cameron@huawei.com> CC: <kvm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linuxarm@openeuler.org>, <liulongfang@huawei.com> Subject: [PATCH v2 0/3] add debugfs to hisilicon migration driver Date: Sun, 4 Feb 2024 16:56:07 +0800 Message-ID: <20240204085610.17720-1-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600005.china.huawei.com (7.193.23.191) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789958284709640029 X-GMAIL-MSGID: 1789958284709640029 |
Series |
add debugfs to hisilicon migration driver
|
|
Message
liulongfang
Feb. 4, 2024, 8:56 a.m. UTC
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 v1 -> v2 Solve the racy problem of io_base. 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 | 218 +++++++++++++++++- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h | 11 + 4 files changed, 254 insertions(+), 10 deletions(-) create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration