]> git.proxmox.com Git - mirror_qemu.git/commit
coroutine-sleep: move timer out of QemuCoSleepState
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 May 2021 10:05:46 +0000 (12:05 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 21 May 2021 17:22:33 +0000 (18:22 +0100)
commit1485f0c24cfbef7a542ce13d49e9f68e285c57d8
tree65304e759cc5063a8161566d7e85ddcf1f08033c
parenteaee0720851f22b273099eaf4c02722d9f24340a
coroutine-sleep: move timer out of QemuCoSleepState

This simplification is enabled by the previous patch.  Now aio_co_wake
will only be called once, therefore we do not care about a spurious
firing of the timer after a qemu_co_sleep_wake.

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210517100548.28806-5-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
util/qemu-coroutine-sleep.c