diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-12-20 06:49:05 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2017-01-31 11:59:56 +0100 |
commit | 5e9859699aba74c0e297645e7d1734cd4b964de7 (patch) | |
tree | 2bd99e81880c847933f856a04dd7670bd21ea286 /arch/powerpc/include/asm/kvm_host.h | |
parent | KVM: PPC: Book3S HV: Create kvmppc_unmap_hpte_helper() (diff) | |
download | linux-5e9859699aba74c0e297645e7d1734cd4b964de7.tar.xz linux-5e9859699aba74c0e297645e7d1734cd4b964de7.zip |
KVM: PPC: Book3S HV: Outline of KVM-HV HPT resizing implementation
This adds a not yet working outline of the HPT resizing PAPR
extension. Specifically it adds the necessary ioctl() functions,
their basic steps, the work function which will handle preparation for
the resize, and synchronization between these, the guest page fault
path and guest HPT update path.
The actual guts of the implementation isn't here yet, so for now the
calls will always fail.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_host.h')
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h index 0aa0f22d775a..7bba8f415627 100644 --- a/arch/powerpc/include/asm/kvm_host.h +++ b/arch/powerpc/include/asm/kvm_host.h @@ -252,6 +252,8 @@ struct kvm_hpt_info { int cma; }; +struct kvm_resize_hpt; + struct kvm_arch { unsigned int lpid; #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE @@ -276,6 +278,7 @@ struct kvm_arch { u64 process_table; struct dentry *debugfs_dir; struct dentry *htab_dentry; + struct kvm_resize_hpt *resize_hpt; /* protected by kvm->lock */ #endif /* CONFIG_KVM_BOOK3S_HV_POSSIBLE */ #ifdef CONFIG_KVM_BOOK3S_PR_POSSIBLE struct mutex hpt_mutex; |