All of lore.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Bernhard Walle <bwalle@suse.de>
Cc: kexec@lists.infradead.org, Jamey Sharp <jamey@thetovacompany.com>
Subject: Re: kexec --real-mode
Date: Wed, 30 Apr 2008 12:35:05 -0700	[thread overview]
Message-ID: <m163tzm906.fsf@frodo.ebiederm.org> (raw)
In-Reply-To: <20080430103814.072c9ef9@strauss.suse.de> (Bernhard Walle's message of "Wed, 30 Apr 2008 10:38:14 +0200")

Bernhard Walle <bwalle@suse.de> writes:

> * Eric W. Biederman [2008-04-29 10:15]:

>> What is your interest in getting the --real-mode option working at this
>> point?
>
> Well, the first reason was just interest.
>
> The second reason that pointed me in that direction is that I saw that
> kdump-booted kernels ignore the VGA parameter [e.g. 791] (which is
> quite clear since the video mode is not set in the boot block, but that
> can be easily patched) and also ignore the compiled-in VGA value (set
> with rdev). Then I saw that this is not done in the real kernel but in
> the 16 bit boot code which is of course only executed in real mode
> booting (arch/x86/boot/video.c).
>
> I know the 32-bit booted kernel takes the video mode from the running
> kernel, but currently it's not possible to change the mode. Well, it's
> not really important, it just would be nice.
>
> The overall reason behind this is that we (SUSE) use kexec now for the
> first reboot in our distribution setup which works quite well, and
> that's the reason I looked into that.

Ok.  So not critical but very useful to understand and it would be
cool to use if you could.  I wish I knew of a way to not confuse the
BIOS so we could do this more often.  I know I surprised a lot of
people with how often it worked on when I was actively pursuing it.

I have often suspected that the only way we could reliably run 16bit
code after running the linux kernel would be to load in an alternative
16bit BIOS like bochs that we could safely initialize from the state
the linux kernel left the hardware.  Although if we could ever figure
out what we are doing that confuses the hardware the other path could
be used.

For video mode changing it might be possible to just run the vga
BIOS calls and make them work.

All of which is to say there are paths forward if anyone wants to
pursue them.

Eric

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

  reply	other threads:[~2008-04-30 19:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22 13:16 kexec --real-mode Bernhard Walle
2008-04-22 23:44 ` Jamey Sharp
2008-04-23  8:34   ` Bernhard Walle
2008-04-23 14:00     ` Eric W. Biederman
2008-04-28  8:22       ` Bernhard Walle
2008-04-28 17:55         ` Eric W. Biederman
2008-04-29 15:58           ` Bernhard Walle
2008-04-29 17:15             ` Eric W. Biederman
2008-04-30  8:38               ` Bernhard Walle
2008-04-30 19:35                 ` Eric W. Biederman [this message]
2008-04-30 21:08                   ` Jamey Sharp

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=m163tzm906.fsf@frodo.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=bwalle@suse.de \
    --cc=jamey@thetovacompany.com \
    --cc=kexec@lists.infradead.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.