|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] ioemu: drop unused 4MB video memory
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>
diff -r 7a918e567837 tools/ioemu/vl.h
--- a/tools/ioemu/vl.h Thu Jul 10 15:34:44 2008 +0100
+++ b/tools/ioemu/vl.h Thu Jul 10 17:09:37 2008 +0100
@@ -927,7 +927,7 @@
/* vga.c */
-#define VGA_RAM_SIZE (8192 * 1024)
+#define VGA_RAM_SIZE (4096 * 1024)
/* in ms */
#define GUI_REFRESH_INTERVAL 30
diff -r 7a918e567837 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Thu Jul 10 15:34:44 2008 +0100
+++ b/tools/python/xen/xend/image.py Thu Jul 10 17:09:37 2008 +0100
@@ -833,8 +833,8 @@
# 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 @@
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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|