lkml.org 
[lkml]   [2021]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 4/4] KVM: nSVM: mark vmcb as dirty when forcingly leaving the guest mode
    Date
    We overwrite most of vmcb fields while doing so, so we must
    mark it as dirty.

    Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
    ---
    arch/x86/kvm/svm/nested.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
    index e91d40c8d8c91..c340fbad88566 100644
    --- a/arch/x86/kvm/svm/nested.c
    +++ b/arch/x86/kvm/svm/nested.c
    @@ -760,6 +760,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);
    --
    2.26.2
    \
     
     \ /
      Last update: 2021-01-07 10:41    [W:3.069 / U:0.088 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site