aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-07-02 19:35:38 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-07-09 13:29:42 -0400
commit2aa9c199cf8151c190c7e7ca3ddfcfbb2d85ac36 (patch)
treed17c6d523734ff93e3a7e0027d4a8fb163484b86 /include/asm-generic
parentKVM: x86/mmu: Prepend "kvm_" to memory cache helpers that will be global (diff)
downloadwireguard-linux-2aa9c199cf8151c190c7e7ca3ddfcfbb2d85ac36.tar.xz
wireguard-linux-2aa9c199cf8151c190c7e7ca3ddfcfbb2d85ac36.zip
KVM: Move x86's version of struct kvm_mmu_memory_cache to common code
Move x86's 'struct kvm_mmu_memory_cache' to common code in anticipation of moving the entire x86 implementation code to common KVM and reusing it for arm64 and MIPS. Add a new architecture specific asm/kvm_types.h to control the existence and parameters of the struct. The new header is needed to avoid a chicken-and-egg problem with asm/kvm_host.h as all architectures define instances of the struct in their vCPU structs. Add an asm-generic version of kvm_types.h to avoid having empty files on PPC and s390 in the long term, and for arm64 and mips in the short term. Suggested-by: Christoffer Dall <christoffer.dall@arm.com> Reviewed-by: Ben Gardon <bgardon@google.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Message-Id: <20200703023545.8771-15-sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/kvm_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-generic/kvm_types.h b/include/asm-generic/kvm_types.h
new file mode 100644
index 000000000000..2a82daf110f1
--- /dev/null
+++ b/include/asm-generic/kvm_types.h
@@ -0,0 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_GENERIC_KVM_TYPES_H
+#define _ASM_GENERIC_KVM_TYPES_H
+
+#endif