From: Jacob Moody <moody@posixcafe.org>
To: 9front@9front.org
Subject: Re: [9front] qemu clock/timer issue
Date: Tue, 16 Apr 2024 13:56:21 -0500 [thread overview]
Message-ID: <b27816ab-ed71-4f79-89ef-94863d77a8d2@posixcafe.org> (raw)
In-Reply-To: <3GC3CN1M69JY3.30ENE0AQSGFTE@mforney.org>
On 4/16/24 13:46, Michael Forney wrote:
> Jacob Moody <moody@posixcafe.org> wrote:
>> It is understood that this bug only happens with intel kvm virtual machines.
>> From all that has been tested it was currently understood to affect newer intel machines.
>> It seems however that your machine is a bit older(10+ years) and still triggering this.
>> I've certainly run 9front in kvm on intel machines before so it is likely either
>> something that changed with us or something that has changed with QEMU. My money
>> is on some QEMU change.
>>
>> If you do not feel comfortable debugging but would still be interested in helping
>> perhaps you can help bisect 9front and qemu (one side at a time) to see if you can
>> narrow down what has changed to get more information to fix these things.
>> I would start with the nightly iso just to double check, then move back through the releases
>> going back. Give that a go for a couple of them, then maybe try some older qemu.
>
> If you look at my original mails, I had already bisected it to:
> http://git.9front.org/plan9front/plan9front/a05bab362f66ddd6fa65f2e7cda9eaaa0217ec08/commit.html
>
> This changes the mechanism by which CPU frequencies are detected
> by default in 9front, and the timing/clock issues arise when the
> frequency is detected incorrectly as 25MHz instead of 3.3GHz. The
> issue went away when using *nohpet=1 to revert to i8253
> clockinit/fastclock.
>
> I wasn't able to explain why hpetcpufreq didn't work, but i8253cpufreq
> did. They are both emulated with QEMU_CLOCK_VIRTUAL:
> https://github.com/qemu/qemu/blob/62dbe54c24dbf77051bafe1039c31ddc8f37602d/hw/timer/hpet.c#L156
> https://github.com/qemu/qemu/blob/62dbe54c24dbf77051bafe1039c31ddc8f37602d/hw/timer/i8254.c#L57-L58
Ah my bad, I had forgotten about this. Thank you for the original bisecting work and for reiterating.
- moody
prev parent reply other threads:[~2024-04-16 18:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-05 2:04 Michael Forney
2022-02-05 17:04 ` hiro
2022-02-05 18:14 ` Nick Owens
2022-02-18 3:25 ` Michael Forney
2022-02-21 22:35 ` cinap_lenrek
2024-04-16 5:40 ` Douglas Guptill
2024-04-16 13:32 ` Jacob Moody
2024-04-16 17:07 ` Douglas Guptill
2024-04-16 17:34 ` Jacob Moody
2024-04-16 18:46 ` Michael Forney
2024-04-16 18:56 ` Jacob Moody [this message]
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=b27816ab-ed71-4f79-89ef-94863d77a8d2@posixcafe.org \
--to=moody@posixcafe.org \
--cc=9front@9front.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).