public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Kasper Dupont <kasperd@daimi.au.dk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [CFT] kexec syscall for 2.5.43 (linux booting linux)
Date: 28 Oct 2002 10:14:45 -0700	[thread overview]
Message-ID: <m18z0ijxiy.fsf@frodo.biederman.org> (raw)
In-Reply-To: <3DBCF9C5.DF3FF28D@daimi.au.dk>

Kasper Dupont <kasperd@daimi.au.dk> writes:

> "Eric W. Biederman" wrote:
> > 
> > I believe it is inappropriate to assume the interrupt
> > controller is going to be used by dos when it is shut down.
> 
> If Linux was booted by LILO or SYSLINUX, there will be no DOS
> in memory. But the BIOS interrupt vector table and other data
> structures are in the first physical memory page which is not
> touched by Linux, so I'd expect the BIOS to be usable if we
> can just leave the hardware in a usable state. Booting to DOS
> from Linux might actually be possible.

I agree.  To rephrase I believe it is inappropriate to assume a
classic x86 PCBIOS is present on the machine.

All the shutdown routines should do is to place the hardware in a
quiescent state, that the linux driver init code can recover from.
Since arbitrary code can be loaded leaving this policy to the users of
the kexec system call is reasonable. 

> OTOH if Linux was booted by LOADLIN, there will have been a
> DOS in memory. DOS has changed interrupt vectors to point to
> DOS own code in segment 0x70, but that code will be outside
> the first physical page and will thus have been overwritten
> by Linux. In this case neither DOS nor BIOS routines can be
> used reliable. Any INT instruction can potentially crash,
> this lead to problems with kmonte, does kexec have the same
> problem?

The system call does not.  My user space component needs a bit more
work to bypass setup.S and do a reasonable job at it.  I have all of
the code in a tested state except the code that queries the current
kernel for the BIOS setup information.

Getting the last pieces together so I can reliably boot a linux kernel
is the next step.  My user space started out as a proof of concept and
is evolving into something useful from there.  I refuse to use the
hack of copying the empty_zero_page from the old kernel to the new
kernel. 

Eric

      reply	other threads:[~2002-10-28 17:10 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-18 19:59 [CFT] kexec syscall for 2.5.43 (linux booting linux) Eric W. Biederman
     [not found] ` <20021018173248.E14894@almesberger.net>
     [not found]   ` <m1bs5rz1d6.fsf@frodo.biederman.org>
     [not found]     ` <20021018231540.C7951@almesberger.net>
     [not found]       ` <20021019025309.A24579@almesberger.net>
     [not found]         ` <m17kgfyltc.fsf@frodo.biederman.org>
     [not found]           ` <20021019040600.D7951@almesberger.net>
2002-10-19  9:34             ` Eric W. Biederman
2002-10-19 17:18               ` Werner Almesberger
2002-10-19 17:37                 ` Eric W. Biederman
2002-10-21 23:11 ` [Fastboot] " Andy Pfiffer
2002-10-22  4:18   ` Eric W. Biederman
2002-10-22  6:04     ` Eric W. Biederman
2002-10-22  8:33       ` Eric W. Biederman
2002-10-22  3:57         ` Rob Landley
2002-10-22 14:48           ` Eric W. Biederman
2002-10-22 16:02             ` Eric W. Biederman
2002-10-22 16:27               ` erich
2002-10-23  2:23                 ` Eric W. Biederman
2002-10-22 16:30               ` erich
2002-10-22 23:27         ` Andy Pfiffer
2002-10-22 23:32           ` Andy Pfiffer
2002-10-22  8:30     ` Werner Almesberger
2002-10-22  8:55       ` Eric W. Biederman
2002-10-22 23:17     ` Andy Pfiffer
2002-10-23  6:29       ` Eric W. Biederman
2002-10-23 17:11         ` Andy Pfiffer
2002-10-24 17:10           ` Eric W. Biederman
2002-10-28  7:45 ` Kasper Dupont
2002-10-28  8:24   ` Eric W. Biederman
2002-10-28  8:48     ` Kasper Dupont
2002-10-28 17:14       ` Eric W. Biederman [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=m18z0ijxiy.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=kasperd@daimi.au.dk \
    --cc=linux-kernel@vger.kernel.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