ia64/xen-unstable

changeset 18028:07c7aef164cf

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>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jul 10 17:29:06 2008 +0100 (2008-07-10)
parents d5efa03793a2
children 27aaff984b36
files tools/ioemu/vl.h tools/python/xen/xend/image.py
line diff
     1.1 --- a/tools/ioemu/vl.h	Thu Jul 10 16:15:37 2008 +0100
     1.2 +++ b/tools/ioemu/vl.h	Thu Jul 10 17:29:06 2008 +0100
     1.3 @@ -927,7 +927,7 @@ extern struct soundhw soundhw[];
     1.4  
     1.5  /* vga.c */
     1.6  
     1.7 -#define VGA_RAM_SIZE (8192 * 1024)
     1.8 +#define VGA_RAM_SIZE (4096 * 1024)
     1.9  
    1.10  /* in ms */
    1.11  #define GUI_REFRESH_INTERVAL 30
     2.1 --- a/tools/python/xen/xend/image.py	Thu Jul 10 16:15:37 2008 +0100
     2.2 +++ b/tools/python/xen/xend/image.py	Thu Jul 10 17:29:06 2008 +0100
     2.3 @@ -833,8 +833,8 @@ class IA64_HVM_ImageHandler(HVMImageHand
     2.4          # buffer io page, buffer pio page and memmap info page
     2.5          extra_pages = 1024 + 5
     2.6          mem_kb += extra_pages * page_kb
     2.7 -        # Add 8 MiB overhead for QEMU's video RAM.
     2.8 -        return mem_kb + 8192
     2.9 +        # Add 4 MiB overhead for QEMU's video RAM.
    2.10 +        return mem_kb + 4096
    2.11  
    2.12      def getRequiredInitialReservation(self):
    2.13          return self.vm.getMemoryTarget()
    2.14 @@ -876,8 +876,8 @@ class X86_HVM_ImageHandler(HVMImageHandl
    2.15          return rc
    2.16  
    2.17      def getRequiredAvailableMemory(self, mem_kb):
    2.18 -        # Add 8 MiB overhead for QEMU's video RAM.
    2.19 -        return mem_kb + 8192
    2.20 +        # Add 4 MiB overhead for QEMU's video RAM.
    2.21 +        return mem_kb + 4096
    2.22  
    2.23      def getRequiredInitialReservation(self):
    2.24          return self.vm.getMemoryTarget()