summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-02-12 03:30:09 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2011-02-12 03:30:09 +0300
commit3c6c0d6ca386fe7a8e44e887a51f333c2499c829 (patch)
treed502ba0de5d3dacb5098d677734fe2ccabd6b113
parent5b49378ec105dc104fc480fa7f4a80d77dd1360a (diff)
parent893a5ab6ee7d51b231ed45aa844f8088642cb6bf (diff)
downloadlinux-3c6c0d6ca386fe7a8e44e887a51f333c2499c829.tar.xz
Merge branch 'kvm-updates/2.6.38' of git://git.kernel.org/pub/scm/virt/kvm/kvm
* 'kvm-updates/2.6.38' of git://git.kernel.org/pub/scm/virt/kvm/kvm: KVM: SVM: Make sure KERNEL_GS_BASE is valid when loading gs_index
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 25bd1bc5aad2..54ce246a383e 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1150,8 +1150,8 @@ static void svm_vcpu_put(struct kvm_vcpu *vcpu)
kvm_load_ldt(svm->host.ldt);
#ifdef CONFIG_X86_64
loadsegment(fs, svm->host.fs);
- load_gs_index(svm->host.gs);
wrmsrl(MSR_KERNEL_GS_BASE, current->thread.gs);
+ load_gs_index(svm->host.gs);
#else
loadsegment(gs, svm->host.gs);
#endif