OSDN Git Service

KVM: x86: nSVM: restore the L1 host state prior to resuming nested guest on SMM exit
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 13 Sep 2021 14:09:49 +0000 (17:09 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Sep 2021 14:33:16 +0000 (10:33 -0400)
commite2e6e449d68ddf4ccb0bf72cc50fbc6c69fe7f63
tree18f7e811da3f5415d37e57b122397aa29bf06998
parent8d68bad6d869fae8f4d50ab6423538dec7da72d1
KVM: x86: nSVM: restore the L1 host state prior to resuming nested guest on SMM exit

Otherwise guest entry code might see incorrect L1 state (e.g paging state).

Fixes: 37be407b2ce8 ("KVM: nSVM: Fix L1 state corruption upon return from SMM")

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