Enabling the Device
The KAE ZIP device is used as an example.
- Enable the driver.
1 2
modprobe hisi_zip pf_q_num=32 modprobe hisi_migration
- Query the BDF identifier of the ZIP device.
1lspci | grep ZIP

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

The performance is optimal if KAE passthrough devices in a VM are located on the same NUMA node.
- 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
Parent topic: Enablement and Verification