From patchwork Wed Nov 23 11:32:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shameerali Kolothum Thodi X-Patchwork-Id: 2109 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2739330wrr; Wed, 23 Nov 2022 03:53:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf7rLKPm6oAR+A1wv5IMrgB7sI4Y/txVaw7VfnsJG7bKN8QdQjI0OlSjoBrgA5fFyrJNsrHm X-Received: by 2002:a17:906:3096:b0:7ae:eae9:25a5 with SMTP id 22-20020a170906309600b007aeeae925a5mr23616799ejv.394.1669204388785; Wed, 23 Nov 2022 03:53:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669204388; cv=none; d=google.com; s=arc-20160816; b=LInWw2G7lxst8thlKocmR53yFklZEYY8jzkjLeUTLZgEw9TBHpEYV2fVApAxIqE8Bm TYaUIsIVJr1/3xiYyxOIXcoa2o3kyvfLKu7Uhkbd8W70j1RyaRCMrcUokMnQMifbVqOA XfFQfZLxwUuCXbDVFxLIdbE4bEkoiFquckxuKEbpwY6mGfXfwnffwn+6it/nviBCXoH5 zuFyE/xcePIjiv0TosthpNTLd8u+5RfHZdkuyQLHJeQmvsLfzzYb2lwpF/UioEnU4fHI VHXAXTZu8UlIQtWQ+Cnty9IA5RLNLpgNgv65mF44vy2PYbDj3iOKKcY/rtWsSnjokasr N8OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=M0rQZgi5DaRYJ9IMTHgu5lWcKBOa1TqQSPK8Z2jnCCA=; b=PlRaCVDpL3TCOLI+jrbjj9har1c0wrIetHSXmhzoQwtTo7X/wc1j76UPIhCK2NnzeX gS9j227arH/yjJtmBaSyaqkG6uT+ThR02xDsljkpFPj/Ohx4OHmbjXw45dO744EqHorW 21H0exKuU1d56n5tu8NOsUBR3sA7s7Oer0Hb9HmIZ6GYwqHxLEhP6IMTKKbBMkKKHg1m jj9KLMKqR8z45PCtXdH9NcLwNb5y6ahfHedyNDrWhV+8RSMo7aUKJMperhbaIJx9BwBu PvgqG/DVymnU7k20FA4kdnxLCF/DGRI7Vb4MIbKlmQqnJWH2ALOnDnUS4RzYL2VGMS1J /DhA== 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 ft31-20020a170907801f00b007b299051a9fsi11138021ejc.192.2022.11.23.03.52.38; Wed, 23 Nov 2022 03:53:08 -0800 (PST) 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 S236846AbiKWLd3 (ORCPT + 99 others); Wed, 23 Nov 2022 06:33:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236857AbiKWLdT (ORCPT ); Wed, 23 Nov 2022 06:33:19 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9ED6286CF; Wed, 23 Nov 2022 03:33:07 -0800 (PST) Received: from frapeml100007.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4NHJsC4fH9z67Zm0; Wed, 23 Nov 2022 19:33:03 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by frapeml100007.china.huawei.com (7.182.85.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 23 Nov 2022 12:33:05 +0100 Received: from A2006125610.china.huawei.com (10.202.227.178) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 23 Nov 2022 11:33:00 +0000 From: Shameer Kolothum To: , CC: , , , , , , Subject: [PATCH 0/4] hisi_acc_vfio_pci: Add PRE_COPY migration feature support Date: Wed, 23 Nov 2022 11:32:32 +0000 Message-ID: <20221123113236.896-1-shameerali.kolothum.thodi@huawei.com> X-Mailer: git-send-email 2.12.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.202.227.178] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.2 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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?1750287660874088813?= X-GMAIL-MSGID: =?utf-8?q?1750287660874088813?= Hi, The optional PRE_COPY state support for migration feature is introduced by this series here[1](Thanks for that!). This is something HiSilicon ACC driver can make use for early dev compatibility checks and have made an attempt in the past here[2]. Adding this will speed up reporting the compatibility error early in the migration process without the need to wait for complete data transfer. This is sanity tested on a HiSilicon Platform. Please take a look. Regards, Shameer 1.https://lore.kernel.org/all/20221106174630.25909-1-yishaih@nvidia.com/ 2.https://lore.kernel.org/kvm/20220302172903.1995-8-shameerali.kolothum.thodi@huawei.com/ Shameer Kolothum (4): hisi_acc_vfio_pci: Add support for precopy IOCTL hisi_acc_vfio_pci: Introduce support for PRE_COPY state transitions hisi_acc_vfio_pci: Move the dev compatibility tests for early check hisi_acc_vfio_pci: Enable PRE_COPY flag .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 147 ++++++++++++++++-- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.h | 2 + 2 files changed, 133 insertions(+), 16 deletions(-)