qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin O'Connor <kevin@koconnor.net>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: seabios@seabios.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH 5/5] [wip] sercon: initial split-output implementation
Date: Fri, 15 Jul 2016 10:35:17 -0400	[thread overview]
Message-ID: <20160715143517.GA30705@morn.lan> (raw)
In-Reply-To: <1468583389.22036.40.camel@redhat.com>

On Fri, Jul 15, 2016 at 01:49:49PM +0200, Gerd Hoffmann wrote:
> > Finally, one high level observation is that we know there are a number
> > of quirks in various vgabios emulators.  For example, we know some
> > emulators don't handle certain 32bit instructions when in 16bit mode
> > (hence scripts/vgafixup.py), we know some versions of Windows use an
> > emulator that doesn't like some stack relative instructions (hence the
> > vgabios is compiled without -fomit-frame-pointer), and we know Windows
> > Vista doesn't like the extra stack in high ram (the skifree bug).  Any
> > thoughts on what happens with these quirks if the main seabios code
> > hooks int10?
> 
> Good question.  Do the emulators (both win, xorg) use the int10 vector
> set by seabios in the first place?  Or go they load the vgabios and run
> it, including the initialization, and use whatever entry point the init
> code sets up?  I suspect it is the latter.  But needs investigation and
> testing.

I think they just call the existing int10 handler.  In general, it's
not safe to rerun the vga init code.  Also, if they did run the init
it would lead to extra copies of the SeaVGABIOS version banners in the
debug logs, which I don't recall seeing.

> Also a serial console for windows guests isn't that useful, so I
> wouldn't worry too much about windows emulator issues.

It's not uncommon (at least on real hardware) to add sgabios to a
system for the boot menus, but then use a regular OS at runtime.  The
problem with the vga emulation quirks is that they often result in
mysterious system failures.

Have you considered implementing the serial support as a kind of
"serial seavgabios" instead of directly in seabios?  That would have
the advantage of pulling in all the existing vgabios quirk handling.

-Kevin

  reply	other threads:[~2016-07-15 14:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14  8:52 [Qemu-devel] [PATCH 0/5] serial console support Gerd Hoffmann
2016-07-14  8:52 ` [Qemu-devel] [PATCH 1/5] std: add cp437 to unicode map Gerd Hoffmann
2016-07-14 16:17   ` [Qemu-devel] [SeaBIOS] " Kevin O'Connor
2016-07-14  8:52 ` [Qemu-devel] [PATCH 2/5] kbd: make enqueue_key public, add ascii_to_keycode Gerd Hoffmann
2016-07-14  8:53 ` [Qemu-devel] [PATCH 3/5] paravirt: read QEMU_CFG_NOGRAPHIC, store in etc/sercon-enable romfile Gerd Hoffmann
2016-07-14  8:53 ` [Qemu-devel] [PATCH 4/5] add serial console support Gerd Hoffmann
2016-07-14  8:53 ` [Qemu-devel] [PATCH 5/5] [wip] sercon: initial split-output implementation Gerd Hoffmann
2016-07-14 16:15   ` [Qemu-devel] [SeaBIOS] " Kevin O'Connor
2016-07-15 11:49     ` Gerd Hoffmann
2016-07-15 14:35       ` Kevin O'Connor [this message]
2016-08-08 13:14         ` Gerd Hoffmann
2016-09-27 12:00         ` Gerd Hoffmann
2016-10-04  3:03           ` Kevin O'Connor
2016-10-04  8:49             ` Gerd Hoffmann
2016-10-04  9:21               ` Igor Mammedov
2016-10-13  7:17                 ` Gerd Hoffmann
2016-10-13  8:09                   ` Igor Mammedov

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=20160715143517.GA30705@morn.lan \
    --to=kevin@koconnor.net \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.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).