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

[Xen-changelog] [xen-3.4-testing] stubdom: 'file' based disk sharing



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1243863369 -3600
# Node ID 46f9eccaff11f0b210b0e2e62cd728e3d661f7c9
# Parent  9603c86017f42529d158f373531ad2415384a011
stubdom: 'file' based disk sharing

Allow 'file' based disks, that are blkback based disks, to be shared
between the guest domain and the stubdom. It does so exploiting the
same exception introduced in the previous patch "stubdoms phy disks
sharing". Now we can remove the hack in stubdom-dm that forces "file"
disks to be opened using blktap instead of blkback.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
xen-unstable changeset:   19636:0f752c773497
xen-unstable date:        Tue May 26 09:50:35 2009 +0100
---
 stubdom/stubdom-dm        |    4 ----
 tools/hotplug/Linux/block |    6 +++---
 2 files changed, 3 insertions(+), 7 deletions(-)

diff -r 9603c86017f4 -r 46f9eccaff11 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm        Mon Jun 01 14:35:42 2009 +0100
+++ b/stubdom/stubdom-dm        Mon Jun 01 14:36:09 2009 +0100
@@ -114,10 +114,6 @@ do
     vbd_dev=`xenstore-read $i/dev`
     vbd_front=`xenstore-read $i/frontend`
     vbd_devtype=`xenstore-read $vbd_front/device-type`
-    if [ $vbd_type = "file" ]
-    then
-        vbd_type="tap:aio"
-    fi
     if [ $j -ne 0 ]
     then
         echo -n "," >> /etc/xen/stubdoms/$domname-dm
diff -r 9603c86017f4 -r 46f9eccaff11 tools/hotplug/Linux/block
--- a/tools/hotplug/Linux/block Mon Jun 01 14:35:42 2009 +0100
+++ b/tools/hotplug/Linux/block Mon Jun 01 14:36:09 2009 +0100
@@ -202,13 +202,13 @@ case "$command" in
       p=$(xenstore_read "$XENBUS_PATH/params")
       mode=$(xenstore_read "$XENBUS_PATH/mode")
     fi
+    FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
+    FRONTEND_UUID=$(xenstore_read_default \
+            "/local/domain/$FRONTEND_ID/vm" 'unknown')
 
     case $t in 
       phy)
         dev=$(expand_dev $p)
-        FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id")
-        FRONTEND_UUID=$(xenstore_read_default \
-            "/local/domain/$FRONTEND_ID/vm" 'unknown')
 
         if [ -L "$dev" ]
         then

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.