WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] Subtract VGA framebuffer memory size from value of sta

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] Subtract VGA framebuffer memory size from value of start_mem passed into HVM domain builder.
From: Jonathan Knowles <jonathan.knowles@xxxxxxxxxxxxx>
Date: Wed, 11 Nov 2009 16:56:19 +0000
Delivery-date: Wed, 11 Nov 2009 08:58:31 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# 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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] Subtract VGA framebuffer memory size from value of start_mem passed into HVM domain builder., Jonathan Knowles <=