Re: [PATCH v3 6/8] KVM: kvm-vfio: wrapper to VFIO external API device helpers

2014-11-30 Thread Christoffer Dall
On Sun, Nov 23, 2014 at 07:35:58PM +0100, Eric Auger wrote: > Provide wrapper functions that allow KVM-VFIO device code to > interact with a vfio device: > - kvm_vfio_device_get_external_user gets a handle to a struct > vfio_device from the vfio device file descriptor and increments > its refer

Re: [PATCH v3 6/8] KVM: kvm-vfio: wrapper to VFIO external API device helpers

2014-11-24 Thread Alex Williamson
On Sun, 2014-11-23 at 19:35 +0100, Eric Auger wrote: > Provide wrapper functions that allow KVM-VFIO device code to > interact with a vfio device: > - kvm_vfio_device_get_external_user gets a handle to a struct > vfio_device from the vfio device file descriptor and increments > its reference co

[PATCH v3 6/8] KVM: kvm-vfio: wrapper to VFIO external API device helpers

2014-11-23 Thread Eric Auger
Provide wrapper functions that allow KVM-VFIO device code to interact with a vfio device: - kvm_vfio_device_get_external_user gets a handle to a struct vfio_device from the vfio device file descriptor and increments its reference counter, - kvm_vfio_device_put_external_user decrements the refer