diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2021-01-07 11:38:54 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-07 18:11:34 -0500 |
commit | 56fe28de8c4f0167275c411c0daa5709e9a47bd7 (patch) | |
tree | f15028b9039dc346e8b64b8e338793660c1bdd3b /arch/x86 | |
parent | 81f76adad560dfc39cb9625cf1e00a7e2b7b88df (diff) | |
download | linux-stable-56fe28de8c4f0167275c411c0daa5709e9a47bd7.tar.gz linux-stable-56fe28de8c4f0167275c411c0daa5709e9a47bd7.tar.bz2 linux-stable-56fe28de8c4f0167275c411c0daa5709e9a47bd7.zip |
KVM: nSVM: mark vmcb as dirty when forcingly leaving the guest mode
We overwrite most of vmcb fields while doing so, so we must
mark it as dirty.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210107093854.882483-5-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/svm/nested.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index a466336aab43..a622e63739b4 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -754,6 +754,7 @@ void svm_leave_nested(struct vcpu_svm *svm) leave_guest_mode(&svm->vcpu); copy_vmcb_control_area(&vmcb->control, &hsave->control); nested_svm_uninit_mmu_context(&svm->vcpu); + vmcb_mark_all_dirty(svm->vmcb); } kvm_clear_request(KVM_REQ_GET_NESTED_STATE_PAGES, &svm->vcpu); |