Skip to contentSkip to conversation

unmodified_drivers: enable unplug per default

PATCH Superseded Olaf Hering 1 participant 1 message Aug 27, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unmodified_drivers: enable unplug per default

Since xen-3.3 an official unplug protocol for emulated hardware is available in the toolstack. The pvops kernel does the unplug per default, so it is safe to do it also in the drivers for forward ported xenlinux.
Currently its required to load xen-platform-pci with the module parameter dev_unplug=all, which is cumbersome.

---
 unmodified_drivers/linux-2.6/platform-pci/platform-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
unmodified_drivers/linux-2.6/platform-pci/platform-pci.c +1 -1
index cfd0536..ff405c2 100644
@@ -63,7 +63,7 @@ MODULE_LICENSE("GPL");
 
 /* NB. [aux-]ide-disks options do not unplug IDE CD-ROM drives. */
 /* NB. aux-ide-disks is equiv to ide-disks except ignores primary master. */
-static char *dev_unplug;
+static char *dev_unplug = "all";
 module_param(dev_unplug, charp, 0644);
 MODULE_PARM_DESC(dev_unplug, "Emulated devices to unplug: "
 		 "[all,][ide-disks,][aux-ide-disks,][nics]\n");