From: Max Reitz <1512134@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [Bug 1512134] Re: Multiboot v1 memory map offset wrong
Date: Mon, 09 Nov 2015 16:59:40 -0000 [thread overview]
Message-ID: <20151109165941.23304.36200.launchpad@gac.canonical.com> (raw)
In-Reply-To: 20151101190214.21055.11653.malonedeb@soybean.canonical.com
** Changed in: qemu
Status: New => Invalid
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1512134
Title:
Multiboot v1 memory map offset wrong
Status in QEMU:
Invalid
Bug description:
I'm developping a multiboot kernel for multiboot v1
My multiboot header contains the V1 magic (0x1BADB002) and the flags 0x00010243 (with enabled memory detection, and boot loader name)
When booted in multiboot,
Qemu gives me two pointers:
unsigned long mmap_length;
unsigned long mmap_addr;
mmap_addr shall points to this structure:
struct multiboot_mmap_entry
{
multiboot_uint32_t size;
multiboot_uint64_t addr;
multiboot_uint64_t len;
multiboot_uint32_t type;
}
According to the multiboot v1 specification, mmap_addr should not point to the start of this structure, but instead, should point to the "addr "field.
Work-arround:
Detect if qemu is used using bootloader_name field.
If it is, do NOT apply a -4 offset to mmap_addr
http://git.savannah.gnu.org/cgit/grub.git/tree/doc/multiboot.texi?h=multiboot
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1512134/+subscriptions
prev parent reply other threads:[~2015-11-09 17:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-01 19:02 [Qemu-devel] [Bug 1512134] [NEW] Multiboot v1 memory map offset wrong Tristan Parisot
2015-11-01 19:03 ` [Qemu-devel] [Bug 1512134] " Tristan Parisot
2015-11-02 16:42 ` Max Reitz
2015-11-08 11:56 ` Tristan Parisot
2015-11-09 16:59 ` Max Reitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151109165941.23304.36200.launchpad@gac.canonical.com \
--to=1512134@bugs.launchpad.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).