kvm: add KVM_IRQFD_FLAG_RESAMPLE support
commitca916d3729564d0eb3c2374a96903f7e8aced8a7
authorVincenzo Maffione <v.maffione@gmail.com>
Mon, 22 Jul 2013 09:51:33 +0000 (22 11:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Aug 2013 19:19:54 +0000 (9 21:19 +0200)
tree8df3fd4c813a75594ad465a388e74748c6e6a1b5
parent0d89436786b02a9e7d561c4d7dc4982e4a2739db
kvm: add KVM_IRQFD_FLAG_RESAMPLE support

Added an EventNotifier* parameter to
kvm-all.c:kvm_irqchip_add_irqfd_notifier(), in order to give KVM
another eventfd to be used as "resamplefd". See the documentation
in the linux kernel sources in Documentation/virtual/kvm/api.txt
(section 4.75) for more details.
When the added parameter is passed NULL, the behaviour of the
function is unchanged with respect to the previous versions.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/vfio.c
hw/virtio/virtio-pci.c
include/sysemu/kvm.h
kvm-all.c