[IA64][VMX] Fix 3G memory limit for VTi domain.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 9 Nov 2006 13:28:45 +0000 (13:28 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 9 Nov 2006 13:28:45 +0000 (13:28 +0000)
Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>

tools/ioemu/vl.c

index c6798e5c926be87cb2a2dbdac4ab30ff3f794618..924aa3c9997f6bde67e803d6c3924b3b7fafe353 100644 (file)
@@ -6390,6 +6390,11 @@ int main(int argc, char **argv)
             exit(1);
     }
 
+#if defined (__ia64__)
+    if (ram_size > MMIO_START)
+        ram_size += 1 * MEM_G; /* skip 3G-4G MMIO, LEGACY_IO_SPACE etc. */
+#endif
+
     /* init the memory */
     phys_ram_size = ram_size + vga_ram_size + bios_size;
 
@@ -6397,11 +6402,6 @@ int main(int argc, char **argv)
 
     xc_handle = xc_interface_open();
 
-#if defined (__ia64__)
-    if (ram_size > MMIO_START)
-        ram_size += 1 * MEM_G; /* skip 3G-4G MMIO, LEGACY_IO_SPACE etc. */
-#endif
-
     nr_pages = ram_size/PAGE_SIZE;
     tmp_nr_pages = nr_pages;