KVM: x86: fix use of uninitialized memory as segment descriptor in emulator.
authorGleb Natapov <gleb@redhat.com>
Mon, 21 Jan 2013 13:36:48 +0000 (15:36 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 24 Jan 2013 02:40:31 +0000 (00:40 -0200)
commit378a8b099fc207ddcb91b19a8c1457667e0af398
tree765795d3fb0e37b87ba5b37d119b2731809ec64b
parent91b0aa2ca63e60ac69c5dd96bff580d3947073d4
KVM: x86: fix use of uninitialized memory as segment descriptor in emulator.

If VMX reports segment as unusable, zero descriptor passed by the emulator
before returning. Such descriptor will be considered not present by the
emulator.

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