From 9d065c72fb84f17f9d947f8219d910fff42f85b9 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 21 Jun 2021 15:55:16 +0200 Subject: [PATCH] SysFSTools: change 'product' to 'device' so it is more consistend with the source (it comes from the file 'device') as well as the subsytem_device field the only place we use that field is in the same file in pci_dev_bind_to_vfio, which we also change here, so that should not be a breaking change (in qemu-server we only really use the existance and the has_fl_reset flag) Signed-off-by: Dominik Csapak --- src/PVE/SysFSTools.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/SysFSTools.pm b/src/PVE/SysFSTools.pm index 7875b26..e595128 100644 --- a/src/PVE/SysFSTools.pm +++ b/src/PVE/SysFSTools.pm @@ -218,7 +218,7 @@ sub pci_device_info { $res = { name => $name, vendor => $vendor, - product => $product, + device => $product, domain => $domain, bus => $bus, slot => $slot, @@ -274,7 +274,7 @@ sub pci_dev_bind_to_vfio { my $testdir = "$vfio_basedir/$name"; return 1 if -d $testdir; - my $data = "$dev->{vendor} $dev->{product}"; + my $data = "$dev->{vendor} $dev->{device}"; return undef if !file_write("$vfio_basedir/new_id", $data); my $fn = "$pcisysfs/devices/$name/driver/unbind"; -- 2.39.2