KVM: VMX: Move Hyper-V eVMCS initialization to helper
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:08:56 +0000 (23:08 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Dec 2022 20:40:58 +0000 (15:40 -0500)
commit451d39e8006111c4449830e01ec460024bf58817
treeb13c4e28fae405b3731c5377053405cea2f4e39e
parentda66de44b01e9b7fa09731057593850394bf32e4
KVM: VMX: Move Hyper-V eVMCS initialization to helper

Move Hyper-V's eVMCS initialization to a dedicated helper to clean up
vmx_init(), and add a comment to call out that the Hyper-V init code
doesn't need to be unwound if vmx_init() ultimately fails.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20221130230934.1014142-13-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c