summaryrefslogtreecommitdiffstats
path: root/mm/debug_page_ref.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2018-09-26 09:23:50 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-17 00:29:55 +0200
commit09abe32002665f97e61b42af0a045080663e9e7d (patch)
tree68dc592d5e423ad0bb2a45e7493bf1f8ed17964e /mm/debug_page_ref.c
parent860ff2aa84d386ba3576ef5c6e2b6dcb7de26a05 (diff)
downloadlinux-09abe32002665f97e61b42af0a045080663e9e7d.tar.bz2
KVM: nVMX: split pieces of prepare_vmcs02() to prepare_vmcs02_early()
Add prepare_vmcs02_early() and move pieces of prepare_vmcs02() to the new function. prepare_vmcs02_early() writes the bits of vmcs02 that a) must be in place to pass the VMFail consistency checks (assuming vmcs12 is valid) and b) are needed recover from a VMExit, e.g. host state that is loaded on VMExit. Splitting the functionality will enable KVM to leverage hardware to do VMFail consistency checks via a dry run of VMEnter and recover from a potential VMExit without having to fully initialize vmcs02. Add prepare_vmcs02_constant_state() to handle writing vmcs02 state that comes from vmcs01 and never changes, i.e. we don't need to rewrite any of the vmcs02 that is effectively constant once defined. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Reviewed-by: Jim Mattson <jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm/debug_page_ref.c')
0 files changed, 0 insertions, 0 deletions