]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
kvm: nVMX: Refactor nested_get_vmcs12_pages()
authorJim Mattson <jmattson@google.com>
Wed, 30 Nov 2016 20:03:45 +0000 (12:03 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Feb 2017 13:56:11 +0000 (14:56 +0100)
commit6beb7bd52e482c213dfa6c1c88e27a579df5bf4d
tree4c1f599f5e1c870ba06d109557c517bdc17f41a4
parenta8bc284eb70f58a4fd0f4a70d816cca28ca01973
kvm: nVMX: Refactor nested_get_vmcs12_pages()

Perform the checks on vmcs12 state early, but defer the gpa->hpa lookups
until after prepare_vmcs02. Later, when we restore the checkpointed
state of a vCPU in guest mode, we will not be able to do the gpa->hpa
lookups when the restore is done.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c