diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-09-22 18:03:41 +0100 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-09-22 18:03:41 +0100 |
commit | ceb6e18f151c3eb1106858d359c05eead4b43b0a (patch) | |
tree | 959446aacbe80b0cc8da1864c2dc5dea80ab68d4 /tools/libxl/libxl_dom.c | |
parent | ea4dce89d478d62341cd2f9d8944e215f7086144 (diff) | |
download | xen-ceb6e18f151c3eb1106858d359c05eead4b43b0a.tar.gz xen-ceb6e18f151c3eb1106858d359c05eead4b43b0a.tar.bz2 xen-ceb6e18f151c3eb1106858d359c05eead4b43b0a.zip |
libxl: proper accounting for the videoram
Remove the videoram from the memory target of the domains consistently,
leave the total amount of memory in maxmem.
[fixed up for conflicts with libxl__ naming policy changes -iwj]
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_dom.c')
-rw-r--r-- | tools/libxl/libxl_dom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 9f5d98552f..13cdab5fd5 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -110,7 +110,7 @@ int libxl__build_post(libxl_ctx *ctx, uint32_t domid, ents[0] = "memory/static-max"; ents[1] = libxl__sprintf(&gc, "%d", info->max_memkb); ents[2] = "memory/target"; - ents[3] = libxl__sprintf(&gc, "%d", info->target_memkb); + ents[3] = libxl__sprintf(&gc, "%d", info->target_memkb - info->video_memkb); ents[4] = "memory/videoram"; ents[5] = libxl__sprintf(&gc, "%d", info->video_memkb); ents[6] = "domid"; |