All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] ioemu: drop unused 4MB video memory
Date: Thu, 10 Jul 2008 17:18:42 +0100	[thread overview]
Message-ID: <20080710161842.GP4536@implementation.uk.xensource.com> (raw)

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

             reply	other threads:[~2008-07-10 16:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 16:18 Samuel Thibault [this message]
2008-07-14  9:35 ` [PATCH] ioemu: drop unused 4MB video memory 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080710161842.GP4536@implementation.uk.xensource.com \
    --to=samuel.thibault@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.