]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Mon, 17 Dec 2018 20:55:13 +0000 (21:55 +0100)
commit8f54df9756caed1d499bc8f412ab736a8928dc39
tree8a19ba16a53c3f7494abaa4891b6c056d27b564e
parent81cd492667c69020b3f55bed8eb5bfa4bebf7895
KVM: VMX: introduce alloc_loaded_vmcs

commit f21f165ef922c2146cc5bdc620f542953c41714b upstream.

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

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>
[bwh: Backported to 4.4:
 - No loaded_vmcs::shadow_vmcs field to initialise
 - Adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c