From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AC1B742F5B; Thu, 27 Jul 2023 10:35:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 32A4640693; Thu, 27 Jul 2023 10:35:31 +0200 (CEST) Received: from mgamail.intel.com (unknown [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 3A9A840041 for ; Thu, 27 Jul 2023 10:35:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690446929; x=1721982929; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=Xy53Jpo7x+ysrLUlVR5k+GRbwpMHRCyQHdhPngBdFFc=; b=Hhw2FLiRyLZ//WbWwmoMV98WrXa93Omkgv/Py24LCQ6FDzFj9jMeDILf U1/t5jriOZ417OoNwLUBHDVdd7kdcEp3vtc2SVDwh2/rGmpD15e6IXHXy DQqXPqRmm4I2iiR/hBIpyHsDmBgjSTi7dUvoleWVY2LFP3cBkJmk88dLy 1wY2Khr/xclrSJhiLIfVZ/TPvprXNr0ebFZxPVb1JFH5T7TsmblugHF69 iW3DLPydxnhppunN4UBqWXXk1I0erKnUbVIUjDenWD+HYQhbr8xDU3b6g j5W0CK84Ru3DghsbF181xKe54+hUuni8OJ77B4cyaNbicFAlmXC+vKYrL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10783"; a="370921859" X-IronPort-AV: E=Sophos;i="6.01,234,1684825200"; d="scan'208";a="370921859" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 01:35:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.01,202,1684825200"; d="scan'208";a="870273111" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga001.fm.intel.com with ESMTP; 27 Jul 2023 01:35:07 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 01:35:05 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 27 Jul 2023 01:35:05 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Thu, 27 Jul 2023 01:35:05 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.45) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Thu, 27 Jul 2023 01:35:05 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aFnyTJ0R1yE4+6EpCiegg3y1a9szoTE1mQ59LFi1cBlkwhY8RjYqULxGQ0G/EVGSUrynhRkWdHrR+iR6fEIeItckdabPtshFbev85QYjRSh4P581+bFnqsEmr7Rg5SaaLC2P28rArOd/uW8F6T69PjWfl/qbTVDYBmxnGuPA/mZUYcM5tX8BgbxlBJylu4VatnGvQi+Qw8aouCKF+THRwH23mZ73FfBHnOXMP2tHCrWsPPzoDKtEUBgiReCRSnEcwE4O373P+ycCvgbNLryqf993iqqGP8qQ3v/UVX7q0SnfYRIOiiKh49lWNFSV35BA1wvQCozMaBdZ4bh/YvfTOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8QJi0TNyTRmFDsTnfCHRGeHAXJQBDiVQrHCWP+M9DEQ=; b=PlStSj63vHOhGSYhu5GRRT/U6tXDgVGcK1bSoTQoecUtCEqHbuaxlDWUtBbKMnoMTE+/tujFATfu9clvDcTQiyy5aWfOacYcre9YtlA0fxjFvawWP6wJNRrIhf4i+Tf57mqq8VoCofsHUUSvtxaIzpbNDz6iRWTNaWoFEeD0NqmIi69SPy6Si4SVxZ1ykBNmQdUH34zeiX4RYC5H/IWqC+1JfJXKz+BVUKwEzihCt+EB3tDnMq71czKnDWE9QkH7pzu91CLFLDZCTftVx9k9Vy7m2xPXv73pF9CztxDXZuqFgzokbiGT2PIrpOoWKoLM6E1/qbPd8Xs/KiK1fYGdUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from BYAPR11MB3047.namprd11.prod.outlook.com (2603:10b6:a03:8b::32) by CY8PR11MB6914.namprd11.prod.outlook.com (2603:10b6:930:5a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Thu, 27 Jul 2023 08:35:03 +0000 Received: from BYAPR11MB3047.namprd11.prod.outlook.com ([fe80::8acd:e84f:3df2:d469]) by BYAPR11MB3047.namprd11.prod.outlook.com ([fe80::8acd:e84f:3df2:d469%7]) with mapi id 15.20.6631.026; Thu, 27 Jul 2023 08:35:03 +0000 Message-ID: Date: Thu, 27 Jul 2023 16:34:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.13.0 Subject: Re: [PATCH v4] doc: add iavf live migration guide To: Thomas Monjalon , , , CC: "Cao, Yahui" References: <20230706072448.30063-1-lingyu.liu@intel.com> <20230707060841.70826-1-lingyu.liu@intel.com> <88200a75-fe01-2d31-1d20-bacaa030468f@intel.com> <2681155.PIDvDuAF1L@thomas> Content-Language: en-US From: "Liu, Lingyu" In-Reply-To: <2681155.PIDvDuAF1L@thomas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR06CA0217.apcprd06.prod.outlook.com (2603:1096:4:68::25) To BYAPR11MB3047.namprd11.prod.outlook.com (2603:10b6:a03:8b::32) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR11MB3047:EE_|CY8PR11MB6914:EE_ X-MS-Office365-Filtering-Correlation-Id: 122e2375-dfa3-4ffd-eb1d-08db8e7c5f42 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: np0NooPxK/y2Yui1xAWLa6bAoFTmH5z05tnqYKgVKRTQf0Q5ma3jdcQfPl/53Hbb8CcNzDFpQz+9UygHi+jDotykiCANAlnLALh1UKRH2Vr5SPDNCgWcmGQumKZgGx6JpkpZWa7kI4R74SYtUIC+IPdsqSluaI8dihV7NuWV6H9fuyxeHLEZhbrWCg2mqGQqMT0+F214kDSnqUvYofcpn7+6DRq4DhNoS8Gj5pxjtY+WiOgn5Lt/4/2zBMwb6/pHljpYLFHEhC8EaTEtrpKpzk1LlddDZcy2Mi24p6WjmUkLvTAu6W7Y2QmfcXcikUVlijILbSketB7re4wBvFlOxIloX1cvwLpf4UKMw9OUUNVDM70gr8u0sVzDFuBa/h8WR8FIdyDJ/yNvUdbwxrxeEXPmbq8MU6lgKEDA+I2P0VfAx5h3jTRC7D02UvY+DEoqK8HpaLXV+W+a7a3gRZPSkdlc8B8FA1S6PK6xFLnwwn5w6GuSiCcf73AN4K7R9casgKk8fm8A8ElPBNMYUo/iC5V+YpMasx/SVBwY5Vqc/wG+Ged7NLdfSgqo3YUJ5ygIOyrltRwEvLWTuyvukYv7Tsmr5TrIbEwE+aNxeAk3exPwo8QuR26jVY6/p7gcFummr447TooPWto94eRZS481FQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3047.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(346002)(396003)(366004)(376002)(39860400002)(136003)(451199021)(6506007)(26005)(478600001)(82960400001)(107886003)(53546011)(186003)(6666004)(6486002)(66556008)(6636002)(66476007)(4326008)(2616005)(83380400001)(31686004)(6512007)(38100700002)(66946007)(5660300002)(41300700001)(316002)(2906002)(8676002)(8936002)(86362001)(31696002)(36756003)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZXpSREx6cVREbW1qM1lNWmJKYjNmU2NYdWdQRG41cG5IV1lDQlVUN1ZTWGlF?= =?utf-8?B?SFpsWFhsOTVoV1BtWjRMd0c2NmQzb1pucHRCTzdqcHVFZ1ZLSC9wOXhkcFlt?= =?utf-8?B?TmNXY2xHdlpIb0NMamJJSVZvSlFaVHo1TURuSHFvV24xc2JvQ2Y2cHp6MjJo?= =?utf-8?B?YVBFaUZZbEZhdUNodzYra0JCNlhsamhLYW84MmVhVjZJTDBjZWxzQUloZWtQ?= =?utf-8?B?cGt0b3AwSFhCZlNKdWVZVEZXUnljekZrWTBDU0VOZWN6WDBNek5MS1grYVoz?= =?utf-8?B?cmM2Zk5kT1FSVFlyYjYvMEhYN3lRL1ZIai9wd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?utf-8?Q?TQL6zkqN6IP9zO8mhQ38dfEt2?= X-MS-Exchange-CrossTenant-Network-Message-Id: 122e2375-dfa3-4ffd-eb1d-08db8e7c5f42 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3047.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2023 08:35:03.2063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 30P9IWEs5K5+f6NUO5bMeSfgMOuQBkAvgsLmxbi/rubv9zVMb5QG0avWfmkTjUTWmTFCGk6/w94KmDnIi+lcYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6914 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 7/12/2023 3:54 AM, Thomas Monjalon wrote: > Hello, > > I don't pull this patch in -rc3 because I feel some improvements should be done. > Hi Thomas, thanks for your review. I am sorry for the late response. >> On 7/7/2023 2:08 PM, Lingyu Liu wrote: >>> + echo 2 > /sys/bus/pci/devices/0000:ca:00.1/sriov_numvfs >>> + echo "8086 1889" > /sys/bus/pci/drivers/ice-vfio-pci/new_id >>> + echo 0000:ca:11.0 > /sys/bus/pci/devices/0000:ca:11.0/driver/unbind >>> + echo 0000:ca:11.0 > /sys/bus/pci/drivers/ice-vfio-pci/bind >>> + echo 0000:ca:11.1 > /sys/bus/pci/devices/0000:ca:11.1/driver/unbind >>> + echo 0000:ca:11.1 > /sys/bus/pci/drivers/ice-vfio-pci/bind > Why not using dpdk-devbind.py? dpdk-devbind.py doesn't support ice-vfio-pci driver yet. >>> + >>> + .. note:: >>> + >>> + The command above creates two vfs for device 0000:ca:00.1: > vfs should be VFs Thanks. Will change in next version. >>> + >>> + .. code-block:: console >>> + >>> + 0000:ca:11.0 'Ethernet Adaptive Virtual Function 1889' if= drv=ice-vfio-pci unused=iavf >>> + 0000:ca:11.1 'Ethernet Adaptive Virtual Function 1889' if= drv=ice-vfio-pci unused=iavf >>> + >>> +#. Now, start the migration source Virtual Machine by running the following command: >>> + >>> + .. code-block:: console >>> + >>> + qemu/build/x86_64-softmmu/qemu-system-x86_64 -enable-kvm -cpu host -m 4G -smp 1 -device vfio-pci,host=0000:ca:11.0,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5555-:22 -monitor stdio > No need the full qemu command with your local details here. Thanks. Will change. > >>> --- a/doc/guides/rel_notes/release_23_07.rst >>> +++ b/doc/guides/rel_notes/release_23_07.rst >>> @@ -200,6 +200,9 @@ New Features >>> >>> Enhanced the GRO library to support TCP packets over IPv6 network. >>> >>> +* **Updated Intel iavf driver.** >>> + >>> + Added the document for iavf driver live migration based on KVM vfio migration. > Not sure about the importance of this note. It shows that AVF PMD live migration feature has been supported and lists the steps for users. > >