Skip to contentSkip to conversation

Fix 32bit SVM build

PATCH Applied Anthony Liguori 2 participants 2 messages Feb 3, 2007 – Feb 4, 2007 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix 32bit SVM build

Regards,

Anthony Liguori

Fix 32bit build for SVM.

kernel/kvm_main.c +4 -1
diff -r a14fbb59de99 kernel/kvm_main.c
@@ -1148,6 +1148,7 @@ int kvm_hypercall(struct kvm_vcpu *vcpu,
 
 	kvm_arch_ops->decache_regs(vcpu);
 	ret = -KVM_EINVAL;
+#ifdef CONFIG_X86_64
 	if (is_long_mode(vcpu)) {
 		nr = vcpu->regs[VCPU_REGS_RAX];
 		a0 = vcpu->regs[VCPU_REGS_RDI];
@@ -1156,7 +1157,9 @@ int kvm_hypercall(struct kvm_vcpu *vcpu,
 		a3 = vcpu->regs[VCPU_REGS_RCX];
 		a4 = vcpu->regs[VCPU_REGS_R8];
 		a5 = vcpu->regs[VCPU_REGS_R9];
-	} else {
+	} else
+#endif
+	{
 		nr = vcpu->regs[VCPU_REGS_RBX] & -1u;
 		a0 = vcpu->regs[VCPU_REGS_RAX] & -1u;
 		a1 = vcpu->regs[VCPU_REGS_RCX] & -1u;

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): [email protected]

Applied
#2 lore raw
Quoted 8 lines · Anthony Liguori

Regards,

Anthony Liguori
------------------------------------------------------------------------

Fix 32bit build for SVM.

Applied, thanks.

Signature · 8 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642