]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: zero IDT limit on entry to SMM
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Aug 2015 10:27:54 +0000 (12:27 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Aug 2015 10:46:32 +0000 (12:46 +0200)
commit279a7a1e01b86d26d1dfc1770529373bc4aca785
tree023ac1fe38a06a4a4f5845cf87bbe4bc98b4e3ac
parent96d803d2e9387b1011e00a213013769c3137fa87
KVM: x86: zero IDT limit on entry to SMM

The recent BlackHat 2015 presentation "The Memory Sinkhole"
mentions that the IDT limit is zeroed on entry to SMM.

This is not documented, and must have changed some time after 2010
(see http://www.ssi.gouv.fr/uploads/IMG/pdf/IT_Defense_2010_final.pdf).
KVM was not doing it, but the fix is easy.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c