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

[Xen-changelog] [xen-unstable] ioemu: drop unused 4MB video memory



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1215707346 -3600
# Node ID 07c7aef164cf88f8dbe9e5d967f0099f31790918
# Parent  d5efa03793a2521dff488ab4e5a0bfe98d28bd46
ioemu: drop unused 4MB video memory

Since we only emulate the cirrus VGA video card which is only able to
expose 4MB video memory, we don't need more than that.

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
 tools/ioemu/vl.h               |    2 +-
 tools/python/xen/xend/image.py |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff -r d5efa03793a2 -r 07c7aef164cf tools/ioemu/vl.h
--- a/tools/ioemu/vl.h  Thu Jul 10 16:15:37 2008 +0100
+++ b/tools/ioemu/vl.h  Thu Jul 10 17:29:06 2008 +0100
@@ -927,7 +927,7 @@ extern struct soundhw soundhw[];
 
 /* vga.c */
 
-#define VGA_RAM_SIZE (8192 * 1024)
+#define VGA_RAM_SIZE (4096 * 1024)
 
 /* in ms */
 #define GUI_REFRESH_INTERVAL 30
diff -r d5efa03793a2 -r 07c7aef164cf tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Thu Jul 10 16:15:37 2008 +0100
+++ b/tools/python/xen/xend/image.py    Thu Jul 10 17:29:06 2008 +0100
@@ -833,8 +833,8 @@ class IA64_HVM_ImageHandler(HVMImageHand
         # buffer io page, buffer pio page and memmap info page
         extra_pages = 1024 + 5
         mem_kb += extra_pages * page_kb
-        # Add 8 MiB overhead for QEMU's video RAM.
-        return mem_kb + 8192
+        # Add 4 MiB overhead for QEMU's video RAM.
+        return mem_kb + 4096
 
     def getRequiredInitialReservation(self):
         return self.vm.getMemoryTarget()
@@ -876,8 +876,8 @@ class X86_HVM_ImageHandler(HVMImageHandl
         return rc
 
     def getRequiredAvailableMemory(self, mem_kb):
-        # Add 8 MiB overhead for QEMU's video RAM.
-        return mem_kb + 8192
+        # Add 4 MiB overhead for QEMU's video RAM.
+        return mem_kb + 4096
 
     def getRequiredInitialReservation(self):
         return self.vm.getMemoryTarget()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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