libqos: Solve bug in interrupt checking when using MSIX in virtio-pci.c
commit1e34cf9681ec549e26f30daaabc1ce58d60446f7
authorMarc Marí <marc.mari.barcelo@gmail.com>
Tue, 24 Feb 2015 16:34:14 +0000 (24 17:34 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2015 13:02:23 +0000 (10 14:02 +0100)
tree264d8f96a4c4ea26c54a9b17ba29dae51db28df5
parent833a7cc36e63653641558ba27148076f9a32062f
libqos: Solve bug in interrupt checking when using MSIX in virtio-pci.c

The MSIX interrupt was always acked without checking its value, which caused a
race condition. If the ISR was raised between the read and the acking, the ISR
was never detected and it timed out.

Signed-off-by: Marc Marí <marc.mari.barcelo@gmail.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Tested-by: John Snow <jsnow@redhat.com>
Message-id: 1424795655-16952-1-git-send-email-marc.mari.barcelo@gmail.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/libqos/virtio-pci.c