All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ioemu: drop unused 4MB video memory
@ 2008-07-10 16:18 Samuel Thibault
  2008-07-14  9:35 ` Ian Jackson
  0 siblings, 1 reply; 12+ messages in thread
From: Samuel Thibault @ 2008-07-10 16:18 UTC (permalink / raw)
  To: xen-devel

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@eu.citrix.com>

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()

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-07-14 13:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10 16:18 [PATCH] ioemu: drop unused 4MB video memory Samuel Thibault
2008-07-14  9:35 ` Ian Jackson
2008-07-14  9:35   ` Ian Jackson
2008-07-14 10:40   ` Samuel Thibault
2008-07-14 10:42     ` Keir Fraser
2008-07-14 10:49       ` Samuel Thibault
2008-07-14 11:09         ` Samuel Thibault
2008-07-14 11:40           ` Trolle Selander
2008-07-14 11:46             ` Samuel Thibault
2008-07-14 12:53     ` Ian Jackson
2008-07-14 12:58       ` Samuel Thibault
2008-07-14 13:47         ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.