KVM: VMX: Configure runtime hooks using vmx_x86_ops
authorSean Christopherson <sean.j.christopherson@intel.com>
Sat, 21 Mar 2020 20:25:58 +0000 (13:25 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 31 Mar 2020 14:48:06 +0000 (10:48 -0400)
commit72b0eaa946076cba3bc315c88199db7704b5538c
tree63a747dde5551e463760ccb2492d654efc5808ec
parent484014faf89eb0f3585d7323e4aef34a3cd92ac6
KVM: VMX: Configure runtime hooks using vmx_x86_ops

Configure VMX's runtime hooks by modifying vmx_x86_ops directly instead
of using the global kvm_x86_ops.  This sets the stage for waiting until
after ->hardware_setup() to set kvm_x86_ops with the vendor's
implementation.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200321202603.19355-5-sean.j.christopherson@intel.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/nested.h
arch/x86/kvm/vmx/vmx.c