qemu-kvm: Fix and clean up msix vector use/unuse hooks
commit832e2661a1f2948fb91f59d52a129a5c9f76164a
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 26 Apr 2011 13:19:34 +0000 (26 15:19 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 27 Apr 2011 07:23:56 +0000 (27 10:23 +0300)
tree1b5759e8f0266236d483f1d85c55776383f8d58f
parentf3833d7d7802a3c30595ff541c3a2890e9b2709e
qemu-kvm: Fix and clean up msix vector use/unuse hooks

Remove the premature return from msix_vector_use if the vector was
already in use, this could cause usage counter imbalances. In contrast,
the check for msix_entry_used on deletion was redundant. At this chance,
rename the internal API to clarify what is added/deleted here.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
hw/msix.c