vendor=$(cat /sys/bus/pci/devices/$dev/vendor) device=$(cat /sys/bus/pci/devices/$dev/device) if [ -e /sys/bus/pci/devices/$dev/driver ]; then echo'device_specific' > /sys/bus/pci/devices/$dev/reset_method echo$dev > /sys/bus/pci/devices/$dev/driver/unbind fi echo$vendor$device > /sys/bus/pci/drivers/vfio-pci/new_id echo'device_specific' > /sys/bus/pci/devices/$dev/reset_method
XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way