[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xencommons: Attempt to load blktap2 driver


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 04 Sep 2012 14:44:13 +0000
  • Delivery-date: Tue, 04 Sep 2012 14:44:20 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Campbell <Ian.Campbell@xxxxxxxxxx>
# Date 1346408028 -3600
# Node ID f2905910f7315481b96109b0f8e266edec185628
# Parent  49625db443bcefc5088a417d595b18630cf42547
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@xxxxxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>

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@xxxxxxxxxx>
Acked-by: Jan Beulich <JBeulich@xxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r 49625db443bc -r f2905910f731 tools/hotplug/Linux/init.d/xencommons
--- a/tools/hotplug/Linux/init.d/xencommons     Fri Aug 31 10:42:09 2012 +0100
+++ b/tools/hotplug/Linux/init.d/xencommons     Fri Aug 31 11:13:48 2012 +0100
@@ -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`

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.