Commit fe754aea40 for qemu.org

commit fe754aea40c53cbc876048ed4d878681ea22d80a
Author: Peter Xu <peterx@redhat.com>
Date:   Tue Aug 18 13:20:12 2026 -0400

    machine: Remove 32bit limitation on ram size

    QEMU has switched to 64bit-only hosts for all system/user emulations.

    Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
    Link: https://lore.kernel.org/r/20260818172012.3052821-10-peterx@redhat.com
    Cc: "Philippe Mathieu-Daudé" <philmd@mailo.com>
    Cc: Zhao Liu <zhao1.liu@intel.com>
    Signed-off-by: Peter Xu <peterx@redhat.com>

diff --git a/hw/core/machine.c b/hw/core/machine.c
index 8939ae1666..92f7be52a1 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -1626,14 +1626,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);