KVM: VMX: Move RESET-only VMWRITE sequences to init_vmcs()
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:33:21 +0000 (09:33 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:59 +0000 (11:01 -0400)
commite54949408abfbe3905ae19ac3b42ecd2d29bc3c5
tree99b528cc8d73a8cbecbdeb7d434cacd444b4962d
parent7aa13fc3d8260c4215b8aea971d120e675d8781f
KVM: VMX: Move RESET-only VMWRITE sequences to init_vmcs()

Move VMWRITE sequences in vmx_vcpu_reset() guarded by !init_event into
init_vmcs() to make it more obvious that they're, uh, initializing the
VMCS.

No meaningful functional change intended (though the order of VMWRITEs
and whatnot is different).

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-44-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c