Skip to contentSkip to conversation

doc: add ice VF live migration guide

PATCH Superseded Lingyu Liu 4 participants 10 messages Jul 3, 2023 – Jul 27, 2023

lore
Share & tools
lore

Lingyu Liu

author
#0 lore raw

PATCH 1/1 doc: add ice VF live migration guide

Describe VF live migration steps for Intel E810 device.

---
 doc/guides/nics/intel_vf.rst           | 93 ++++++++++++++++++++++++++
 doc/guides/rel_notes/release_23_07.rst |  3 +
 2 files changed, 96 insertions(+)
doc/guides/nics/intel_vf.rst +93 -0
index d365dbc185..b0aed5f5a5 100644
@@ -622,6 +622,99 @@ which belongs to the destination VF on the VM.
    Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver Version: 1.11.17.1 `<https://www.intel.com/content/www/us/en/download/19630>`_
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel® VT features**.
+
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        echo 2 > /sys/bus/pci/devices/0000:ca:00.1/sriov_numvfs
+        echo "8086 1889" > /sys/bus/pci/drivers/ice-vfio-pci/new_id
+        dpdk-devbind.py -b ice-vfio-pci 0000:ca:11.0
+        dpdk-devbind.py -b ice-vfio-pci 0000:ca:11.1
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach a vfio PCI device
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers should be passed,
+        x-enable-migration=true indicates that this VF supports migration. Dirty page tracking
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5556-:22 -monitor stdio -incoming tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is not supported.
 Windows Support
 ---------------
 
doc/guides/rel_notes/release_23_07.rst +3 -0
index 4459144140..2ca766b397 100644
@@ -200,6 +200,9 @@ New Features
 
   Enhanced the GRO library to support TCP packets over IPv6 network.
 
+* **Added document for VFIO live migration of Intel E810 device.**
+
+  * Steps to live migrate Intel E810 VFIO devices.
 
 Removed Items
 -------------
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH v2 1/1 doc: add iavf live migration guide

Describe iavf live migration steps.

---
v2: Fixed CI.
Added brief introduction about live migration. Clarified this is iavf feature.

---
 doc/guides/nics/intel_vf.rst           | 101 +++++++++++++++++++++++++
 doc/guides/rel_notes/release_23_07.rst |   3 +
 2 files changed, 104 insertions(+)
doc/guides/nics/intel_vf.rst +101 -0
index d365dbc185..dd75aadf51 100644
@@ -622,6 +622,107 @@ which belongs to the destination VF on the VM.
    Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+Live migration refers to the process of moving a running virtual machine (VM) or application
+between different physical machines without disconnecting the client or application
+(see https://en.wikipedia.org/wiki/Live_migration for more information).
+
+This part describes how to migrate a Virtual Machine which has a iavf device.
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver Version: 1.11.17.1 `<https://www.intel.com/content/www/us/en/download/19630>`_
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel® VT features**.
+
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        echo 2 > /sys/bus/pci/devices/0000:ca:00.1/sriov_numvfs
+        echo "8086 1889" > /sys/bus/pci/drivers/ice-vfio-pci/new_id
+        dpdk-devbind.py -b ice-vfio-pci 0000:ca:11.0
+        dpdk-devbind.py -b ice-vfio-pci 0000:ca:11.1
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach a vfio PCI device
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers should be passed,
+        x-enable-migration=true indicates that this VF supports migration. Dirty page tracking
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5556-:22 -monitor stdio -incoming tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is currently not supported due to kAPI change.
+
+
 Windows Support
 ---------------
 
doc/guides/rel_notes/release_23_07.rst +3 -0
index 4459144140..a187cb6146 100644
@@ -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.
 
 Removed Items
 -------------
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH V2] doc: add iavf live migration guide

Hi Lingyu,

Quoted 17 lines · Lingyu Liu

Describe iavf live migration steps.

---
v2: Fixed CI.
Added brief introduction about live migration. Clarified this is iavf feature.

