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 /slirp | |
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 'slirp')
-rw-r--r-- | slirp/ip6_icmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slirp/ip6_icmp.c b/slirp/ip6_icmp.c index ee333d05a2..cd1e0b9fe1 100644 --- a/slirp/ip6_icmp.c +++ b/slirp/ip6_icmp.c @@ -27,7 +27,9 @@ void icmp6_init(Slirp *slirp) return; } - slirp->ra_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, ra_timer_handler, slirp); + slirp->ra_timer = timer_new_full(NULL, QEMU_CLOCK_VIRTUAL, + SCALE_MS, QEMU_TIMER_ATTR_EXTERNAL, + ra_timer_handler, slirp); timer_mod(slirp->ra_timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + NDP_Interval); } |