All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Joachim Durchholz <jo@durchholz.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] curses.c: "We need a terminal output" ?
Date: Wed, 17 Apr 2019 09:10:12 +0200	[thread overview]
Message-ID: <20190417071012.fxedabu3makmoyuz@sirius.home.kraxel.org> (raw)
In-Reply-To: <00f0ada2-a68b-2264-ab72-f49fe7d654e7@durchholz.org>

  Hi,

> Then I don't understand why it just ran fine.
> I don't expect fullscreen output to work perfectly anyway;

If you don't expect the output to actually work,
then fine, feel free to comment out that check.

I don't consider that being a sane approach though.

> just enough so I can use qemu expect-style.
> 
> Also, is qemu -curses actually using all the terminal shenanigans?
> I don't think so. If it is, it's not really needed it seems, things work
> fine.

The curses library depends on them, sure.  How else do you think the
curses UI manages to work correctly no matter how big your terminal
window is?

> > > > I can see another scenario when this is problematic: Unit testing code
> > > > that directly writes to the console. E.g. testing BIOS code, or testing
> > > > operating systems when using the serial port is not an option.
> > 
> > seabios can work with the serial console just fine, try "qemu -nographic"
> 
> Well, can you tell me how convince any *BSD to talk to seabios intead of to
> the terminal...

All boot loaders I've seen so far actually talk to seabios.  Which is
enough to enable the kernel's serial console support.  The general
approach is the same on any unix-ish guest operating system.  The
details may vary of course.

FreeBSD:
 (1) qemu-system-x86_64 -nographic -cdrom FreeBSD-11.0-RELEASE-amd64-disc1.iso
 (2) At the bootloader menu hit '3' (Escape to loader prompt).
 (3) set console=comconsole
 (4) boot

Figuring the procedure for other guests is left as an exercise to the
reader.

cheers,
  Gerd

  reply	other threads:[~2019-04-17  7:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-13  9:02 [Qemu-devel] curses.c: "We need a terminal output" ? Joachim Durchholz
2019-04-15 19:10 ` John Snow
2019-04-16  7:24   ` Gerd Hoffmann
2019-04-16 14:02     ` Laszlo Ersek
2019-04-16 18:04     ` Joachim Durchholz
2019-04-17  7:10       ` Gerd Hoffmann [this message]
2019-04-17 17:09         ` Joachim Durchholz
2019-04-17 18:27           ` Laszlo Ersek
2019-04-18  5:02             ` Joachim Durchholz
2019-04-18 11:02               ` Laszlo Ersek
2019-04-18 18:06                 ` Joachim Durchholz

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=20190417071012.fxedabu3makmoyuz@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=jo@durchholz.org \
    --cc=qemu-devel@nongnu.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.