我要评分
获取效率
正确性
完整性
易理解

Enabling the Device

The KAE ZIP device is used as an example.

  1. Enable the driver.
    1
    2
    modprobe hisi_zip pf_q_num=32
    modprobe hisi_migration
    
  2. Query the BDF identifier of the ZIP device.
    1
    lspci | grep ZIP
    

  3. Verify the NUMA node where the ZIP device is located. (Optional)
    1
    lspci -s 31:00.0 -v
    

    The performance is optimal if KAE passthrough devices in a VM are located on the same NUMA node.

  4. Sets the VF.
    1
    2
    3
    4
    echo 8 > /sys/bus/pci/devices/0000:31:00.0/sriov_numvfs
    echo 0000:31:00.1 > /sys/bus/pci/drivers/hisi_zip/unbind
    echo vfio-pci > /sys/devices/pci0000:30/0000:30:00.0/0000:31:00.1/driver_override
    echo 0000:31:00.1 > /sys/bus/pci/drivers_probe