From: "H. Peter Anvin" <hpa@zytor.com>
To: Virtualization Mailing List <virtualization@lists.osdl.org>
Subject: Vmware crashes if compress/misc.c scrolls?
Date: Wed, 20 Jun 2007 16:44:11 -0700 [thread overview]
Message-ID: <4679BBCB.2000202@zytor.com> (raw)
I just got the following message on the syslinux mailing list:
> 2. On some platforms (vmware for example :), READING from the video memory
> in the 32bit mode is impossible (causes an exeption). Taking in to account
> that the scroll function in ilinux/arch/i386/boot/compressed/misc.c
> works using a memcpy of the video memory, when the linux bootsector is given
> control and the cursor is at the end of the screen (-1-2 lines) an exception is
> arisen and in the presence of it's handler in the bootloader the system halts.
> Both lilo and grub handle this situation - the cursor is always somewhere at the
> middle of the screen when the control is given to the linux bootsector.
> When using pxelinux taking in to account that the PXE bios prints out the
> presence of the second initramfs which causes the screen to scroll and the bug
> to appear :)
> A very simple solution - the screen is cleared before giving control to the
> linux bootsector (in the patch).
First of all, is this actually true? This seems like a monumental screwup.
Second, assuming it is true, what should be done about it? The notion
that the bootloader should erase the screen is ridiculous since we spend
a lot of effort maintaining the screen context from 16-bit code.
I see a couple of options:
a. Do nothing. It's a Vmware bug, let the users bug Vmware and get an
updated version.
b. Detect Vmware versions that are affected (how?) and suppress output.
c. Don't attempt to scroll in this code, and instead wrap around the
screen (presumably clearing the rest of the line.)
d. Blindly assume hardware scrolling works, instead of doing
copy-to-scroll. Although I have seen craptops on which hardware
scrolling is broken, it's hardly critical messages we're dealing with
here. A bug for a bug...
-hpa
next reply other threads:[~2007-06-20 23:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-20 23:44 H. Peter Anvin [this message]
2007-06-21 0:07 ` Vmware crashes if compress/misc.c scrolls? Jeremy Fitzhardinge
2007-06-21 0:17 ` H. Peter Anvin
2007-06-21 0:21 ` Jeremy Fitzhardinge
2007-06-21 0:25 ` H. Peter Anvin
2007-06-21 0:27 ` Jeremy Fitzhardinge
2007-06-21 0:46 ` H. Peter Anvin
2007-06-21 21:54 ` Zachary Amsden
2007-06-22 2:22 ` H. Peter Anvin
2007-06-22 2:34 ` Zachary Amsden
2007-06-22 3:09 ` Jeremy Fitzhardinge
2007-08-04 4:48 ` Zachary Amsden
2007-08-04 9:24 ` Andi Kleen
2007-08-04 12:08 ` Zachary Amsden
2007-08-04 14:19 ` Zachary Amsden
2007-08-04 20:14 ` [syslinux] " H. Peter Anvin
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=4679BBCB.2000202@zytor.com \
--to=hpa@zytor.com \
--cc=virtualization@lists.osdl.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).