Rate This Document
Findability
Accuracy
Completeness
Readability

Ineffective KAE After Being Installed and Configured on a VM

Symptom

After the KAE virtualization environment is configured on a host running openEuler 22.03 LTS SP2, accelerator devices installed in the host OS and corresponding BDF numbers can be queried through the ls -al /sys/class/uacce command. However, the accelerator devices cannot be queried through the ls /sys/class/uacce/ command on a VM. The following information is displayed in the VM log:

1
2
3
modprobe: ERROR: could not insert 'hisi hpre': Invalid argument make:[Makefile:69: nosva] Error 1 (ignored)
modprobe hisi zip uacce mode=2 pf q num=256
modprobe: ERROR: could not insert hisi zip': Invalid argument make:[Makefile:70: nosva] Error 1 (ignored) 

Key Process and Cause Analysis

The virtualization settings of the hisi_hpre and hisi_zip devices are not configured.

Conclusion and Solution

Configure the hisi_hpre and hisi_zip devices by referring to the virtualization configuration procedure of the hisi_sec device. For details, see "Using KAE on a KVM" in the Kunpeng Accelerator Engine Best Practices.