From: Olaf Hering Date: Thu, 1 Dec 2011 18:28:18 +0000 (+0000) Subject: tools: init.d/Linux/xencommons: load evtchn and gntdev modules X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f00d216182450961589c08c6996c00fe1ab0d127;p=xen.git tools: init.d/Linux/xencommons: load evtchn and gntdev modules 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 Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/hotplug/Linux/init.d/xencommons b/tools/hotplug/Linux/init.d/xencommons index 1378bef0fa..f02b25dabb 100644 --- a/tools/hotplug/Linux/init.d/xencommons +++ b/tools/hotplug/Linux/init.d/xencommons @@ -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"