[PATCH v4] doc: add iavf live migration guide

Liu, Lingyu lingyu.liu at intel.com
Thu Jul 27 10:34:54 CEST 2023


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.

>
>


More information about the dev mailing list