]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9b88ac6c70ed6b2e9328c02ad9fd81504e2a1a7
treea66b88a71c4fb6b4674300be3b5bbc217d81ffa9
parentf1e496f35baf6d9eb495de207ea96323dd86a1f3
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