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

[Xen-API] [PATCH] Subtract VGA framebuffer memory size from value of start_mem passed into HVM domain builder.



# HG changeset patch
# User Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
# Date 1257958551 0
# Node ID 334087e86438b03550de9c423c0c0a1057e122d0
# Parent  1e3417f2b735d86334966d2592241261d6e7bb8e
Subtracts the VGA framebuffer constant (4 MiB) from the value of 
build_start_mem passed into the HVM domain builder, in the same way that we 
already subtract this constant from the value of build_max_mem. This allows us 
to satisfy the domain builder contract which expects that (build_start_mem <= 
build_max_mem) and for both memory values to *not* include framebuffer memory.

Signed-off-by: Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>

diff -r 1e3417f2b735 -r 334087e86438 ocaml/xenops/memory.ml
--- a/ocaml/xenops/memory.ml    Wed Nov 11 16:20:34 2009 +0000
+++ b/ocaml/xenops/memory.ml    Wed Nov 11 16:55:51 2009 +0000
@@ -132,7 +132,7 @@
        let extra_external_mib = 1L
 
        let build_max_mib static_max_mib = static_max_mib --- video_mib
-       let build_start_mib target_mib = target_mib
+       let build_start_mib target_mib = target_mib --- video_mib
 
        let xen_max_offset_mib = extra_internal_mib
        let xen_max_mib target_mib = target_mib +++ xen_max_offset_mib
1 file changed, 1 insertion(+), 1 deletion(-)
ocaml/xenops/memory.ml |    2 +-


Attachment: xen-api.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.