ivshmem: use kvm irqfd for msi notifications
commit660c97eef6f8f416c5dc24d3798e29f9f9f698fb
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 9 Jul 2015 13:50:13 +0000 (9 15:50 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 26 Oct 2015 09:19:53 +0000 (26 10:19 +0100)
tree95f4b91be28e1b2f05925e65a3fe70d32760b83b
parent0f57350e5c2ee0c6fe979f4d4b6d4e1de0c26e46
ivshmem: use kvm irqfd for msi notifications

Use irqfd for improving context switch when notifying the guest.
If the host doesn't support kvm irqfd, regular msi notifications are
still supported.

Note: the ivshmem implementation doesn't allow switching between MSI and
IO interrupts, this patch doesn't either.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/ivshmem.c