qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen
Date: Mon, 21 Nov 2011 14:21:14 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

On 11/18/2011 03:54 PM, Anthony Liguori wrote:

The Right Solution would be to modify the RTC emulation such that it did
a qemu_get_clock() during read of the CMOS registers in order to ensure
the time was up to date (instead of using 1 second timers).

True, but you also have to handle UIP and the UF/AF interrupts. Basically you have to track the various pieces of state and trigger a timer when the routine would do something interesting. It's not hard, but it's also a decent amount of programming.

Paolo




reply via email to

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