---
  doc/guides/nics/intel_vf.rst           | 101 +++++++++++++++++++++++++
  doc/guides/rel_notes/release_23_07.rst |   3 +
  2 files changed, 104 insertions(+)
doc/guides/nics/intel_vf.rst +0 -0
index d365dbc185..dd75aadf51 100644

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 631

Quoted 10 lines
doc/guides/nics/intel_vf.rst +7 -0
@@ -622,6 +622,107 @@ which belongs to the destination VF on the VM.
     Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+Live migration refers to the process of moving a running virtual machine (VM) or application
+between different physical machines without disconnecting the client or application
+(see https://en.wikipedia.org/wiki/Live_migration for more information).
+

Please also add some introduction about the vfio migration and the link for qemu vfio migration doc: https://qemu.readthedocs.io/en/latest/devel/vfio-migration.html

Quoted 10 lines
doc/guides/nics/intel_vf.rst +10 -0
+This part describes how to migrate a Virtual Machine which has a iavf device.
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 651

Quoted 10 lines
doc/guides/nics/intel_vf.rst +10 -0
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver Version: 1.11.17.1 `<https://www.intel.com/content/www/us/en/download/19630>`_
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel® VT features**.
+

Can you add some description about kernel boot parameters?

Quoted 7 lines
doc/guides/nics/intel_vf.rst +7 -0
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 668

Quoted 10 lines
doc/guides/nics/intel_vf.rst +10 -0
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        echo 2 > /sys/bus/pci/devices/0000:ca:00.1/sriov_numvfs
+        echo "8086 1889" > /sys/bus/pci/drivers/ice-vfio-pci/new_id
+        dpdk-devbind.py -b ice-vfio-pci 0000:ca:11.0
+        dpdk-devbind.py -b ice-vfio-pci 0000:ca:11.1

ice-vfio-pci binding is not supported on dpdk-devbind.py yet. Please use sysfs to bind device and driver

Quoted 24 lines
doc/guides/nics/intel_vf.rst +24 -0
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach a vfio PCI device
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers should be passed,
+        x-enable-migration=true indicates that this VF supports migration. Dirty page tracking
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 702

Quoted 10 lines
doc/guides/nics/intel_vf.rst +10 -0
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+

We need to ensure dpdk-testpmd should be running independently of ssh console and suggest to put it in a background process like tmux/screen so that migration will not causing ssh console exit and dpdk-testpmd killed. Please add related description.

Quoted 31 lines
doc/guides/nics/intel_vf.rst +23 -0
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5556-:22 -monitor stdio -incoming tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is currently not supported due to kAPI change.
+
+
  Windows Support
  ---------------
 
doc/guides/rel_notes/release_23_07.rst +0 -0
index 4459144140..a187cb6146 100644

doc/guides/rel_notes/release_23_07.rst New Features · line 205

Quoted 6 lines
doc/guides/rel_notes/release_23_07.rst +3 -0
@@ -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.

Suggest to highlight iavf driver live migration based on KVM vfio migration.

Quoted 3 lines
doc/guides/rel_notes/release_23_07.rst +0 -0
  Removed Items
  -------------
author
#3 lore raw

PATCH v3 1/1 doc: add iavf live migration guide

In reply to Lingyu Liu

Add iavf live migration steps based on KVM VFIO migration.

---
v2: Fixed CI.
Added brief introduction about live migration. Clarified this is iavf feature.

v3: Added intro and link about vfio live migration.
Added description about kernel boot parameters. Changed to use sysfs to bind device to driver. Noted for running dpdk-testpmd. Highlighted KVM vfio migration.

---
 doc/guides/nics/intel_vf.rst           | 113 +++++++++++++++++++++++++
 doc/guides/rel_notes/release_23_07.rst |   3 +
 2 files changed, 116 insertions(+)
doc/guides/nics/intel_vf.rst +113 -0
index d365dbc185..8c24485bdd 100644
@@ -622,6 +622,119 @@ which belongs to the destination VF on the VM.
    Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+Live migration refers to the process of moving a running virtual machine (VM) or application
+between different physical machines without disconnecting the client or application
+(see https://en.wikipedia.org/wiki/Live_migration for more information).
+
+VFIO device migration refers to migrating a VM which have VFIO device pass-through
+(see https://qemu.readthedocs.io/en/latest/devel/vfio-migration.html for more information).
+
+This part describes stpes to migrate a VM which has a iavf device pass through.
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver Version: 1.11.17.1 `<https://www.intel.com/content/www/us/en/download/19630>`_
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel® VT features**.
+
+#.  While booting the Host OS kernel, pass the intel_iommu=on kernel command line argument using GRUB.
+
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        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
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach a vfio PCI device
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers should be passed,
+        x-enable-migration=true indicates that this VF supports migration. Dirty page tracking
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+    .. note::
+        Please ensure dpdk-testpmd to run independently of ssh console.
+        Suggest to put it in a background process like tmux/screen so that
+        migration will not causing ssh console exit and dpdk-testpmd killed.
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5556-:22 -monitor stdio -incoming tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is currently not supported due to kAPI change.
+
+
 Windows Support
 ---------------
 
doc/guides/rel_notes/release_23_07.rst +3 -0
index 4459144140..794a86eba3 100644
@@ -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.
 
 Removed Items
 -------------
Signature · 1 line
2.25.1
author
#4 lore raw

PATCH v4 1/1 doc: add iavf live migration guide

Add iavf live migration steps based on KVM VFIO migration.

---
v2: Fixed CI.
Added brief introduction about live migration. Clarified this is iavf feature.

v3: Added intro and link about vfio live migration.
Added description about kernel boot parameters. Changed to use sysfs to bind device to driver. Noted for running dpdk-testpmd. Highlighted KVM vfio migration.

v4: Removed ice kernel driver version.

---
 doc/guides/nics/intel_vf.rst           | 113 +++++++++++++++++++++++++
 doc/guides/rel_notes/release_23_07.rst |   3 +
 2 files changed, 116 insertions(+)
doc/guides/nics/intel_vf.rst +113 -0
index d365dbc185..85b3b4fc24 100644
@@ -622,6 +622,119 @@ which belongs to the destination VF on the VM.
    Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+Live migration refers to the process of moving a running virtual machine (VM) or application
+between different physical machines without disconnecting the client or application
+(see https://en.wikipedia.org/wiki/Live_migration for more information).
+
+VFIO device migration refers to migrating a VM which have VFIO device pass-through
+(see https://qemu.readthedocs.io/en/latest/devel/vfio-migration.html for more information).
+
+This part describes stpes to migrate a VM which has a iavf device pass through.
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver: Download from `<https://www.intel.com/content/www/us/en/download/19630>`_
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel® VT features**.
+
+#.  While booting the Host OS kernel, pass the intel_iommu=on kernel command line argument using GRUB.
+
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        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
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach a vfio PCI device
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers should be passed,
+        x-enable-migration=true indicates that this VF supports migration. Dirty page tracking
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+    .. note::
+        Please ensure dpdk-testpmd to run independently of ssh console.
+        Suggest to put it in a background process like tmux/screen so that
+        migration will not causing ssh console exit and dpdk-testpmd killed.
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5556-:22 -monitor stdio -incoming tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is currently not supported due to kAPI change.
+
+
 Windows Support
 ---------------
 
doc/guides/rel_notes/release_23_07.rst +3 -0
index 4459144140..794a86eba3 100644
@@ -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.
 
 Removed Items
 -------------
Signature · 1 line
2.25.1
Reviewed-by on v4 1/1
#5 lore raw

Re: [PATCH v4] doc: add iavf live migration guide

Quoted 149 lines · Lingyu Liu

Add iavf live migration steps based on KVM VFIO migration.

---
v2: Fixed CI.
Added brief introduction about live migration. Clarified this is iavf feature.

v3: Added intro and link about vfio live migration.
Added description about kernel boot parameters. Changed to use sysfs to bind device to driver. Noted for running dpdk-testpmd. Highlighted KVM vfio migration.

v4: Removed ice kernel driver version.

---
  doc/guides/nics/intel_vf.rst           | 113 +++++++++++++++++++++++++
  doc/guides/rel_notes/release_23_07.rst |   3 +
  2 files changed, 116 insertions(+)
doc/guides/nics/intel_vf.rst +113 -0
index d365dbc185..85b3b4fc24 100644
@@ -622,6 +622,119 @@ which belongs to the destination VF on the VM.
     Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+Live migration refers to the process of moving a running virtual machine (VM) or application
+between different physical machines without disconnecting the client or application
+(see https://en.wikipedia.org/wiki/Live_migration for more information).
+
+VFIO device migration refers to migrating a VM which have VFIO device pass-through
+(see https://qemu.readthedocs.io/en/latest/devel/vfio-migration.html for more information).
+
+This part describes stpes to migrate a VM which has a iavf device pass through.
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver: Download from `<https://www.intel.com/content/www/us/en/download/19630>`_
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel® VT features**.
+
+#.  While booting the Host OS kernel, pass the intel_iommu=on kernel command line argument using GRUB.
+
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        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
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach a vfio PCI device
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers should be passed,
+        x-enable-migration=true indicates that this VF supports migration. Dirty page tracking
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+    .. note::
+        Please ensure dpdk-testpmd to run independently of ssh console.
+        Suggest to put it in a background process like tmux/screen so that
+        migration will not causing ssh console exit and dpdk-testpmd killed.
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-page-tracking=off -drive file=ubuntu-2004.qcow2 -nic user,hostfwd=tcp::5556-:22 -monitor stdio -incoming tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is currently not supported due to kAPI change.
+
+
  Windows Support
  ---------------
 
doc/guides/rel_notes/release_23_07.rst +0 -0
index 4459144140..794a86eba3 100644

doc/guides/rel_notes/release_23_07.rst New Features · line 208

Quoted 9 lines
doc/guides/rel_notes/release_23_07.rst +3 -0
@@ -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.
 
  Removed Items
  -------------
Applied
#6 lore raw

RE: [PATCH v4] doc: add iavf live migration guide

Quoted 191 lines

-----Original Message-----
From: Cao, Yahui <[email protected]>
Sent: Friday, July 7, 2023 2:22 PM
To: Liu, Lingyu <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; Xing, Beilei <[email protected]>
Subject: Re: [PATCH v4] doc: add iavf live migration guide

Quoted 25 lines · Lingyu Liu

Add iavf live migration steps based on KVM VFIO migration.

---
v2: Fixed CI.
Added brief introduction about live migration. Clarified this is iavf feature.

v3: Added intro and link about vfio live migration.
Added description about kernel boot parameters. Changed to use sysfs to bind device to driver. Noted for running dpdk-testpmd. Highlighted KVM vfio migration.

v4: Removed ice kernel driver version.

---
  doc/guides/nics/intel_vf.rst           | 113 +++++++++++++++++++++++++
  doc/guides/rel_notes/release_23_07.rst |   3 +
  2 files changed, 116 insertions(+)
(quoted diff) +0 -0

b/doc/guides/nics/intel_vf.rst index d365dbc185..85b3b4fc24 100644

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 630

Quoted 9 lines
doc/guides/nics/intel_vf.rst +6 -0
@@ -622,6 +622,119 @@ which belongs to the destination VF on the VM.
     Inter-VM Communication
 
 
+Live Migrating a VM running DPDK
+--------------------------------
+
+Live migration refers to the process of moving a running virtual
+machine (VM) or application between different physical machines
+without disconnecting the client or application (see

https://en.wikipedia.org/wiki/Live_migration for more information).

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 633

Quoted 3 lines
doc/guides/nics/intel_vf.rst +3 -0
+
+VFIO device migration refers to migrating a VM which have VFIO device
+pass-through (see https://qemu.readthedocs.io/en/latest/devel/vfio-

migration.html for more information).

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 635

Quoted 2 lines
doc/guides/nics/intel_vf.rst +2 -0
+
+This part describes stpes to migrate a VM which has a iavf device pass

through.

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM.

Quoted 12 lines
doc/guides/nics/intel_vf.rst +12 -0
+
+The following describes a target environment:
+
+*   Host Operating System: Ubuntu 20.04.5
+
+*   Guest Operating System: Ubuntu 20.04.5
+
+*   Linux Kernel Version: 5.15.0-72-generic
+
+*   Target Applications: dpdk-testpmd
+
+*   Ice Kernel Driver: Download from

<https://www.intel.com/content/www/us/en/download/19630>_

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM.

Quoted 6 lines
doc/guides/nics/intel_vf.rst +6 -0
+
+*   Qemu Version: 7.2
+
+The setup procedure is as follows:
+
+#.  Before booting the Host OS, open **BIOS setup** and enable **Intel®

VT features**.

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 655

Quoted 2 lines
doc/guides/nics/intel_vf.rst +2 -0
+
+#.  While booting the Host OS kernel, pass the intel_iommu=on kernel

command line argument using GRUB.

Quoted 18 lines
doc/guides/nics/intel_vf.rst +18 -0
+
+#.  In the Host OS
+
+    Install the ice driver and migration driver:
+
+    .. code-block:: console
+
+        insmod ice.ko
+        insmod ice-vfio-pci.ko
+
+    Create 2 VFs and bind them to vfio pci driver:
+
+    .. code-block:: console
+
+        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

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM.

Quoted 10 lines
doc/guides/nics/intel_vf.rst +10 -0
+        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
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:
+
+    .. code-block:: console
+
+        0000:ca:11.0 'Ethernet Adaptive Virtual Function 1889' if= drv=ice-vfio-

pci unused=iavf

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 687

Quoted 4 lines
doc/guides/nics/intel_vf.rst +4 -0
+        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:

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 698

Quoted 11 lines
doc/guides/nics/intel_vf.rst +11 -0
+
+    .. 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
+
+    .. note::
+        The vfio-pci,host=0000:ca:11.0 value indicates that you want to attach

a vfio PCI device

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 699

Quoted 1 line
doc/guides/nics/intel_vf.rst +1 -0
+        to a Virtual Machine and the respective (Bus:Device.Function) numbers

should be passed,

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 700

Quoted 1 line
doc/guides/nics/intel_vf.rst +1 -0
+        x-enable-migration=true indicates that this VF supports migration. Dirty

page tracking

Quoted 35 lines
doc/guides/nics/intel_vf.rst +35 -0
+        is not supported, so set x-pre-copy-dirty-page-tracking=off.
+
+#.  In VM, install iavf driver and vfio-pci driver
+
+    .. code-block:: console
+
+        insmod iavf.ko
+        modprobe vfio enable_unsafe_noiommu_mode=1
+        moodprobe vfio-pci
+
+#.  Bind net device to vfio-pci driver and launch dpdk-testpmd
+
+    .. code-block:: console
+
+        dpdk-testpmd -l 0-1 -- -i
+        testpmd> set txpkts 64
+        testpmd> start tx_first
+
+    .. note::
+        Please ensure dpdk-testpmd to run independently of ssh console.
+        Suggest to put it in a background process like tmux/screen so that
+        migration will not causing ssh console exit and dpdk-testpmd killed.
+
+#. Start the migration destination Virtual Machine
+
+    .. 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.1,x-enable-migration=true,x-pre-copy-dirty-
+ page-tracking=off -drive file=ubuntu-2004.qcow2 -nic
+ user,hostfwd=tcp::5556-:22 -monitor stdio -incoming
+ tcp:127.0.0.1:4444
+
+ #. Start migration by issuing the command in qemu console

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM.

Quoted 10 lines
doc/guides/nics/intel_vf.rst +10 -0
+
+    .. code-block:: console
+
+        migrate -d tcp:127.0.0.1:4444
+
+#. Log in the destination VM, and dpdk-testpmd is not interrupt
+
+.. note::
+
+        Host kernel version above 5.17 is currently not supported due to kAPI

change.

Quoted 11 lines
doc/guides/nics/intel_vf.rst +2 -0
+
+
  Windows Support
  ---------------
doc/guides/rel_notes/release_23_07.rst +0 -0
index 4459144140..794a86eba3 100644

doc/guides/rel_notes/release_23_07.rst New Features · line 205

Quoted 6 lines
doc/guides/rel_notes/release_23_07.rst +3 -0
@@ -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.

Quoted 1 line
Quoted 5 lines
Quoted 2 lines

Removed Items
-------------

Applied to dpdk-next-net-intel.

Thanks
Qi

#7 lore raw

Re: [PATCH v4] doc: add iavf live migration guide

In reply to Cao, Yahui

Hello,

I don't pull this patch in -rc3 because I feel some improvements should be done.

Quoted 7 lines · Lingyu Liu

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 675

Quoted 6 lines
doc/guides/nics/intel_vf.rst +6 -0
+        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?

Quoted 4 lines

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 679

Quoted 4 lines
doc/guides/nics/intel_vf.rst +4 -0
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:

vfs should be VFs

Quoted 11 lines

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 690

Quoted 11 lines
doc/guides/nics/intel_vf.rst +11 -0
+
+    .. 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.

Quoted 9 lines

doc/guides/rel_notes/release_23_07.rst New Features · line 205

Quoted 9 lines
doc/guides/rel_notes/release_23_07.rst +3 -0
@@ -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.

#8 lore raw

Re: [PATCH v4] doc: add iavf live migration guide

Quoted 4 lines · Thomas Monjalon

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.

Quoted 8 lines
Quoted 7 lines · Lingyu Liu

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 675

Quoted 6 lines
doc/guides/nics/intel_vf.rst +6 -0
+        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.

Quoted 5 lines
Quoted 4 lines

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 679

Quoted 4 lines
doc/guides/nics/intel_vf.rst +4 -0
+
+    .. note::
+
+        The command above creates two vfs for device 0000:ca:00.1:

vfs should be VFs

Thanks. Will change in next version.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
doc/guides/nics/intel_vf.rst +4 -0
+
+    .. code-block:: console
+
+        0000:ca:11.0 'Ethernet Adaptive Virtual Function 1889' if= drv=ice-vfio-pci unused=iavf
Quoted 8 lines
Quoted 7 lines

doc/guides/nics/intel_vf.rst which belongs to the destination VF on the VM. · line 690

Quoted 7 lines
doc/guides/nics/intel_vf.rst +7 -0
+        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.

Quoted 11 lines
Quoted 10 lines

doc/guides/rel_notes/release_23_07.rst New Features · line 205

Quoted 10 lines
doc/guides/rel_notes/release_23_07.rst +3 -0
@@ -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.

Quoted 2 lines
#9 lore raw

Re: [PATCH v4] doc: add iavf live migration guide

27/07/2023 10:34, Liu, Lingyu:

Quoted 15 lines · Thomas Monjalon
Quoted 4 lines

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.

Quoted 7 lines
Quoted 7 lines · Lingyu Liu
Quoted 6 lines
doc/guides/nics/intel_vf.rst +6 -0
+        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
Quoted 3 lines
Quoted 1 line

Why not using dpdk-devbind.py?

dpdk-devbind.py doesn't support ice-vfio-pci driver yet.

So it should be a requirement.
Please work on dpdk-devbind.py