From: Ian Campbell Date: Fri, 31 Aug 2012 10:13:48 +0000 (+0100) Subject: xencommons: Attempt to load blktap2 driver X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8003 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3c5b9dcac890323c43794684510c71ebc74501a2;p=xen.git 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 Acked-by: Ian Jackson 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 Acked-by: Jan Beulich Committed-by: Ian Campbell --- 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`