diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-03-01 17:54:40 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2016-03-02 09:56:50 +1100 |
commit | 58ded4201ff028b15f6b317228faa5f154a0663f (patch) | |
tree | d8f0be5813a349059e31724b24801fb526222be4 /include/uapi | |
parent | 14f853f1b257b69cf0213ad8c49c01038ccf7ef9 (diff) | |
download | kernel_replicant_linux-58ded4201ff028b15f6b317228faa5f154a0663f.tar.gz kernel_replicant_linux-58ded4201ff028b15f6b317228faa5f154a0663f.tar.bz2 kernel_replicant_linux-58ded4201ff028b15f6b317228faa5f154a0663f.zip |
KVM: PPC: Add support for 64bit TCE windows
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.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/kvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 8ce5f643d078..b06208b2669c 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -1143,6 +1143,8 @@ struct kvm_s390_ucas_mapping { /* Available with KVM_CAP_PPC_ALLOC_HTAB */ #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32) #define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce) +#define KVM_CREATE_SPAPR_TCE_64 _IOW(KVMIO, 0xa8, \ + struct kvm_create_spapr_tce_64) /* Available with KVM_CAP_RMA */ #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma) /* Available with KVM_CAP_PPC_HTAB_FD */ |