]> git.proxmox.com Git - qemu.git/commit - include/qemu-common.h
qdev: Introduce lost tick policy property
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 23 Jan 2012 19:15:11 +0000 (20:15 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 1 Feb 2012 20:45:01 +0000 (14:45 -0600)
commit4e4fa398db69e22dcad23114eb7e33b4d89b10c4
tree81164d18007857c81ed538a4a610578a40d28829
parent67ed96f9f25ddd69e23c455d44d389054addf165
qdev: Introduce lost tick policy property

Potentially tick-generating timer devices will gain a common property:
lock_tick_policy. It allows to encode 4 different ways how to deal with
tick events the guest did not process in time:

discard - ignore lost ticks (e.g. if the guest compensates for them
          already)
delay   - replay all lost ticks in a row once the guest accepts them
          again
merge   - if multiple ticks are lost, all of them are merged into one
          which is replayed once the guest accepts it again
slew    - lost ticks are gradually replayed at a higher frequency than
          the original tick

Not all timer device will need to support all modes. However, all need
to accept the configuration via this common property.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-properties.c
hw/qdev.h
qemu-common.h