From: Robert Reif <reif@earthlink.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] high resolution timer question
Date: Tue, 11 Dec 2007 20:02:51 -0500 [thread overview]
Message-ID: <475F333B.9040309@earthlink.net> (raw)
In-Reply-To: <f43fc5580712100951y152d48d9pe0df6eaed0d098a0@mail.gmail.com>
Blue Swirl wrote:
>On 12/10/07, Robert Reif <reif@earthlink.net> wrote:
>
>
>>Writing data to a serial port on the sparc emulation happens immediately.
>>I would like to throttle the write speed to match the actual baud rate.
>>What's the best way to do this in qemu? Will QEMUTimer work for a
>>1 millisecond timer?
>>
>>
>
>Do you mean that you want the serial port to match the host speed so
>that for example, at 9600 baud, target would only receive 9600 bits
>per second? Or do you mean that the emulated CPU should see bits
>arriving at the same rate that the real CPU would see compared to CPU
>execution speed?
>
>On the positive side, this would fix a bug with serial interrupts
>arriving too fast which can trigger Linux panics. But this would also
>complicate the design because currently the devices do not need to
>emulate any internal buffers.
>
>
>
The problem I'm having is with sparc32 using a sun openboot image in
nographics mode where the prom uses serial port A as the system console.
The serial port output shows up in the host terminal window that qemu
was started in.
Characters written to serial port A are not reliably making it to the
screen.
Turning on serial debugging shows that the characters are written to the
serial port. The characters do make it to the screen when debugging.
If characters are not queued, then that might explain the loss but it looks
like the characters are going to a write(fd, ...) so is stdio loosing
the characters?
I thought slowing down the rate to realistic speeds might help but that
doesn't
seem to be where the problem really is.
next prev parent reply other threads:[~2007-12-12 1:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-10 12:59 [Qemu-devel] high resolution timer question Robert Reif
2007-12-10 15:16 ` Arnon Gilboa
2007-12-10 17:51 ` Blue Swirl
2007-12-10 18:01 ` Anthony Liguori
2007-12-11 1:17 ` Paul Brook
2007-12-12 1:02 ` Robert Reif [this message]
2007-12-12 2:21 ` Robert Reif
2007-12-12 3:23 ` Robert Reif
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=475F333B.9040309@earthlink.net \
--to=reif@earthlink.net \
--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.