KVM: Avoid needless registrations of IRQ ack notifier for assigned devices
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 11 Sep 2011 08:16:20 +0000 (10:16 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:52:39 +0000 (19:52 +0300)
commitc61fa9d63b40b06522c5f1d940b084323a090688
treedbabc88d4096a9f155794a6bb48d8ac5274bc1fa
parent9f9f6b78776be3de02e0c7533924e6954b918123
KVM: Avoid needless registrations of IRQ ack notifier for assigned devices

We only perform work in kvm_assigned_dev_ack_irq if the guest IRQ is of
INTx type. This completely avoids the callback invocation in non-INTx
cases by registering the IRQ ack notifier only for INTx.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/assigned-dev.c