From: Jean Guyader Date: Thu, 28 May 2009 01:20:26 +0000 (+0100) Subject: Add a workaround for the videoram. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c28734f140675336d24cd2ecd88db7b65b5bdd0b;p=xenclient%2Fxen-pq.git Add a workaround for the videoram. maxmem needs to take in count the amount of videoram. --- diff --git a/master/series b/master/series index 5639284..870ab42 100644 --- a/master/series +++ b/master/series @@ -11,3 +11,4 @@ init-vgabios-and-set-size mfn-validity-check-before-shadow-remove remove-fixed-host-bridge-check mtrr-changes +video-memory-workaround diff --git a/master/video-memory-workaround b/master/video-memory-workaround new file mode 100644 index 0000000..361e41d --- /dev/null +++ b/master/video-memory-workaround @@ -0,0 +1,14 @@ +diff --git a/tools/libxc/xc_hvm_build.c b/tools/libxc/xc_hvm_build.c +index 787f4ec..2101052 100644 +--- a/tools/libxc/xc_hvm_build.c ++++ b/tools/libxc/xc_hvm_build.c +@@ -432,6 +432,9 @@ int xc_hvm_build(int xc_handle, + else + sts |= init_vgabios(xc_handle, domid, NULL, 0x800); + ++ /* Add 9M in the max mem to support the videoram */ ++ xc_domain_setmaxmem(xc_handle, domid , memsize + 9 * 1024); ++ + free(image); + + return sts;