]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
uio_hv_generic: Bind to FCopy device by default
authorBen Hutchings <benh@debian.org>
Mon, 25 May 2026 12:04:22 +0000 (14:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jul 2026 12:50:09 +0000 (14:50 +0200)
The Hyper-V kernel-mode fcopy driver was removed in 6.10 and the new
fcopy daemon requires this uio driver to function.  However, by
default the driver does not bind to any devices, and must be
configured through the sysfs "new_id" file.

Since the FCopy device is now only usable through this driver, add its
ID to the driver's ID table so that the daemon will work "out of the
box".

Signed-off-by: Ben Hutchings <benh@debian.org>
Fixes: ec314f61e4fc ("Drivers: hv: Remove fcopy driver")
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/ahQ6xuhSReidmN-3@decadent.org.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c

index 29ec2d15ada86b881bcedc9ea00a25aac7bbf988..7b4cc456c453419b64e331f58163b0ee5b5ca98c 100644 (file)
@@ -396,9 +396,15 @@ hv_uio_remove(struct hv_device *dev)
        vmbus_free_ring(dev->channel);
 }
 
+static const struct hv_vmbus_device_id hv_uio_id_table[] = {
+       { HV_FCOPY_GUID },
+       {}
+};
+MODULE_DEVICE_TABLE(vmbus, hv_uio_id_table);
+
 static struct hv_driver hv_uio_drv = {
        .name = "uio_hv_generic",
-       .id_table = NULL, /* only dynamic id's */
+       .id_table = hv_uio_id_table,
        .probe = hv_uio_probe,
        .remove = hv_uio_remove,
 };