summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-07-16 17:03:30 +0300
committerAvi Kivity <avi@redhat.com>2009-09-10 08:33:16 +0300
commit84fde248fe42f130cdda39faaa8bb1224c6a13ff (patch)
tree9bd5007faa770c8be25fa800a48f757c58f39779
parentb927a3cec081a605142f5b7e90b730611bee28b1 (diff)
downloadop-kernel-dev-84fde248fe42f130cdda39faaa8bb1224c6a13ff.zip
op-kernel-dev-84fde248fe42f130cdda39faaa8bb1224c6a13ff.tar.gz
KVM: PIT: Unregister ack notifier callback when freeing
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/i8254.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
index 137e548..472653c1 100644
--- a/arch/x86/kvm/i8254.c
+++ b/arch/x86/kvm/i8254.c
@@ -672,6 +672,8 @@ void kvm_free_pit(struct kvm *kvm)
if (kvm->arch.vpit) {
kvm_unregister_irq_mask_notifier(kvm, 0,
&kvm->arch.vpit->mask_notifier);
+ kvm_unregister_irq_ack_notifier(kvm,
+ &kvm->arch.vpit->pit_state.irq_ack_notifier);
mutex_lock(&kvm->arch.vpit->pit_state.lock);
timer = &kvm->arch.vpit->pit_state.pit_timer.timer;
hrtimer_cancel(timer);
OpenPOWER on IntegriCloud