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>
This commit is contained in:
Keir Fraser committed 2008-07-10 17:29:06 +01:00
1 parent ed753cd3a5
commit d91284f888
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -833,8 +833,8 @@ class IA64_HVM_ImageHandler(HVMImageHandler):
# 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(HVMImageHandler):
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()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.