summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2016-03-01 17:54:38 +1100
committerPaul Mackerras <paulus@samba.org>2016-03-02 09:56:50 +1100
commitfe26e52712ccab6648df17ecc029a68a69a01a85 (patch)
tree3bfcf89f8d288367bda48fb92a0914b188bb3cf0 /arch/powerpc/include/asm/kvm_host.h
parent01d01d69192e417447dee97891d670804bedd2c8 (diff)
downloadop-kernel-dev-fe26e52712ccab6648df17ecc029a68a69a01a85.zip
op-kernel-dev-fe26e52712ccab6648df17ecc029a68a69a01a85.tar.gz
KVM: PPC: Add @page_shift to kvmppc_spapr_tce_table
At the moment the kvmppc_spapr_tce_table struct can only describe 4GB windows and handle fixed size (4K) pages. Dynamic DMA windows support more so these limits need to be extended. This replaces window_size (in bytes, 4GB max) with page_shift (32bit) and size (64bit, in pages). This should cause no behavioural change as this is changing the internal structures only - the user interface still only allows one to create a 32-bit table with 4KiB pages at this stage. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r--arch/powerpc/include/asm/kvm_host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index ffdbc2d..edf66f7 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -182,8 +182,9 @@ struct kvmppc_spapr_tce_table {
struct list_head list;
struct kvm *kvm;
u64 liobn;
- u32 window_size;
struct rcu_head rcu;
+ u32 page_shift;
+ u64 size; /* window size in pages */
struct page *pages[0];
};
OpenPOWER on IntegriCloud