]> git.karo-electronics.de Git - karo-tx-linux.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)
commitccd46dbae77dbf0d33f42e04b59536f108c395e8
tree6857fe3d01f70509d63f656670a8f757d0b67c4e
parent22195cbd3451a75abaf30651a61cf85c89061327
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