target-ppc: kvm: make use of KVM_CREATE_SPAPR_TCE_64
commitd6ee2a7c85088d587fb0e0376fba1fa20d59c9f3
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 10 Mar 2017 01:41:13 +0000 (10 12:41 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 26 Apr 2017 02:00:41 +0000 (26 12:00 +1000)
tree815d0adc9e6a674b494fda930779436f78c08c0b
parent9d169fb3c8c8434124677afa52824c4b15b62b65
target-ppc: kvm: make use of KVM_CREATE_SPAPR_TCE_64

KVM_CAP_SPAPR_TCE capability allows creating TCE tables in KVM which
allows having in-kernel acceleration for H_PUT_TCE_xxx hypercalls.
However it only supports 32bit DMA windows at zero bus offset.

There is a new KVM_CAP_SPAPR_TCE_64 capability which supports 64bit
window size, variable page size and bus offset.

This makes use of the new capability. The kernel headers are already
updated as the kernel support went in to v4.6.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_iommu.c
target/ppc/kvm.c
target/ppc/kvm_ppc.h