diff options
author | Artem Pisarenko | 2018-10-17 10:24:20 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-10-19 13:44:03 +0200 |
commit | e81f86790f561437b70549aff05433731b464e62 (patch) | |
tree | 360c0913976ed5aca468c4bd7d1490758395d9ce /ui | |
parent | qemu-timer: introduce timer attributes (diff) | |
download | qemu-e81f86790f561437b70549aff05433731b464e62.tar.gz qemu-e81f86790f561437b70549aff05433731b464e62.tar.xz qemu-e81f86790f561437b70549aff05433731b464e62.zip |
qemu-timer: avoid checkpoints for virtual clock timers in external subsystems
Adds EXTERNAL attribute definition to qemu timers subsystem and assigns
it to virtual clock timers, used in slirp (ICMP IPv6) and ui (key queue).
Virtual clock processing in rr mode can use this attribute instead of a
separate clock type.
Fixes: 87f4fe7653baf55b5c2f2753fe6003f473c07342
Fixes: 775a412bf83f6bc0c5c02091ee06cf649b34c593
Fixes: 9888091404a702d7ec79d51b088d994b9fc121bd
Signed-off-by: Artem Pisarenko <artem.k.pisarenko@gmail.com>
Message-Id: <e771f96ab94e86b54b9a783c974f2af3009fe5d1.1539764043.git.artem.k.pisarenko@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/input.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/input.c b/ui/input.c index 51b1019252..7c9a4109c4 100644 --- a/ui/input.c +++ b/ui/input.c @@ -448,8 +448,9 @@ void qemu_input_event_send_key_delay(uint32_t delay_ms) } if (!kbd_timer) { - kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, - &kbd_queue); + kbd_timer = timer_new_full(NULL, QEMU_CLOCK_VIRTUAL, + SCALE_MS, QEMU_TIMER_ATTR_EXTERNAL, + qemu_input_queue_process, &kbd_queue); } if (queue_count < queue_limit) { qemu_input_queue_delay(&kbd_queue, kbd_timer, |