]> git.baikalelectronics.ru Git - kernel.git/commit
kvm/x86: Reorg stimer_expiration() to better control timer restart
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Mon, 28 Dec 2015 15:27:21 +0000 (18:27 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 Jan 2016 18:04:41 +0000 (19:04 +0100)
commitee428d761c24db346fe1b6dac1c0609e1ba47795
tree9669ccea141691fe28419654a1aa745e18c361a2
parentcd3ff89e8ab40daeee6340531754fc31bc512355
kvm/x86: Reorg stimer_expiration() to better control timer restart

Split stimer_expiration() into two parts - timer expiration message
sending and timer restart/cleanup based on timer state(config).

This also fixes a bug where a one-shot timer message whose delivery
failed once would get lost for good.

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c