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>
Showing
- arch/arm64/include/asm/Kbuild 1 addition, 0 deletionsarch/arm64/include/asm/Kbuild
- arch/mips/include/asm/Kbuild 1 addition, 0 deletionsarch/mips/include/asm/Kbuild
- arch/powerpc/include/asm/Kbuild 1 addition, 0 deletionsarch/powerpc/include/asm/Kbuild
- arch/s390/include/asm/Kbuild 1 addition, 0 deletionsarch/s390/include/asm/Kbuild
- arch/x86/include/asm/kvm_host.h 0 additions, 13 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/include/asm/kvm_types.h 7 additions, 0 deletionsarch/x86/include/asm/kvm_types.h
- include/asm-generic/kvm_types.h 5 additions, 0 deletionsinclude/asm-generic/kvm_types.h
- include/linux/kvm_types.h 19 additions, 0 deletionsinclude/linux/kvm_types.h
Loading
Please register or sign in to comment