All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Mark Rutland <mark.rutland@arm.com>
Subject: Re: [Qemu-devel] [PATCH v2] hw/arm/boot: take Linux/arm64 TEXT_OFFSET header field into account
Date: Tue, 4 Apr 2017 12:45:18 +0100	[thread overview]
Message-ID: <CAFEAcA-NxhpE_23Ec=+iWSzPeee6aEvj70dU0G26CETd5bofig@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA8o15m5PgRPdGtHRgP=t4EZf5EPZKnJ7J=G0dosBHZXBA@mail.gmail.com>

On 20 March 2017 at 11:13, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 13 March 2017 at 14:17, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
>> The arm64 boot protocol stipulates that the kernel must be loaded
>> TEXT_OFFSET bytes beyond a 2 MB aligned base address, where TEXT_OFFSET
>> could be any 4 KB multiple between 0 and 2 MB, and whose value can be
>> found in the header of the Image file.
>>
>> So after attempts to load the arm64 kernel image as an ELF file or as a
>> U-Boot image have failed (both of which have their own way of specifying
>> the load offset), try to determine the TEXT_OFFSET from the image after
>> loading it but before mapping it as a ROM mapping into the guest address
>> space.
>>
>> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>> ---
>> v2: split off AArch64 specific loader logic regarding gzipped/raw and variable
>>     load offset into a separate helper function, which removes the need for
>>     loading the image twice
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
> Since we're due to tag rc1 tomorrow and this is kind of on the
> border between bugfix and new feature, I think I'd rather
> defer it to 2.10, unless you have a strong view that it should
> go into 2.9.

Since we're now at rc3 and I don't expect to need to do another
arm pull request before 2.9, I've put this patch into target-arm.next
for 2.10.

thanks
-- PMM

      parent reply	other threads:[~2017-04-04 11:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-13 14:17 [Qemu-devel] [PATCH v2] hw/arm/boot: take Linux/arm64 TEXT_OFFSET header field into account Ard Biesheuvel
2017-03-20 11:13 ` Peter Maydell
2017-03-20 11:15   ` Ard Biesheuvel
2017-04-04 11:45   ` Peter Maydell [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='CAFEAcA-NxhpE_23Ec=+iWSzPeee6aEvj70dU0G26CETd5bofig@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=ard.biesheuvel@linaro.org \
    --cc=mark.rutland@arm.com \
    --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 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.