]> git.karo-electronics.de Git - mv-sheeva.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)
commit0a77fe4c188e25917799f2356d4aa5e6d80c39a2
treeaed5a7a44ac832a0cc0f63c9eaa760448eacc117
parent59365d136d205cc20fe666ca7f89b1c5001b0d5a
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