KVM: VMX: introduce alloc_loaded_vmcs
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Jan 2018 11:16:15 +0000 (12:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Feb 2018 11:36:02 +0000 (12:36 +0100)
commitff546f9d83d320bc81b72bd2ccd4ebae45d3d714
treeb366a938e6994eaf200798c8b25437f75f1967cb
parent46e24dfc2dfe0062a77538698c84f13b24ce9b2c
KVM: VMX: introduce alloc_loaded_vmcs

(cherry picked from commit f21f165ef922c2146cc5bdc620f542953c41714b)

Group together the calls to alloc_vmcs and loaded_vmcs_init.  Soon we'll also
allocate an MSR bitmap there.

Cc: stable@vger.kernel.org # prereq for Spectre mitigation
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c