KVM: PPC: Destory timer on vcpu destruction
authorAlexander Graf <alex@csgraf.de>
Mon, 22 Feb 2010 15:52:14 +0000 (16:52 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:39:25 +0000 (12:39 +0300)
commita595405df9efb89710cd555d29df0e4902f90613
tree1e190f38f77e407465e14ae5eb3b468ffbce0ed7
parent7e821d3920c130d413c4c7454b0ece59445490db
KVM: PPC: Destory timer on vcpu destruction

When we destory a vcpu, we should also make sure to kill all pending
timers that could still be up. When not doing this, hrtimers might
dereference null pointers trying to call our code.

This patch fixes spontanious kernel panics seen after closing VMs.

Signed-off-by: Alexander Graf <alex@csgraf.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/powerpc.c