KVM: x86: Non-canonical access using SS should cause #SS
authorNadav Amit <namit@cs.technion.ac.il>
Wed, 19 Nov 2014 15:43:12 +0000 (17:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Nov 2014 17:19:57 +0000 (18:19 +0100)
commitabc7d8a4c935dbe0be5db2eb338b2ec9b27ae157
treea66b88a71c4fb6b4674300be3b5bbc217d81ffa9
parentd50eaa18039b8b848c2285478d0775335ad5e930
KVM: x86: Non-canonical access using SS should cause #SS

When SS is used using a non-canonical address, an #SS exception is generated on
real hardware.  KVM emulator causes a #GP instead. Fix it to behave as real x86
CPU.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c