]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: make rmode_segment_valid() more strict.
authorGleb Natapov <gleb@redhat.com>
Thu, 20 Dec 2012 14:57:44 +0000 (16:57 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 2 Jan 2013 21:36:28 +0000 (19:36 -0200)
commit3694a713b1c90e323565cf57619ae5a8879bfde6
tree52e8a8121405ef85d4a8da53b9888a8de9419968
parent9f5f4edc6bbb83ea9af5a3d1540c19beaefcaab0
KVM: VMX: make rmode_segment_valid() more strict.

Currently it allows entering vm86 mode if segment limit is greater than
0xffff and db bit is set. Both of those can cause incorrect execution of
instruction by cpu since in vm86 mode limit will be set to 0xffff and db
will be forced to 0.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c