mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[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:
1 parent
defc7a67a1
commit
6ed3af384f
3 files changed
+21
-30
No files matched your search
@@ -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
|
||||
|
||||