[IA64] Clean up VTi memory initialization logic

This patch makes the logic in setup_guest() more clear.
domain_translate_gpfn_list() is now gone, so we can make
memory initializtion code simple.
Xend passes memory size which is a sum of normal memory
size and GFW memory to QEMU and Libxc. This patch fixes
this issue.

Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
This commit is contained in:
awilliam@xenbuild2.aw committed 2007-01-10 08:00:50 -07:00
1 parent defc7a67a1
commit 6ed3af384f
3 files changed
+21 -30

No files matched your search

+3
View File
@@ -591,6 +591,9 @@ class IA64_HVM_ImageHandler(HVMImageHandler):
extra_pages = 1024 + 3
return mem_kb + extra_pages * page_kb
def getRequiredInitialReservation(self):
return self.vm.getMemoryTarget()
def getRequiredShadowMemory(self, shadow_mem_kb, maxmem_kb):
# Explicit shadow memory is not a concept
return 0
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.