]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: PPC: Reserve KVM_CAP_SPAPR_TCE_VFIO capability number
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 22 Mar 2017 04:21:51 +0000 (15:21 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 20 Apr 2017 01:39:01 +0000 (11:39 +1000)
commit4898d3f49b5b156c33f0ae0f49ede417ab86195e
treee1ea4b1b40ad26b35411d890ab8ed20c2a2fb607
parent644d2d6fef56f981bca008ba0253dc419d2ede39
KVM: PPC: Reserve KVM_CAP_SPAPR_TCE_VFIO capability number

This adds a capability number for in-kernel support for VFIO on
SPAPR platform.

The capability will tell the user space whether in-kernel handlers of
H_PUT_TCE can handle VFIO-targeted requests or not. If not, the user space
must not attempt allocating a TCE table in the host kernel via
the KVM_CREATE_SPAPR_TCE KVM ioctl because in that case TCE requests
will not be passed to the user space which is desired action in
the situation like that.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
include/uapi/linux/kvm.h