Commit 84fde248 authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity

KVM: PIT: Unregister ack notifier callback when freeing

Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent b927a3ce
...@@ -672,6 +672,8 @@ void kvm_free_pit(struct kvm *kvm) ...@@ -672,6 +672,8 @@ void kvm_free_pit(struct kvm *kvm)
if (kvm->arch.vpit) { if (kvm->arch.vpit) {
kvm_unregister_irq_mask_notifier(kvm, 0, kvm_unregister_irq_mask_notifier(kvm, 0,
&kvm->arch.vpit->mask_notifier); &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); mutex_lock(&kvm->arch.vpit->pit_state.lock);
timer = &kvm->arch.vpit->pit_state.pit_timer.timer; timer = &kvm->arch.vpit->pit_state.pit_timer.timer;
hrtimer_cancel(timer); hrtimer_cancel(timer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment