]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/SysFSTools.pm
sysfs tools: add comment w.r.t. mdev uuid to pci_cleanup_mdev_device
[pve-common.git] / src / PVE / SysFSTools.pm
index b4cd5cc86da8e00af6677faafa59f810d25d3ef5..14654d42afdd62c56a5b96dae2728b2782bb542a 100644 (file)
@@ -366,9 +366,11 @@ sub pci_create_mdev_device {
     return undef;
 }
 
+# FIXME: move over to qemu-server, drop after PVE 8.0 and break older (7.x) qemu-server
 sub pci_cleanup_mdev_device {
     my ($pciid, $uuid) = @_;
 
+    # NOTE: PCI ID is actually not a requirement, /sys/bus/mdev/devices/$uuid is always available
     $pciid = normalize_pci_id($pciid);
 
     my $basedir = "$pcisysfs/devices/$pciid/$uuid";