From nobody Mon Feb 9 15:25:37 2026 Received: from canpmsgout04.his.huawei.com (canpmsgout04.his.huawei.com [113.46.200.219]) (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 4D57F22A7E4; Thu, 22 Jan 2026 02:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.219 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769047395; cv=none; b=XBQTe86oRx4XRl0UyGH1ZcCHz3dBBgbd9yII4kaMc8quyqhjUP5FMtFa31+fEzV5d4hETj58VmP0t/eGlzG9hCE5PdOiLQOkHu5Pzuvx1uV/L9oUkk7S5mEY2Q1Xmuzpyw3Goj8gsNFna+Lq/N2AkKUDxhIeapY1HI4M3wxONC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769047395; c=relaxed/simple; bh=2xRimkzSn0A7i1JdGJrEEJqEm3LpS9E0IJWQysscSPM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=f7moqyxiE9AJ7Trp0cPjikaoPnj2a83SkwUg8cMg9zVgAdZ8lVEphOMnnr2cu5YDCOxAN6dp13o6tHpd1WDrOGklF/5uBrsTQKdDIfWCAE7nVzya1BA85l0ax+CrAaYPPkIvo9qFUOGmJo+fl2Hy6RVStVnyUoNO3ffevS/OWkY= 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; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=pUPaEj7p; arc=none smtp.client-ip=113.46.200.219 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="pUPaEj7p" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=qC9EldMj8NO7SywXgi+osd3WYvH56InKn4LlSeQwKG0=; b=pUPaEj7pCIYHqpvdUyRgPgpo0aA8exoyLd/MRFhFRMxtE7t7NyAVyFWL520bD6msyre5ISgaY 9D7ChTWsb4mQ9WtFDq+8VE+254gnCqnsNbKmjwX0GyFaIlBhNhhp/nkoVf3BGT65jQqR6RHGT9o c7D2R7LkiCQX9g45zBHFRqo= Received: from mail.maildlp.com (unknown [172.19.162.197]) by canpmsgout04.his.huawei.com (SkyGuard) with ESMTPS id 4dxPQ74GpBz1prKl; Thu, 22 Jan 2026 09:59:43 +0800 (CST) Received: from dggpemf500015.china.huawei.com (unknown [7.185.36.143]) by mail.maildlp.com (Postfix) with ESMTPS id B95D240569; Thu, 22 Jan 2026 10:03:09 +0800 (CST) Received: from huawei.com (10.90.31.46) by dggpemf500015.china.huawei.com (7.185.36.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 22 Jan 2026 10:03:09 +0800 From: Longfang Liu To: , , CC: , , Subject: [PATCH v2 2/4] hisi_acc_vfio_pci: update status after RAS error Date: Thu, 22 Jan 2026 10:02:03 +0800 Message-ID: <20260122020205.2884497-3-liulongfang@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20260122020205.2884497-1-liulongfang@huawei.com> References: <20260122020205.2884497-1-liulongfang@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To dggpemf500015.china.huawei.com (7.185.36.143) Content-Type: text/plain; charset="utf-8" After a RAS error occurs on the accelerator device, the accelerator device will be reset. The live migration state will be abnormal after reset, and the original state needs to be restored during the reset process. Therefore, reset processing needs to be performed in a live migration scenario. Signed-off-by: Longfang Liu --- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c b/drivers/vfio/= pci/hisilicon/hisi_acc_vfio_pci.c index d1e8053640a9..c69caef2e910 100644 --- a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c +++ b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c @@ -1215,8 +1215,7 @@ static void hisi_acc_vf_pci_aer_reset_done(struct pci= _dev *pdev) if (hisi_acc_vdev->set_reset_flag) clear_bit(QM_RESETTING, &qm->misc_ctl); =20 - if (hisi_acc_vdev->core_device.vdev.migration_flags !=3D - VFIO_MIGRATION_STOP_COPY) + if (!hisi_acc_vdev->core_device.vdev.mig_ops) return; =20 mutex_lock(&hisi_acc_vdev->state_mutex); --=20 2.33.0