]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit046ef6f61919ff862f43631ec2f00bcc879e60ee
tree99b528cc8d73a8cbecbdeb7d434cacd444b4962d
parent7bbb99b8e5a20aaf0e69a46b47127803b7f4dd74
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