Skip to content

Commit 4eb2eb2

Browse files
eaugergregkh
authored andcommitted
misc/pvpanic-pci: Allow automatic loading
[ Upstream commit 28b6a00 ] The virtual machine monitor (QEMU) exposes the pvpanic-pci device to the guest. On guest side the module exists but currently isn't loaded automatically. So the driver fails to be probed and does not its job of handling guest panic events. Instead of requiring manual modprobe, let's include a device database using the MODULE_DEVICE_TABLE macro and let the module auto-load when the guest gets exposed with such a pvpanic-pci device. Signed-off-by: Eric Auger <eric.auger@redhat.com> Link: https://lore.kernel.org/r/20210629072214.901004-1-eric.auger@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c5dc07c commit 4eb2eb2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/misc/pvpanic/pvpanic-pci.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,6 @@ static struct pci_driver pvpanic_pci_driver = {
119119
},
120120
};
121121

122+
MODULE_DEVICE_TABLE(pci, pvpanic_pci_id_tbl);
123+
122124
module_pci_driver(pvpanic_pci_driver);

0 commit comments

Comments
 (0)