multiboot: Fix offset of bootloader name
commitb4168498f613db3d908909106146001a9279e732
authorKevin Wolf <kwolf@redhat.com>
Thu, 15 Jan 2015 11:26:43 +0000 (15 12:26 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Jan 2015 11:22:44 +0000 (26 12:22 +0100)
tree09377c746820830afb777e8f8bb2d4856665e0f2
parent43bfb507f422a642ea2893555e13ccc2557d810a
multiboot: Fix offset of bootloader name

This fixes a bug introduced in commit 5eba5a66 ('Add bootloader name to
multiboot implementation').

The calculation of the bootloader name offset didn't consider space
occupied by module command lines, so some unlucky module got its command
line partially overwritten with a "qemu" string.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/multiboot.c