KVM: VMX: add struct kvm_vmx to hold VMX specific KVM vars
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 20 Mar 2018 19:17:20 +0000 (12:17 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Mar 2018 17:32:03 +0000 (18:32 +0100)
commit40bbb9d03f05d08b10a7ec1a5c229e1a3f3fc3a9
treecc9acff593badf35bcc08859a20105d2d252d2d4
parent2ac52ab861b920b56e349244e14f957bb349010e
KVM: VMX: add struct kvm_vmx to hold VMX specific KVM vars

Add struct kvm_vmx, which wraps struct kvm, and a helper to_kvm_vmx()
that retrieves 'struct kvm_vmx *' from 'struct kvm *'.  Move the VMX
specific variables out of kvm_arch and into kvm_vmx.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c