]> xenbits.xen.org Git - xenclient/ioemu-pq.git/commitdiff
XC-469: Remove the ram limit. Fixed.
authorJean Guyader <jean.guyader@eu.citrix.com>
Fri, 13 Nov 2009 11:15:05 +0000 (11:15 +0000)
committerJean Guyader <jean.guyader@eu.citrix.com>
Fri, 13 Nov 2009 11:15:05 +0000 (11:15 +0000)
master/remove_ram_limit [new file with mode: 0644]
master/series

diff --git a/master/remove_ram_limit b/master/remove_ram_limit
new file mode 100644 (file)
index 0000000..411a3d6
--- /dev/null
@@ -0,0 +1,36 @@
+diff -r 0d66aa7337e7 vl.c
+--- a/vl.c     Thu Aug 13 16:45:09 2009 +0100
++++ b/vl.c     Thu Aug 13 16:46:18 2009 +0100
+@@ -5102,7 +5102,7 @@
+                     fprintf(stderr, "qemu: invalid ram size: %s\n", optarg);
+                     exit(1);
+                 }
+-
++#ifndef CONFIG_DM
+                 /* On 32-bit hosts, QEMU is limited by virtual address space */
+                 if (value > (2047 << 20)
+ #ifndef USE_KQEMU
+@@ -5116,6 +5116,7 @@
+                     fprintf(stderr, "qemu: ram size too large\n");
+                     exit(1);
+                 }
++#endif
+                 ram_size = value;
+                 break;
+             }
+@@ -5679,6 +5680,7 @@
+         ram_size += 1 * MEM_G; /* skip 3G-4G MMIO, LEGACY_IO_SPACE etc. */
+ #endif
++#ifndef CONFIG_DM
+     if (machine->ram_require & RAMSIZE_FIXED) {
+         if (ram_size > 0) {
+             if (ram_size < phys_ram_size) {
+@@ -5697,7 +5699,6 @@
+         phys_ram_size += ram_size;
+     }
+-#ifndef CONFIG_DM
+     phys_ram_base = qemu_vmalloc(phys_ram_size);
+     if (!phys_ram_base) {
+         fprintf(stderr, "Could not allocate physical memory\n");
index 01318086c668407d76cf9d87ac2b7df7879d267c..9d28e481f9b4460a2b09181b011bd2feabb4d013 100644 (file)
@@ -2,6 +2,8 @@
 qemu-log-syslog
 ioemu-compil
 
+remove_ram_limit
+
 alsa-fix
 alsa-config
 audio-volume-control