]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Correct ordering of ldt reload wrt fs/gs reload
authorAvi Kivity <avi@redhat.com>
Tue, 19 Oct 2010 16:48:35 +0000 (18:48 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 17 Nov 2010 21:47:59 +0000 (19:47 -0200)
commitf1ddd7e87c31d892f89d2cdc1f027611b7e1376f
treeaed5a7a44ac832a0cc0f63c9eaa760448eacc117
parenta5400a295440e8af59d06f0306346ed752199e64
KVM: Correct ordering of ldt reload wrt fs/gs reload

If fs or gs refer to the ldt, they must be reloaded after the ldt.  Reorder
the code to that effect.

Userspace code that uses the ldt with kvm is nonexistent, so this doesn't fix
a user-visible bug.

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