All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1811888] [NEW] Qemu refuses to multiboot Elf64 kernels
@ 2019-01-15 19:25 Lukasz Janyst
  2021-04-20  8:04 ` [Bug 1811888] " Thomas Huth
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Lukasz Janyst @ 2019-01-15 19:25 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

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

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "0001-hw-i386-multiboot.c-Don-t-refuse-to-boot-ELF64-binar.patch"
   https://bugs.launchpad.net/bugs/1811888/+attachment/5229414/+files/0001-hw-i386-multiboot.c-Don-t-refuse-to-boot-ELF64-binar.patch

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1811888

Title:
  Qemu refuses to multiboot Elf64 kernels

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1811888/+subscriptions

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1811888] Re: Qemu refuses to multiboot Elf64 kernels
  2019-01-15 19:25 [Qemu-devel] [Bug 1811888] [NEW] Qemu refuses to multiboot Elf64 kernels Lukasz Janyst
@ 2021-04-20  8:04 ` Thomas Huth
  2021-04-22  4:11 ` Thomas Huth
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-04-20  8:04 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1811888

Title:
  Qemu refuses to multiboot Elf64 kernels

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1811888/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1811888] Re: Qemu refuses to multiboot Elf64 kernels
  2019-01-15 19:25 [Qemu-devel] [Bug 1811888] [NEW] Qemu refuses to multiboot Elf64 kernels Lukasz Janyst
  2021-04-20  8:04 ` [Bug 1811888] " Thomas Huth
@ 2021-04-22  4:11 ` Thomas Huth
  2021-04-22  5:38 ` Lukasz Janyst
  2021-05-09 16:11 ` Philippe Mathieu-Daudé
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Huth @ 2021-04-22  4:11 UTC (permalink / raw)
  To: qemu-devel

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

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1811888

Title:
  Qemu refuses to multiboot Elf64 kernels

Status in QEMU:
  Incomplete

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1811888/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1811888] Re: Qemu refuses to multiboot Elf64 kernels
  2019-01-15 19:25 [Qemu-devel] [Bug 1811888] [NEW] Qemu refuses to multiboot Elf64 kernels Lukasz Janyst
  2021-04-20  8:04 ` [Bug 1811888] " Thomas Huth
  2021-04-22  4:11 ` Thomas Huth
@ 2021-04-22  5:38 ` Lukasz Janyst
  2021-05-09 16:11 ` Philippe Mathieu-Daudé
  3 siblings, 0 replies; 5+ messages in thread
From: Lukasz Janyst @ 2021-04-22  5:38 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Incomplete => New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1811888

Title:
  Qemu refuses to multiboot Elf64 kernels

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1811888/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1811888] Re: Qemu refuses to multiboot Elf64 kernels
  2019-01-15 19:25 [Qemu-devel] [Bug 1811888] [NEW] Qemu refuses to multiboot Elf64 kernels Lukasz Janyst
                   ` (2 preceding siblings ...)
  2021-04-22  5:38 ` Lukasz Janyst
@ 2021-05-09 16:11 ` Philippe Mathieu-Daudé
  3 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-09 16:11 UTC (permalink / raw)
  To: qemu-devel

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

** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #243
   https://gitlab.com/qemu-project/qemu/-/issues/243

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1811888

Title:
  Qemu refuses to multiboot Elf64 kernels

Status in QEMU:
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1811888/+subscriptions


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-09 16:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 19:25 [Qemu-devel] [Bug 1811888] [NEW] Qemu refuses to multiboot Elf64 kernels Lukasz Janyst
2021-04-20  8:04 ` [Bug 1811888] " Thomas Huth
2021-04-22  4:11 ` Thomas Huth
2021-04-22  5:38 ` Lukasz Janyst
2021-05-09 16:11 ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.