id = 1925 title = "RISC-V 64 System Emulator fdt imporperly created after machine init is done" state = "closed" created_at = "2023-10-08T09:30:16.285Z" closed_at = "2023-11-22T16:50:13.484Z" labels = ["target: riscv"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1925" host-os = "Ubuntu 22.04" host-arch = "x86_64" qemu-version = "8.1.1" guest-os = "Linux" guest-arch = "RISC-V 64" description = """In commit 49554856 the creation of FDT is moved to `virt_machine_done()` However, adding guest loader device requires the presence of fdt at `hw/core/guest-loader.c:50` when the fdt ptr is still 0x0. Thus adding of guest loader device will fail.""" reproduce = """1. Compile Qemu with riscv64 system emulator target 2. Compile Xen hypervisor platform (not necessary) 3. Instruct Qemu start with virt machine and any valid guest-loader device specification.""" additional = """Commit that changes order of fdt creation: 49554856f0b6f622ab6afdcc275d4ab2ecb3625c"""