diff options
author | Mark McLoughlin <markmc@redhat.com> | 2008-12-01 13:57:45 +0000 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-02 14:39:27 +0200 |
commit | 3702a5ba071ce114a4b5a011a0ab78d144a62cba (patch) | |
tree | 7d00a261ea770653beaed560ed36374a0631f8dd | |
parent | 90755652159f0038ebfcfe8276d1444a01a3657d (diff) |
KVM: remove the IRQ ACK notifier assertions
We will obviously never pass a NULL struct kvm_irq_ack_notifier* to
this functions. They are always embedded in the assigned device
structure, so the assertion add nothing.
The irqchip_in_kernel() assertion is very out of place - clearly
this little abstraction needs to know nothing about the upper
layer details.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | virt/kvm/irq_comm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index 9fbbdea3d1d5..973df997ea60 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c @@ -58,9 +58,6 @@ void kvm_notify_acked_irq(struct kvm *kvm, unsigned gsi) void kvm_register_irq_ack_notifier(struct kvm *kvm, struct kvm_irq_ack_notifier *kian) { - /* Must be called with in-kernel IRQ chip, otherwise it's nonsense */ - ASSERT(irqchip_in_kernel(kvm)); - ASSERT(kian); hlist_add_head(&kian->link, &kvm->arch.irq_ack_notifier_list); } |