From b2bf317fcb9c84c5dc1f00b2ad9f609c766e17e2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 5 Jun 2023 11:54:51 +0200 Subject: [PATCH] remove unused SysFSTools::pci_cleanup_mdev_device its use was dropped with qemu-server 7.2-7 which we already have a 'Breaks' entry for, so no bump required there Signed-off-by: Wolfgang Bumiller --- src/PVE/SysFSTools.pm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/PVE/SysFSTools.pm b/src/PVE/SysFSTools.pm index 14654d4..57f0ac8 100644 --- a/src/PVE/SysFSTools.pm +++ b/src/PVE/SysFSTools.pm @@ -366,22 +366,6 @@ 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"; - - if (! -e $basedir) { - return 1; # no cleanup necessary if it does not exist - } - - return file_write("$basedir/remove", "1"); -} - # encode the hostpci index and vmid into the uuid sub generate_mdev_uuid { my ($vmid, $index) = @_;