]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
KVM: PPC: Add support for 64bit TCE windows
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Tue, 1 Mar 2016 06:54:40 +0000 (17:54 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Mar 2016 22:56:50 +0000 (09:56 +1100)
commit58ded4201ff028b15f6b317228faa5f154a0663f
treed8f0be5813a349059e31724b24801fb526222be4
parent14f853f1b257b69cf0213ad8c49c01038ccf7ef9
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>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/include/uapi/asm/kvm.h
arch/powerpc/kvm/book3s_64_vio.c
arch/powerpc/kvm/powerpc.c
include/uapi/linux/kvm.h