2011-07-01 21:31:25 +02:00
|
|
|
References: fate#311487
|
|
|
|
|
|
|
|
Provide a modalias entry in xen-plaform-pci.ko to allow early autoloading in
|
|
|
|
initrd based on /sys/class/dmi/id/modalias
|
|
|
|
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
|
|
|
|
---
|
|
|
|
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c | 13 +++++++++++++
|
|
|
|
1 file changed, 13 insertions(+)
|
|
|
|
|
2012-08-10 23:38:41 +02:00
|
|
|
Index: xen-4.1.3-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
2011-07-01 21:31:25 +02:00
|
|
|
===================================================================
|
2012-08-10 23:38:41 +02:00
|
|
|
--- xen-4.1.3-testing.orig/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
|
|
|
+++ xen-4.1.3-testing/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
|
2011-07-01 21:31:25 +02:00
|
|
|
@@ -27,6 +27,7 @@
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
#include <linux/version.h>
|
|
|
|
+#include <linux/dmi.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/vmalloc.h>
|
|
|
|
#include <linux/mm.h>
|
2012-08-10 23:38:41 +02:00
|
|
|
@@ -477,6 +478,18 @@ static struct pci_device_id platform_pci
|
2011-07-01 21:31:25 +02:00
|
|
|
|
|
|
|
MODULE_DEVICE_TABLE(pci, platform_pci_tbl);
|
|
|
|
|
|
|
|
+static const struct dmi_system_id platform_dmi_tbl[] = {
|
|
|
|
+ {
|
|
|
|
+ .ident = "Xen PV-on-HVM",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "Xen"),
|
|
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "HVM domU"),
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ { },
|
|
|
|
+};
|
|
|
|
+MODULE_DEVICE_TABLE(dmi, platform_dmi_tbl);
|
|
|
|
+
|
|
|
|
static struct pci_driver platform_driver = {
|
|
|
|
name: DRV_NAME,
|
|
|
|
probe: platform_pci_init,
|