]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: update live TR selector if it changes in real mode
authorGleb Natapov <gleb@redhat.com>
Mon, 21 Feb 2011 10:07:58 +0000 (12:07 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:31 +0000 (13:08 -0300)
commit201ae72efd9b0fb2c903f54aacae16afdf67c593
tree11979981ad9f49b379cadfe02c9718b9deec1f27
parentfe2140ddc4284180f38b268789081da6dcdbb8cb
KVM: VMX: update live TR selector if it changes in real mode

When rmode.vm86 is active TR descriptor is updated with vm86 task values,
but selector is left intact. vmx_set_segment() makes sure that if TR
register is written into while vm86 is active the new values are saved
for use after vm86 is deactivated, but since selector is not updated on
vm86 activation/deactivation new value is lost. Fix this by writing new
selector into vmcs immediately.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c