Skip to content

Generic tick reinjection control

Jan Kiszka qemu-devel 1 version Applied

Status from this message: Applied. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2qdev: Introduce lost tick policy propertyhw/qdev-properties.c hw/qdev.h qemu-common.h+69 -01 reply
2/2mc146818rtc: Use lost_tick_policy propertyhw/mc146818rtc.c sysemu.h vl.c+42 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] Generic tick reinjection control

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(-)
Signature · 1 line
1.7.3.4