qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] RTC: New logic to emulate RTC
@ 2012-02-20  0:24 Zhang, Yang Z
  2012-02-20  7:41 ` Paolo Bonzini
  0 siblings, 1 reply; 9+ messages in thread
From: Zhang, Yang Z @ 2012-02-20  0:24 UTC (permalink / raw)
  To: qemu-devel@nongnu.org
  Cc: Paolo Bonzini, aliguori@us.ibm.com, Marcelo Tosatti, Jan Kiszka,
	kvm@vger.kernel.org

Changes in v2:
Add UIP check logic.
Add logic that next second tick will occur in exactly 500ms later after setting the clock

Current RTC emulation uses periodic timer(2 timers per second) to update RTC clock. And it will stop CPU staying at deep C-state for long period. Our experience shows the Pkg C6 residency reduced 6% when running 64 idle guest.
The following patch stop the two periodic timer and only updating RTC clock when guest try to read it.

--- 
Yang Zhang (4):
	RTC: Update the RTC clock only when reading it
	RTC: Add RTC update-ended interrupt support
	RTC: Add alarm support
	RTC: Add UIP(update in progress) check logic

	hw/mc146818rtc.c |  447 +++++++++++++++++++++++++++++++++++++-----------------
 	1 files changed, 308 insertions(+), 139 deletions(-)

best regards
yang

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-02-24  6:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20  0:24 [Qemu-devel] [PATCH v2 0/4] RTC: New logic to emulate RTC Zhang, Yang Z
2012-02-20  7:41 ` Paolo Bonzini
2012-02-21  0:00   ` Zhang, Yang Z
2012-02-22 11:19     ` Paolo Bonzini
2012-02-23  1:49       ` Zhang, Yang Z
2012-02-23  6:51         ` Paolo Bonzini
2012-02-23  7:43         ` Paolo Bonzini
2012-02-24  0:55       ` Zhang, Yang Z
2012-02-24  6:56         ` Paolo Bonzini

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).