qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Generic tick reinjection control
@ 2012-01-23 19:15 Jan Kiszka
  2012-01-23 19:15 ` [Qemu-devel] [PATCH 1/2] qdev: Introduce lost tick policy property Jan Kiszka
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jan Kiszka @ 2012-01-23 19:15 UTC (permalink / raw)
  To: Anthony Liguori, qemu-devel; +Cc: Marcelo Tosatti, Avi Kivity

QEMU currently supports lost tick compensation for the periodic RTC
timer. It is controlled via -rtc driftfix=slew|none. However, the next
periodic timer with compensation qualities is approaching: KVM's
in-kernel PIT.

A previous discussion [1] showed that we need to introduce per device
control. And we likely also want a global default. Both features require
a generic standardized way to specify the compensation mode.

So this series lays the ground for that by adding a qdev property type
to select from four possible lost tick compensation policies (see patch
1 one for details). And this new property is then applied on the RTC
device.

[1] http://thread.gmane.org/gmane.comp.emulators.kvm.devel/85339

Jan Kiszka (2):
  qdev: Introduce lost tick policy property
  mc146818rtc: Use lost_tick_policy property

 hw/mc146818rtc.c     |   26 +++++++++++++++++------
 hw/qdev-properties.c |   55 ++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/qdev.h            |    7 ++++++
 qemu-common.h        |    7 ++++++
 sysemu.h             |    1 -
 vl.c                 |   28 ++++++++++++++++++++----
 6 files changed, 111 insertions(+), 13 deletions(-)

-- 
1.7.3.4

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

end of thread, other threads:[~2012-02-01 22:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-23 19:15 [Qemu-devel] [PATCH 0/2] Generic tick reinjection control Jan Kiszka
2012-01-23 19:15 ` [Qemu-devel] [PATCH 1/2] qdev: Introduce lost tick policy property Jan Kiszka
2012-01-23 20:01   ` Daniel P. Berrange
2012-01-23 19:15 ` [Qemu-devel] [PATCH 2/2] mc146818rtc: Use lost_tick_policy property Jan Kiszka
2012-01-23 19:24 ` [Qemu-devel] [PATCH 0/2] Generic tick reinjection control Anthony Liguori
2012-02-01 22:10 ` Anthony Liguori

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