From: Brad Campbell <brad@wasp.net.au>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Run Real Time Guest OS?
Date: Tue, 01 Aug 2006 15:17:20 +0400 [thread overview]
Message-ID: <44CF3840.2000506@wasp.net.au> (raw)
In-Reply-To: <BAY114-F3975EFE6E2CDBD03CD3465BD5C0@phx.gbl>
Steve Ellenoff wrote:
> Is it possible to run a real time OS under qemu? What changes would need
> to be made?
> Can it even be done?
>
> The guest OS I'm trying to run sets the RTC System Timer 0 to a 0.25ms
> interval (~4000Hz)!! The program I'm trying to run on it, expects this
> time to be accurate, and as such, visually the program seems to be 4-5x
> too slow in qemu, which makes sense given that it's delivering only a
> 1024Hz timer irq.
>
> I've noticed in the source code that qemu sets this max value of 1024Hz
> (1ms) for the timer, which from what I understand is a limit of the
> Linux kernel itself, ie, that's the most the kernel can support.
>
Not at all.. for a single qemu instance on linux it tries to use the PIT in the rtc, and I've seen
this run upto 8192hz. Why not crank it up in the qemu source t0 4096 and see what happens. It's not
going to hurt anything in any case.
You would most certainly want a HZ value of 1000 to try this.
Brad
--
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
next prev parent reply other threads:[~2006-08-01 11:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 20:45 [Qemu-devel] Run Real Time Guest OS? Steve Ellenoff
2006-08-01 11:17 ` Brad Campbell [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-02 21:39 Steve Ellenoff
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=44CF3840.2000506@wasp.net.au \
--to=brad@wasp.net.au \
--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 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).