From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [Qemu-devel] [PATCH] replacing gettimeofday with clock_gettime in hw/serial
Date: Wed, 30 Jul 2008 09:15:14 -0500 [thread overview]
Message-ID: <48907772.5000801@codemonkey.ws> (raw)
In-Reply-To: <200807301428.30863.paul@codesourcery.com>
Paul Brook wrote:
> On Wednesday 30 July 2008, Stefano Stabellini wrote:
>
>> This patch substitutes gettimeofday with clock_gettime in hw/serial.c.
>>
>> gettimeofday is unsafe because can lead to incorrect behaviors if the user
>> changes the system's date.
>>
>
> This code is just plain wrong to start with. Devices should not depend on
> host time.
>
Because host time continues even when the guest is stopped. It should
instead be based on the vm_clock.
I don't think it works either. I still have gotten messages in the
guest about too many interrupts on the serial port.
Regards,
Anthony Liguori
> Paul
>
>
>
next prev parent reply other threads:[~2008-07-30 14:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-30 10:22 [Qemu-devel] [PATCH] replacing gettimeofday with clock_gettime in hw/serial Stefano Stabellini
2008-07-30 13:28 ` Paul Brook
2008-07-30 14:15 ` Anthony Liguori [this message]
2008-07-30 15:30 ` Stefano Stabellini
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=48907772.5000801@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.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).