Stefano Stabellini
2009-May-21 16:21 UTC
[Xen-devel] [PATCH] stubdoms ''file'' based disks sharing
Hi all,
this simple patch allows ''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@eu.citrix.com>
---
diff -r 61404d971c92 stubdom/stubdom-dm
--- a/stubdom/stubdom-dm Thu May 21 04:31:47 2009 +0100
+++ b/stubdom/stubdom-dm Thu May 21 17:15:49 2009 +0100
@@ -114,10 +114,6 @@
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 61404d971c92 tools/hotplug/Linux/block
--- a/tools/hotplug/Linux/block Thu May 21 04:31:47 2009 +0100
+++ b/tools/hotplug/Linux/block Thu May 21 17:15:49 2009 +0100
@@ -202,13 +202,13 @@
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-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel