id = 2538 title = "qemu-system-loongarch64: ../hw/loongarch/virt.c:118: virt_flash_map1: Assertion `QEMU_IS_ALIGNED(real_size, VIRT_FLASH_SECTOR_SIZE)' failed." state = "closed" created_at = "2024-08-26T11:12:06.946Z" closed_at = "2025-03-25T14:06:55.163Z" labels = ["Regression", "target: loongarch"] url = "https://gitlab.com/qemu-project/qemu/-/issues/2538" host-os = "Fedora 40" host-arch = "x64" qemu-version = "9.1.0" guest-os = "None" guest-arch = "loongarch64" description = """Cannot enter the loongarch64 UEFI shell due to the error below: qemu-system-loongarch64: ../hw/loongarch/virt.c:118: virt_flash_map1: Assertion `QEMU_IS_ALIGNED(real_size, VIRT_FLASH_SECTOR_SIZE)' failed.""" reproduce = """1.follow the steps to create an empty loongarch64 uefi bare metal. 2.Click start the installation 3.Then the error occurs.""" additional = """``` qemu-system-loongarch64: ../hw/loongarch/virt.c:118: virt_flash_map1: Assertion `QEMU_IS_ALIGNED(real_size, VIRT_FLASH_SECTOR_SIZE)' failed.' Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/createvm.py", line 2008, in _do_async_install installer.start_install(guest, meter=meter) File "/usr/share/virt-manager/virtinst/install/installer.py", line 695, in start_install domain = self._create_guest( ^^^^^^^^^^^^^^^^^^^ File "/usr/share/virt-manager/virtinst/install/installer.py", line 637, in _create_guest domain = self.conn.createXML(initial_xml or final_xml, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.12/site-packages/libvirt.py", line 4545, in createXML raise libvirtError('virDomainCreateXML() failed') ```"""