qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: "Bernhard Beschow" <shentey@gmail.com>,
	qemu-devel@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: Re: Controlling time in QEMU
Date: Tue, 10 Jun 2025 07:47:05 -0700	[thread overview]
Message-ID: <2e644619-d995-4410-894e-9e759ba06ed7@linaro.org> (raw)
In-Reply-To: <8CDF867E-5AB2-43B6-B271-B350E833316E@gmail.com>

Hi Bernard,

On 6/10/25 3:22 AM, Bernhard Beschow wrote:
>> As it seems a bit too good to be true, time for questions:
>> - Has it already been considered?
>> - Any obvious downside I might have skipped?
> 
> The only downside I can see is that it seems to disturb QEMU's internal timekeeping. The GTK gui freezes for quite some time when the time facor is very low, e.g. 0.001.
> 
> Best regards,
> Bernhard
>

Yes, faking all the calls to gettimeofday is not the best solution, as 
it impacts qemu beyond its clock management.
This could be a good argument to have something implemented in QEMU, 
which impacts only get_clock() and get_clock_realtime().

Thanks,
Pierrick



  reply	other threads:[~2025-06-10 16:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-06 19:03 Controlling time in QEMU Pierrick Bouvier
2025-06-10 10:22 ` Bernhard Beschow
2025-06-10 14:47   ` Pierrick Bouvier [this message]
2025-06-10 21:30 ` Pierrick Bouvier
2025-07-03 20:36 ` Dr. David Alan Gilbert
2025-07-08 17:43   ` Pierrick Bouvier

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=2e644619-d995-4410-894e-9e759ba06ed7@linaro.org \
    --to=pierrick.bouvier@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=shentey@gmail.com \
    /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).