qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] configure: Support system emulation with large memo


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] configure: Support system emulation with large memory on w32 hosts
Date: Wed, 18 Jul 2012 18:37:43 +0200

32-bit applications on Windows normally only get virtual memory in
the lower 2 GiB address space.

Because of memory fragmentation, VirtualAlloc() usually won't get 1 GiB
of contiguous virtual memory in that address space. Therefore running
system emulations with 1 GiB or more RAM will abort with a failure.

The linker flag --large-address-aware allows addresses in the upper 2 GiB.
With this flag, it is possible to run emulated machines with up to
2047 MiB RAM.

Signed-off-by: Stefan Weil <address@hidden>
---

I tested the executables with large address awareness on a 64 bit Windows
(works) and with Wine on Debian 32 bit Linux (no longer aborts, but hangs
when 1024 or more MiB are requested).

Maybe the support for large addresses is broken in my Wine version.
Please report any different test results.

Regards,

Stefan Weil


 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index df5c99a..b681f9a 100755
--- a/configure
+++ b/configure
@@ -2937,9 +2937,9 @@ else
     POD2MAN="pod2man"
 fi
 
-# Use ASLR, no-SEH and DEP if available
+# Use ASLR, large addresses, no-SEH and DEP if available
 if test "$mingw32" = "yes" ; then
-    for flag in --dynamicbase --no-seh --nxcompat; do
+    for flag in --dynamicbase --large-address-aware --no-seh --nxcompat; do
         if $ld --help 2>/dev/null | grep ".$flag" >/dev/null 2>/dev/null ; then
             LDFLAGS="-Wl,$flag $LDFLAGS"
         fi
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]