public inbox for kexec@lists.infradead.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Ming Lei <mlei@Brocade.COM>
Cc: kexec@lists.infradead.org
Subject: Re: should kernel image destination address be picked up by kernel itself?
Date: Tue, 03 Feb 2009 13:42:56 -0800	[thread overview]
Message-ID: <m1ab93w61r.fsf@fess.ebiederm.org> (raw)
In-Reply-To: <4C94DE2070B172459E4F1EE14BD2364E027DFC66@HQ-EXCH-5.corp.brocade.com> (Ming Lei's message of "Tue\, 3 Feb 2009 12\:06\:02 -0800")

"Ming Lei" <mlei@Brocade.COM> writes:

> Hi Eric,
>
> I tried run latest kexec-tools v2.0 on ppc freescale 85xx platforms.
>
>>- All of the policy decisions are made in user space (such as where to
>>  execute from)
> Is where to execute from the physical address or the virtual address?
> How do we know it is available to kexec, it may be taken.

It should be physical and there should be an API in linux like
/proc/iomem which will report which addresses are memory.  ppc
is a little different than x86 so I'm not up to speed on how it
reports things.  I think it is with the device tree.

>>- standalone executables are loaded into an address space where
>>  physical address and virtual address are the same.
> There may be case that physical address and virtual address not the same
> on linux, such as vmalloc.

In the environment that kexec exports there should not be any.

>>What problem do you see in that model?
>>Why is it a problem for you?
>
> Can we put something like -1 to indicate to kernel that user space wants
> kernel to choose the virtual address to load the standalone executable,
> then linux kernel can kmalloc this area and then load the standalone
> executable.

You can do something like create a proper static ET_DYN executable and then 
/sbin/kexec will look for an address and load it there.

Eric

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  reply	other threads:[~2009-02-03 21:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27 22:22 should kernel image destination address be picked up by kernel itself? Ming Lei
2009-02-03 19:52 ` Eric W. Biederman
2009-02-03 20:06   ` Ming Lei
2009-02-03 21:42     ` Eric W. Biederman [this message]
2009-02-10  1:08       ` Ming Lei
2009-02-10  5:27         ` Eric W. Biederman
2009-02-10 21:34           ` Ming Lei
2009-04-16 18:48   ` Ming Lei
2009-04-20 21:19     ` Eric W. Biederman

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=m1ab93w61r.fsf@fess.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=kexec@lists.infradead.org \
    --cc=mlei@Brocade.COM \
    /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