Description of problem: DSA MDEV device that passed in guest failed to disable. How reproducible: Steps to Reproduce: 1. Create DSA MDEV device and assigned to VM 2. In guest, enable DSA device 3. Disable DSA device in guest Actual results: [root@localhost ~]# accel-config disable-device dsa0 failed in dsa0 disabled 0 device(s) out of 1 [root@localhost ~]# accel-config enable-device dsa0 dsa0 is in enabled state already, skipping... failed in dsa0 enabled 0 device(s) out of 1 Expected results: Additional info:
The same issue exists in upstream kernel.
The patch submitted to LKML: https://lore.kernel.org/all/20220930032835.2290-1-fengqian.gao@intel.com/
merged: https://gitee.com/anolis/cloud-kernel/pulls/756