[PATCH] Fix kvm-svn/kernel build on 32-bit

Ben Collins
2007-02-04T00:55:57Z

Build currently fails with x86.

Index: kernel/kvm_main.c
===================================================================
--- kernel/kvm_main.c (revision 4381)
+++ kernel/kvm_main.c (working copy)
@@ -1148,6 +1148,7 @@

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 @@
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;

--
Ubuntu: http://www.ubuntu.com/
Linux1394: http://www.linux1394.org/