public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Wei Huang" <wei.huang2-5C7GfCeVMHo@public.gmane.org>
To: "Piero Ottuzzi" <ottuzzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [ANNOUNCE] kvm-36 release
Date: Wed, 12 Sep 2007 17:03:48 -0500	[thread overview]
Message-ID: <46E86244.8070107@amd.com> (raw)
In-Reply-To: <200709121708.51719.ottuzzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

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

The compilation errors also showed up on my boxes. The attached patch 
fixes the errors by renaming variables.

Signed-off-by: Wei Huang <wei.huang2-5C7GfCeVMHo@public.gmane.org>



Piero Ottuzzi wrote:
> Hi Avi, all,
> 
> trying to compile kvm-39 on Ubuntu 6.10 (Linux acaro 2.6.17-12-generic 
> #2 SMP
> Wed Aug 29 18:53:01 UTC 2007 x86_64 GNU/Linux):
> 
> piero@acaro:~/tmp/kvm-39$ make
> make -C kernel
> make[1]: Entering directory `/home/piero/tmp/kvm-39/kernel'
> make -C /lib/modules/2.6.17-12-generic/build M=`pwd` "$@"
> make[2]: Entering directory `/usr/src/linux-headers-2.6.17-12-generic'
>   LD      /home/piero/tmp/kvm-39/kernel/built-in.o
>   CC [M]  /home/piero/tmp/kvm-39/kernel/svm.o
>   CC [M]  /home/piero/tmp/kvm-39/kernel/vmx.o
>   CC [M]  /home/piero/tmp/kvm-39/kernel/vmx-debug.o
>   CC [M]  /home/piero/tmp/kvm-39/kernel/kvm_main.o
> /home/piero/tmp/kvm-39/kernel/kvm_main.c: In function ‘kvm_vcpu_ioctl’:
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2850: error: expected identifier
> or ‘(’ before ‘volatile’
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2850: error: expected ‘)’ 
> before ‘(’
> token
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2852: error: invalid lvalue in
> unary ‘&’
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2853: error: invalid lvalue in
> unary ‘&’
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2857: error: invalid lvalue in
> unary ‘&’
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2863: error: expected identifier
> or ‘(’ before ‘volatile’
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2863: error: expected ‘)’ 
> before ‘(’
> token
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2866: error: invalid lvalue in
> unary ‘&’
> /home/piero/tmp/kvm-39/kernel/kvm_main.c:2868: error: invalid lvalue in
> unary ‘&’
> make[3]: *** [/home/piero/tmp/kvm-39/kernel/kvm_main.o] Error 1
> make[2]: *** [_module_/home/piero/tmp/kvm-39/kernel] Error 2
> make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-12-generic'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/piero/tmp/kvm-39/kernel'
> make: *** [kernel] Error 2
> 
> Bye
> Piero
> 
> Alle 16:14, mercoledì 12 settembre 2007, Avi Kivity ha scritto:
>  > That's kvm-39 of course.
>  >
>  > Avi Kivity wrote:
>  > > Fix a couple of lapic hiccups in kvm-38.
>  > >
>  > > Changes since kvm-38:
>  > > - provide div64_64() for older kernels
>  > > - improve emulation failure reporting
>  > > - more x86 emulator work (push imm8, pushf, call near) (Nitin A Kamble)
>  > > - don't use TPR shadow on i386 (Sheng Yang)
>  > >
>  > > Notes:
>  > >    If you use the modules bundled with kvm-39, you can use any version
>  > > of Linux from 2.6.9 upwards.
>  > >    If you use the modules bundled with Linux 2.6.20, you need to use
>  > > kvm-12.
>  > >    If you use the modules bundled with Linux 2.6.21, you need to use
>  > > kvm-17.
>  > >    Modules from Linux 2.6.22 and up will work with any kvm version from
>  > > kvm-22.  Some features may only be available in newer releases.
>  > >    For best performance, use Linux 2.6.23-rc2 or later as the host.
>  > >
>  > > http://kvm.qumranet.com
>  > >
>  > >
>  > >
>  > > 
> -------------------------------------------------------------------------
>  > > This SF.net email is sponsored by: Microsoft
>  > > Defy all challenges. Microsoft(R) Visual Studio 2005.
>  > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>  > > _______________________________________________
>  > > kvm-devel mailing list
>  > > kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>  > > https://lists.sourceforge.net/lists/listinfo/kvm-devel
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
> 

[-- Attachment #2: lapic_state_patch.txt --]
[-- Type: text/plain, Size: 1076 bytes --]

diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 99e4917..f04ca6b 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -2967,25 +2967,25 @@ static long kvm_vcpu_ioctl(struct file *
 		break;
 	}
 	case KVM_GET_LAPIC: {
-		struct kvm_lapic_state lapic;
+		struct kvm_lapic_state lapic_state;
 
-		memset(&lapic, 0, sizeof lapic);
-		r = kvm_vcpu_ioctl_get_lapic(vcpu, &lapic);
+		memset(&lapic_state, 0, sizeof lapic_state);
+		r = kvm_vcpu_ioctl_get_lapic(vcpu, &lapic_state);
 		if (r)
 			goto out;
 		r = -EFAULT;
-		if (copy_to_user(argp, &lapic, sizeof lapic))
+		if (copy_to_user(argp, &lapic_state, sizeof lapic_state))
 			goto out;
 		r = 0;
 		break;
 	}
 	case KVM_SET_LAPIC: {
-		struct kvm_lapic_state lapic;
+		struct kvm_lapic_state lapic_state;
 
 		r = -EFAULT;
-		if (copy_from_user(&lapic, argp, sizeof lapic))
+		if (copy_from_user(&lapic_state, argp, sizeof lapic_state))
 			goto out;
-		r = kvm_vcpu_ioctl_set_lapic(vcpu, &lapic);;
+		r = kvm_vcpu_ioctl_set_lapic(vcpu, &lapic_state);;
 		if (r)
 			goto out;
 		r = 0;

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

  parent reply	other threads:[~2007-09-12 22:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-12 14:13 [ANNOUNCE] kvm-36 release Avi Kivity
     [not found] ` <46E7F417.6020107-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-12 14:14   ` Avi Kivity
     [not found]     ` <46E7F44C.9070303-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-12 15:08       ` Piero Ottuzzi
     [not found]         ` <200709121708.51719.ottuzzi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-09-12 22:03           ` Wei Huang [this message]
     [not found]             ` <46E86244.8070107-5C7GfCeVMHo@public.gmane.org>
2007-09-14 17:19               ` Avi Kivity
2007-09-12 16:13       ` Gildas
     [not found]         ` <b2ace7f20709120913wf08b91brb7a2f73b608a3bac-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-09-14 16:53           ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2007-08-22 15:17 Avi Kivity
     [not found] ` <46CC537D.4030402-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-22 18:50   ` Gunther Persoons
     [not found]     ` <b0a37f790708221150i54949b71ocfe49b18546f4ad6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-22 19:12       ` Haydn Solomon
     [not found]         ` <b75785ba0708221212k458e0635n3b37a18aeec0a696-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-22 19:20           ` Fabian Deutsch
2007-08-22 19:29       ` Duncan McQueen
     [not found]         ` <494f8120708221229w571845b0wf406828a34209de6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-22 19:33           ` Gunther Persoons
     [not found]             ` <b0a37f790708221233n398d7424w30ed6ecbd04bd15f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-22 19:50               ` Haydn Solomon
2007-08-23  7:43       ` Avi Kivity
     [not found]         ` <46CD3AA7.7010903-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-23  8:12           ` Avi Kivity
     [not found]             ` <46CD4156.2000506-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-23  0:36               ` Izik Eidus
     [not found]                 ` <1187829365.2730.4.camel-siXIhNkUrCXckEVJwWePHtCfPAL7FxvL@public.gmane.org>
2007-08-23  0:37                   ` Izik Eidus
2007-08-23 11:01                   ` Avi Kivity
2007-08-23  9:02               ` Gunther Persoons

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=46E86244.8070107@amd.com \
    --to=wei.huang2-5c7gfcevmho@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=ottuzzi-Re5JQEeQqe8AvxtiuMwx3w@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