KVM: nSVM: leave the guest mode prior to loading a nested state
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 3 May 2021 12:54:44 +0000 (15:54 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 May 2021 15:25:38 +0000 (11:25 -0400)
commit9d290e16432cacd448475d38dec2753b75b9665f
tree6b8e63f46754273a9c060c23687751fd6c2bbcb4
parentc74ad08f3333db2e44d3346b863f6d10d35e37dd
KVM: nSVM: leave the guest mode prior to loading a nested state

This allows the KVM to load the nested state more than
once without warnings.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210503125446.1353307-4-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c