]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: support notifier chain in vfio_group
authorJike Song <jike.song@intel.com>
Thu, 1 Dec 2016 05:20:06 +0000 (13:20 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 1 Dec 2016 17:40:05 +0000 (10:40 -0700)
commit2607b5287206045d2d2c972ba3aef22d531641f3
tree6857fe3d01f70509d63f656670a8f757d0b67c4e
parent2b7448464fdd2cc3bada617da556fbfa1bd4a16f
vfio: support notifier chain in vfio_group

Beyond vfio_iommu events, users might also be interested in
vfio_group events. For example, if a vfio_group is used along
with Qemu/KVM, whenever kvm pointer is set to/cleared from the
vfio_group, users could be notified.

Currently only VFIO_GROUP_NOTIFY_SET_KVM supported.

Cc: Kirti Wankhede <kwankhede@nvidia.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Jike Song <jike.song@intel.com>
[aw: remove use of new typedef]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c
include/linux/vfio.h