KVM: emulator: fix real mode segment checks in address linearization
authorGleb Natapov <gleb@redhat.com>
Tue, 11 Dec 2012 13:14:12 +0000 (15:14 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Dec 2012 23:00:28 +0000 (21:00 -0200)
commit58b7825bc324da55415034a9f6ca5d716b8fd898
tree819453213ec9f5c68eae10088467f1abe75d9cb4
parent0b26b588d97031fe8e16a35186220a6c14c89849
KVM: emulator: fix real mode segment checks in address linearization

In real mode CS register is writable, so do not #GP on write.

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