debuggers.hg
changeset 19674:0f752c773497
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@eu.citrix.com>
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@eu.citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue May 26 09:50:35 2009 +0100 (2009-05-26) |
parents | 85d6849bdcd9 |
children | 97f2e7c576ab |
files | stubdom/stubdom-dm tools/hotplug/Linux/block |
line diff
1.1 --- a/stubdom/stubdom-dm Tue May 26 09:49:19 2009 +0100 1.2 +++ b/stubdom/stubdom-dm Tue May 26 09:50:35 2009 +0100 1.3 @@ -114,10 +114,6 @@ do 1.4 vbd_dev=`xenstore-read $i/dev` 1.5 vbd_front=`xenstore-read $i/frontend` 1.6 vbd_devtype=`xenstore-read $vbd_front/device-type` 1.7 - if [ $vbd_type = "file" ] 1.8 - then 1.9 - vbd_type="tap:aio" 1.10 - fi 1.11 if [ $j -ne 0 ] 1.12 then 1.13 echo -n "," >> /etc/xen/stubdoms/$domname-dm
2.1 --- a/tools/hotplug/Linux/block Tue May 26 09:49:19 2009 +0100 2.2 +++ b/tools/hotplug/Linux/block Tue May 26 09:50:35 2009 +0100 2.3 @@ -202,13 +202,13 @@ case "$command" in 2.4 p=$(xenstore_read "$XENBUS_PATH/params") 2.5 mode=$(xenstore_read "$XENBUS_PATH/mode") 2.6 fi 2.7 + FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id") 2.8 + FRONTEND_UUID=$(xenstore_read_default \ 2.9 + "/local/domain/$FRONTEND_ID/vm" 'unknown') 2.10 2.11 case $t in 2.12 phy) 2.13 dev=$(expand_dev $p) 2.14 - FRONTEND_ID=$(xenstore_read "$XENBUS_PATH/frontend-id") 2.15 - FRONTEND_UUID=$(xenstore_read_default \ 2.16 - "/local/domain/$FRONTEND_ID/vm" 'unknown') 2.17 2.18 if [ -L "$dev" ] 2.19 then