Skip to content

Commit 4898d3f

Browse files
aikpaulusmack
authored andcommitted
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 <[email protected]> Reviewed-by: David Gibson <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 644d2d6 commit 4898d3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/uapi/linux/kvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ struct kvm_ppc_resize_hpt {
892892
#define KVM_CAP_MIPS_64BIT 139
893893
#define KVM_CAP_S390_GS 140
894894
#define KVM_CAP_S390_AIS 141
895+
#define KVM_CAP_SPAPR_TCE_VFIO 142
895896

896897
#ifdef KVM_CAP_IRQ_ROUTING
897898

0 commit comments

Comments
 (0)