aboutsummaryrefslogtreecommitdiffstats
path: root/stubdom/stubdom-dm
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-01-29 16:41:48 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-01-29 16:41:48 +0000
commitfa5078d4071a21e0e87d6d9418d950ea624d4ea8 (patch)
treef91a787937165fb1d8f90974d16999ff04616644 /stubdom/stubdom-dm
parent441959385830ac73376a0502b036fa1de4e660fd (diff)
downloadxen-fa5078d4071a21e0e87d6d9418d950ea624d4ea8.tar.gz
xen-fa5078d4071a21e0e87d6d9418d950ea624d4ea8.tar.bz2
xen-fa5078d4071a21e0e87d6d9418d950ea624d4ea8.zip
stubdom: add videoram to stubdom initial memory reservation
This patch adds a videoram parameter (4MB is the default) to pv guests too: if the pv guest is actually a stubdomain then the videoram size is added to the initial required available memory. This way there is no risk that a stubdom fails to populate the videoram because the RAM freed for the videoram by dom0 has already been used to create the stubdom. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'stubdom/stubdom-dm')
-rw-r--r--stubdom/stubdom-dm7
1 files changed, 6 insertions, 1 deletions
diff --git a/stubdom/stubdom-dm b/stubdom/stubdom-dm
index a800bc4746..f471e82b36 100644
--- a/stubdom/stubdom-dm
+++ b/stubdom/stubdom-dm
@@ -15,6 +15,7 @@ domname=
vncviewer=0
vncpid=
extra=
+videoram=4
while [ "$#" -gt 0 ];
do
if [ "$#" -ge 2 ];
@@ -38,6 +39,10 @@ do
extra="$extra -loadvm $2";
shift
;;
+ -videoram)
+ videoram="$2"
+ shift
+ ;;
esac
fi
case "$1" in
@@ -72,7 +77,7 @@ do
sleep 1
done
-creation="xm create -c $domname-dm target=$domid memory=32 extra=\"$extra\""
+creation="xm create -c $domname-dm target=$domid memory=32 videoram=$videoram extra=\"$extra\""
(while true ; do sleep 60 ; done) | /bin/sh -c "$creation" &
#xterm -geometry +0+0 -e /bin/sh -c "$creation ; echo ; echo press ENTER to shut down ; read" &