[PATCH v2 9/9] machine: Remove 32bit limitation on ram size

Peter Xu <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
QEMU has switched to 64bit-only hosts for all system/user emulations.

Signed-off-by: Peter Xu <[email protected]>
---
 hw/core/machine.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/hw/core/machine.c b/hw/core/machine.c
index e617f7804d..776df84191 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1625,14 +1625,6 @@ void machine_run_board_init(MachineState *machine, const char *mem_path, Error *
        clock values from the log. */
     replay_checkpoint(CHECKPOINT_INIT);
 
-    if (!xen_enabled()) {
-        /* On 32-bit hosts, QEMU is limited by virtual address space */
-        if (machine->ram_size > (2047 << 20) && HOST_LONG_BITS == 32) {
-            error_setg(errp, "at most 2047 MB RAM can be simulated");
-            return;
-        }
-    }
-
     if (machine->memdev) {
         ram_addr_t backend_size = object_property_get_uint(OBJECT(machine->memdev),
                                                            "size",  &error_abort);
-- 
2.54.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.