Ladi Prosek 0b88dd9420 ivshmem: Improve MSI irqfd error handling
Adds a rollback path to ivshmem_enable_irqfd() and fixes
ivshmem_disable_irqfd() to bail if irqfd has not been enabled.

To reproduce, run:

  ivshmem-server -n 0

and QEMU with:

  -device ivshmem-doorbell,chardev=iv
  -chardev socket,path=/tmp/ivshmem_socket,id=iv

then load, unload, and load again the Windows driver, at the time of writing
available at:

https://github.com/virtio-win/kvm-guest-drivers-windows/tree/master/ivshmem

The issue is believed to have been masked by other guest drivers, notably
Linux ones, not enabling MSI-X on the device.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20171211072110.9058-4-lprosek@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-02-07 14:09:24 +01:00
..
2018-01-19 11:18:51 -02:00
2018-01-24 22:55:57 +00:00
2017-10-27 16:03:54 +02:00
2018-01-31 05:30:50 -08:00
2018-01-19 11:18:51 -02:00
2016-01-29 15:07:25 +00:00
2018-01-25 13:39:39 +00:00
2018-01-29 14:22:50 -05:00
2017-12-18 17:07:03 +03:00
2017-08-30 18:23:25 +02:00