public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
To: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: [PATCH] Fix 32bit SVM build
Date: Fri, 02 Feb 2007 20:01:38 -0600	[thread overview]
Message-ID: <45C3ED02.6020408@cs.utexas.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 26 bytes --]

Regards,

Anthony Liguori

[-- Attachment #2: svm-32bit-build.diff --]
[-- Type: text/x-patch, Size: 820 bytes --]

Fix 32bit build for SVM.

Signed-off-by: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>

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;

[-- Attachment #3: Type: text/plain, Size: 374 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

             reply	other threads:[~2007-02-03  2:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-03  2:01 Anthony Liguori [this message]
     [not found] ` <45C3ED02.6020408-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
2007-02-04  7:58   ` [PATCH] Fix 32bit SVM build Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45C3ED02.6020408@cs.utexas.edu \
    --to=aliguori-nzps4cjig2hvqtjrzfazuq@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox