kvm: Add VFIO device
So far we've succeeded at making KVM and VFIO mostly unaware of each other, but areas are cropping up where a connection beyond eventfds and irqfds needs to be made. This patch introduces a KVM-VFIO device that is meant to be a gateway for such interaction. The user creates the device and can add and remove VFIO groups to it via file descriptors. When a group is added, KVM verifies the group is valid and gets a reference to it via the VFIO external user interface. Signed-off-by:Alex Williamson <alex.williamson@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- Documentation/virtual/kvm/devices/vfio.txt 22 additions, 0 deletionsDocumentation/virtual/kvm/devices/vfio.txt
- arch/x86/kvm/Kconfig 1 addition, 0 deletionsarch/x86/kvm/Kconfig
- arch/x86/kvm/Makefile 1 addition, 1 deletionarch/x86/kvm/Makefile
- include/linux/kvm_host.h 1 addition, 0 deletionsinclude/linux/kvm_host.h
- include/uapi/linux/kvm.h 4 additions, 0 deletionsinclude/uapi/linux/kvm.h
- virt/kvm/Kconfig 3 additions, 0 deletionsvirt/kvm/Kconfig
- virt/kvm/kvm_main.c 5 additions, 0 deletionsvirt/kvm/kvm_main.c
- virt/kvm/vfio.c 220 additions, 0 deletionsvirt/kvm/vfio.c
Documentation/virtual/kvm/devices/vfio.txt
0 → 100644
virt/kvm/vfio.c
0 → 100644
Please register or sign in to comment