From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: [PATCH] Fix 32bit SVM build Date: Fri, 02 Feb 2007 20:01:38 -0600 Message-ID: <45C3ED02.6020408@cs.utexas.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000508000509010908030804" To: kvm-devel Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------000508000509010908030804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Regards, Anthony Liguori --------------000508000509010908030804 Content-Type: text/x-patch; name="svm-32bit-build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="svm-32bit-build.diff" Fix 32bit build for SVM. Signed-off-by: Anthony Liguori diff -r a14fbb59de99 kernel/kvm_main.c --- a/kernel/kvm_main.c Thu Feb 01 15:44:11 2007 +0000 +++ b/kernel/kvm_main.c Fri Feb 02 16:52:23 2007 -0600 @@ -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; --------------000508000509010908030804 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --------------000508000509010908030804 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------000508000509010908030804--