]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
tools: init.d/Linux/xencommons: load evtchn and gntdev modules
authorOlaf Hering <olaf@aepfle.de>
Thu, 8 Dec 2011 16:50:28 +0000 (16:50 +0000)
committerOlaf Hering <olaf@aepfle.de>
Thu, 8 Dec 2011 16:50:28 +0000 (16:50 +0000)
There is currently no code in the kernel to trigger autoload of the
evtchn or gntdev drivers. Load them manually during xencommons start.
Handle both pvops and xenlinux module names.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen-unstable changeset: 24334:9c8aff308002
Backport-requested-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/init.d/xencommons

index 1378bef0faedd08afad2d2cd8e4a45ef075d981a..f02b25dabb1a3a989886ef77a8614f157e43878a 100644 (file)
@@ -54,6 +54,11 @@ do_start () {
         local time=0
        local timeout=30
 
+       modprobe xen-evtchn 2>/dev/null
+       modprobe xen-gntdev 2>/dev/null
+       modprobe evtchn 2>/dev/null
+       modprobe gntdev 2>/dev/null
+
        if ! `xenstore-read -s / >/dev/null 2>&1`
        then
                test -z "$XENSTORED_ROOTDIR" || XENSTORED_ROOTDIR="/var/lib/xenstored"