diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-05-22 03:50:14 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-01 04:26:00 -0400 |
commit | 2d8a42be0e2b15a4e0b20349f27bb8288db5ebe6 (patch) | |
tree | 1dd320fe1f9582f163333ca8527a9541783828d3 /arch/x86/kvm/svm/svm.h | |
parent | d8e4e58f4bd4bb55d2640a841c3606333930f0e1 (diff) | |
download | lwn-2d8a42be0e2b15a4e0b20349f27bb8288db5ebe6.tar.gz lwn-2d8a42be0e2b15a4e0b20349f27bb8288db5ebe6.zip |
KVM: nSVM: synchronize VMCB controls updated by the processor on every vmexit
The control state changes on every L2->L0 vmexit, and we will have to
serialize it in the nested state. So keep it up to date in svm->nested.ctl
and just copy them back to the nested VMCB in nested_svm_vmexit.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.h')
-rw-r--r-- | arch/x86/kvm/svm/svm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index dd5418f20256..7e79f0af1204 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -394,6 +394,7 @@ int nested_svm_check_permissions(struct vcpu_svm *svm); int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr, bool has_error_code, u32 error_code); int nested_svm_exit_special(struct vcpu_svm *svm); +void sync_nested_vmcb_control(struct vcpu_svm *svm); extern struct kvm_x86_nested_ops svm_nested_ops; |