aboutsummaryrefslogtreecommitdiffstats
path: root/tools/hotplug
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2012-08-31 11:13:48 +0100
committerIan Campbell <Ian.Campbell@citrix.com>2012-08-31 11:13:48 +0100
commit3c5b9dcac890323c43794684510c71ebc74501a2 (patch)
treeb709213e5c1d33bcf9c6ef4aca33edf1c6a51d02 /tools/hotplug
parenta80e6fb6716fcd879b5dbd501b72c87accbfdd37 (diff)
downloadxen-3c5b9dcac890323c43794684510c71ebc74501a2.tar.gz
xen-3c5b9dcac890323c43794684510c71ebc74501a2.tar.bz2
xen-3c5b9dcac890323c43794684510c71ebc74501a2.zip
xencommons: Attempt to load blktap2 driver
Older kernels, such as those found in Debian Squeeze: * Have bugs in handling of AIO into foreign pages * Have blktap modules, which will cause qemu not to use AIO, but which are not loaded on boot. Attempt to load blktap in xencommons, to make sure modern qemu's which use AIO will work properly on those kernels. Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Prefer to load blktap2 if it exists. This is the name of the driver in classic-Xen ports, while in mainline kernels the driver is called just blktap. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/hotplug')
-rw-r--r--tools/hotplug/Linux/init.d/xencommons1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/hotplug/Linux/init.d/xencommons b/tools/hotplug/Linux/init.d/xencommons
index 25e0e2d8eb..cc8177e6ea 100644
--- a/tools/hotplug/Linux/init.d/xencommons
+++ b/tools/hotplug/Linux/init.d/xencommons
@@ -68,6 +68,7 @@ do_start () {
modprobe usbbk 2>/dev/null
modprobe pciback 2>/dev/null
modprobe xen-acpi-processor 2>/dev/null
+ modprobe blktap2 2>/dev/null || modprobe blktap 2>/dev/null
mkdir -p /var/run/xen
if ! `xenstore-read -s / >/dev/null 2>&1`