The existing KVM_CREATE_SPAPR_TCE only supports 32bit windows which is not enough for directly mapped windows as the guest can get more than 4GB. This adds KVM_CREATE_SPAPR_TCE_64 ioctl and advertises it via KVM_CAP_SPAPR_TCE_64 capability. The table size is checked against the locked memory limit. Since 64bit windows are to support Dynamic DMA windows (DDW), let's add @bus_offset and @page_shift which are also required by DDW.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -1143,6 +1143,8 @@ struct kvm_s390_ucas_mapping { · 1142 unmodified lines | ||
| 1143 | 1143 | /* Available with KVM_CAP_PPC_ALLOC_HTAB */ |
| 1144 | 1144 | #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32) |
| 1145 | 1145 | #define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce) |
| 1146 | +#define KVM_CREATE_SPAPR_TCE_64 _IOW(KVMIO, 0xa8, \ | |
| 1147 | + struct kvm_create_spapr_tce_64) | |
| 1146 | 1148 | /* Available with KVM_CAP_RMA */ |
| 1147 | 1149 | #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma) |
| 1148 | 1150 | /* Available with KVM_CAP_PPC_HTAB_FD */ |