qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] replacing gettimeofday with clock_gettime in hw


From: Paul Brook
Subject: Re: [Qemu-devel] [PATCH] replacing gettimeofday with clock_gettime in hw/serial
Date: Wed, 30 Jul 2008 14:28:30 +0100
User-agent: KMail/1.9.9

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.

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]