Qemu refuses to multiboot Elf64 kernels

Bug #1811888 reported by Lukasz Janyst
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Wishlist
Unassigned

Bug Description

Qemu does not multiboot Elf64 bit kernels when emulating x86_64 systems. This is unfortunate because it renders the `-kernel` option quite useless. It's true that a multiboot compatible bootloader puts you in protected mode by default, and you have to set up the long mode yourself. While it is easy to put such 32-bit bootstrap code in a 64 bit binary, it is not possible to compile a 64 bit kernel into a 32 bit binary.

After quick search, it turned out that loading 64 bit elf binaries has been disabled to be compatible with GRUB. However, since that time, both GRUB and Syslinux load 64 bit ELF kernels just fine, which makes qemu incompatible with them. Furthermore, it seems that this feature does and has always worked fine and that people have since submitted patches to re-enable it.

https://patchwork.ozlabs.org/patch/62142/
https://patchwork.kernel.org/patch/9770523/

Please consider applying the attached patch.

Best Regards,
Lukasz Janyst

Revision history for this message
Lukasz Janyst (xyz-k) wrote :
Thomas Huth (th-huth)
Changed in qemu:
importance: Undecided → Wishlist
Revision history for this message
Thomas Huth (th-huth) wrote :

The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.

Changed in qemu:
status: New → Incomplete
Lukasz Janyst (xyz-k)
Changed in qemu:
status: Incomplete → New
Revision history for this message
Philippe Mathieu-Daudé (philmd) wrote : Moved bug report

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'invalid' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/243

Changed in qemu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.