]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: reset pdptrs_from_userspace when exiting smm
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 13 Sep 2021 14:09:50 +0000 (17:09 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Sep 2021 14:33:16 +0000 (10:33 -0400)
commit028f46485f11fef6bb4dc8944fc4f1178424d8e3
treee38f1ba8c0b441699b83c47843eae19164b65f78
parentab2b18e6992403ebf52d4e9232a9569b4c51c47c
KVM: x86: reset pdptrs_from_userspace when exiting smm

When exiting SMM, pdpts are loaded again from the guest memory.

This fixes a theoretical bug, when exit from SMM triggers entry to the
nested guest which re-uses some of the migration
code which uses this flag as a workaround for a legacy userspace.

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