[PATCH v6 0/7] RTC: New logic to emulate RTC
Zhang, Yang Z <yang.z.zhang <at> intel.com>
2012-05-17 02:28:19 GMT
Changes in v6:
Rebase to latest QEMU
Fix a bug that fail to pass tests/rtc-test:
In previous version, it uses host time as the base point to calculate guest RTC. It works when guest uses
host based clock. But for vm and rt based clock, it's wrong. Because guest's clock may not synchronous with
host. In current patch, it use rtc_clock as the reference point and successes to pass the testing.
Adapt paolo's suggestion to use more reasonable code for migration.
Changes in v5:
Rebase to latest head.
Add Checking of divider, because it also can stop the update.
Fixing some bugs.
Changes in v4:
Rebase to latest head.
Changing in patch 6:
Set the timer to one second earlier before target alarm when AF bit is clear. In version 3, in order to solve
the async between UF, AF and UIP, the timer will keep running when UF or AF are clear. This is a little ugly,
especially when a userspace program is using the alarm and we cannot achieve any power saving. In this
version, when the AF bit is cleared, we will set the timer to one second earlier before the alarm. With this
changing, we can avoid the unnecessary timer and keep the sync between UF, AF and UIP. Please help to review
the patch 6.
Changes in v3:
Rebase to latest head.
Remove the logic to update time format when DM bit changed.
Allow to migrate from old version.
Solve the async when reading UF and UIP
Changes in v2:
(Continue reading)