Re: How to use PCI-passthrough with kvm

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <weidong.han@...>
Cc: <kvm@...>
Date: Sunday, December 14, 2008 - 10:27 pm

Hi Weidong,
Thank you for your answer.

I tried to test latest Avi's kvm.git and kvm-userspace.git.
but, kvm-userspace fails to compile.

I used the following git repositories:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm-userspace.git
vtd

$ ./configure
$ make
 make -C libkvm
make[1]: Entering directory `/home/ddk/vtd/libkvm'
gcc -m32 -D__i386__ -MMD -MF ./.libkvm.d -g -fomit-frame-pointer -Wall
 -fno-stack-protector   -I /home/ddk/vtd/kernel/include   -c -o
libkvm.o libkvm.c
In file included from libkvm.c:38:
libkvm.h:630: warning: 'struct kvm_pit_state' declared inside parameter list
libkvm.h:630: warning: its scope is only this definition or
declaration, which is probably not what you want
libkvm.h:641: warning: 'struct kvm_pit_state' declared inside parameter list
gcc -m32 -D__i386__ -MMD -MF ./.libkvm-x86.d -g -fomit-frame-pointer
-Wall  -fno-stack-protector   -I /home/ddk/vtd/kernel/include   -c -o
libkvm-x86.o libkvm-x86.c
In file included from libkvm-x86.c:1:
libkvm.h:630: warning: 'struct kvm_pit_state' declared inside parameter list
libkvm.h:630: warning: its scope is only this definition or
declaration, which is probably not what you want
libkvm.h:641: warning: 'struct kvm_pit_state' declared inside parameter list
libkvm-x86.c:246: warning: 'struct kvm_pit_state' declared inside parameter list
libkvm-x86.c:247: error: conflicting types for 'kvm_get_pit'
libkvm.h:630: error: previous declaration of 'kvm_get_pit' was here
libkvm-x86.c: In function 'kvm_get_pit':
libkvm-x86.c:251: error: invalid application of 'sizeof' to incomplete
type 'struct kvm_pit_state'
libkvm-x86.c:251: error: array type has incomplete element type
libkvm-x86.c:251: error: invalid application of 'sizeof' to incomplete
type 'struct kvm_pit_state'
libkvm-x86.c:251: error: invalid application of 'sizeof' to incomplete
type 'struct kvm_pit_state'
libkvm-x86.c: At top level:
libkvm-x86.c:259: warning: 'struct kvm_pit_state' declared inside parameter list
libkvm-x86.c:260: error: conflicting types for 'kvm_set_pit'
libkvm.h:641: error: previous declaration of 'kvm_set_pit' was here
libkvm-x86.c: In function 'kvm_set_pit':
libkvm-x86.c:264: error: invalid application of 'sizeof' to incomplete
type 'struct kvm_pit_state'
libkvm-x86.c:264: error: array type has incomplete element type
libkvm-x86.c:264: error: invalid application of 'sizeof' to incomplete
type 'struct kvm_pit_state'
libkvm-x86.c:264: error: invalid application of 'sizeof' to incomplete
type 'struct kvm_pit_state'
make[1]: *** [libkvm-x86.o] Error 1
make[1]: Leaving directory `/home/ddk/vtd/libkvm'
make: *** [libkvm] Error 2

Any advice or tips will help?

Thanks,
Kazushi

From: "Han, Weidong" <weidong.han@intel.com>
Subject: RE: How to use PCI-passthrough with kvm
Date: Thu, 11 Dec 2008 18:26:27 +0800

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to use PCI-passthrough with kvm, w1ndoz, (Wed Dec 10, 1:17 am)
RE: How to use PCI-passthrough with kvm, Han, Weidong, (Wed Dec 10, 5:35 am)
Re: How to use PCI-passthrough with kvm, w1ndoz, (Wed Dec 10, 10:39 pm)
RE: How to use PCI-passthrough with kvm, Han, Weidong, (Thu Dec 11, 3:32 am)
Re: How to use PCI-passthrough with kvm, w1ndoz, (Thu Dec 11, 6:11 am)
RE: How to use PCI-passthrough with kvm, Han, Weidong, (Thu Dec 11, 6:26 am)
Re: How to use PCI-passthrough with kvm, w1ndoz, (Sun Dec 14, 10:27 pm)
RE: How to use PCI-passthrough with kvm, Han, Weidong, (Sun Dec 14, 10:37 pm)