Skip to contentSkip to conversation

KVM: SVM: Fix copy&paste mistake in 32-bit host GS loading

PATCH In review Jan Kiszka 2 participants 2 messages Oct 24, 2010

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 KVM: SVM: Fix copy&paste mistake in 32-bit host GS loading

From: Jan Kiszka <[email protected]>

---
 arch/x86/kvm/svm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/svm.c +1 -1
index fad4038..1a5757a 100644
@@ -1022,7 +1022,7 @@ static void svm_vcpu_put(struct kvm_vcpu *vcpu)
 	load_gs_index(svm->host.gs);
 	wrmsrl(MSR_KERNEL_GS_BASE, current->thread.gs);
 #else
-	loadsegment(gs, gs_selector);
+	loadsegment(gs, svm->host.gs);
 #endif
 	for (i = 0; i < NR_HOST_SAVE_USER_MSRS; i++)
 		wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]);
Signature · 1 line
1.7.1
#1 lore raw
Quoted 2 lines · Jan Kiszka

From: Jan Kiszka<[email protected]>

Applied, thanks. I'll go and set up a buildbot for i386.

Signature · 1 line
error compiling committee.c: too many arguments to function