]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Preserve segment limit and access rights in real mode
authorAvi Kivity <avi@redhat.com>
Tue, 21 Aug 2012 14:07:08 +0000 (17:07 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 27 Aug 2012 23:02:21 +0000 (20:02 -0300)
commitb0af05a58c8cb3b82945128acf45396024c7ded2
tree622d33f371a22b1aa351cc81d7510f2415a7ab9b
parent32f6287ab2ad468d2f9f8afedb557f6e5e0ec752
KVM: VMX: Preserve segment limit and access rights in real mode

While this is undocumented, real processors do not reload the segment
limit and access rights when loading a segment register in real mode.
Real programs rely on it so we need to comply with this behaviour.

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