KVM: x86 emulator: Leave segment limit and attributs alone in real mode
authorAvi Kivity <avi@redhat.com>
Tue, 21 Aug 2012 14:07:04 +0000 (17:07 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 27 Aug 2012 23:02:20 +0000 (20:02 -0300)
commit03ebebeb1ff5d1d6209fd8df4ffc9204df82bd55
tree47af40344c5f609e34acbc9136fe5c04b2893282
parente2a610d7fc3e285af8061ff071761752255d95f6
KVM: x86 emulator: Leave segment limit and attributs alone in real mode

When loading a segment in real mode, only the base and selector must
be modified.  The limit needs to be left alone, otherwise big real mode
users will hit a #GP due to limit checking (currently this is suppressed
because we don't check limits in real mode).

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c