From: Alexander Graf Date: Fri, 04 Feb 2011 20:03:38 +0000 Subject: =?utf-8?Q?Re:_qemu_compiling_error_on_ppc64:_kvm.c:81:_error:__?= Message-Id: <08BB2546-F4CA-4197-B166-CEAD5C7230AA@suse.de> List-Id: References: <7564d180e958415b388e0cb93e2f2a71.squirrel@webmail.iitd.ernet.in> <57F58C04-DDF3-4F8C-9BC3-DAED54D2D088@suse.de> <4D4C46D5.6070408@siemens.com> In-Reply-To: <4D4C46D5.6070408@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: Jan Kiszka Cc: "kvm-ppc@vger.kernel.org" , "qemu-devel@nongnu.org" , Dushyant Bansal On 04.02.2011, at 19:35, Jan Kiszka wrote: > On 2011-02-04 15:43, Alexander Graf wrote: >>=20 >> On 04.02.2011, at 14:25, "Dushyant Bansal" = wrote: >>=20 >>> Hi, >>> I am trying to install kvm on ppc64 system (imac G5). I have built >>> kernel with kvm module. When I try to install qemu, I am getting this >>> error >>>=20 >>> $ ./configure --enable-kvm --target-list=3D"ppc-softmmu" >>> $ make >>>=20 >>> [...] >>> CC slirp/tftp.o >>> CC libdis/ppc-dis.o >>> GEN config-target.h >>> CC ppc-softmmu/arch_init.o >>> CC ppc-softmmu/cpus.o >>> GEN ppc-softmmu/hmp-commands.h >>> GEN ppc-softmmu/qmp-commands.h >>> CC ppc-softmmu/monitor.o >>> CC ppc-softmmu/machine.o >>> CC ppc-softmmu/gdbstub.o >>> CC ppc-softmmu/balloon.o >>> CC ppc-softmmu/virtio-blk.o >>> CC ppc-softmmu/virtio-balloon.o >>> CC ppc-softmmu/virtio-net.o >>> CC ppc-softmmu/virtio-serial-bus.o >>> CC ppc-softmmu/virtio-pci.o >>> CC ppc-softmmu/vhost_net.o >>> CC ppc-softmmu/rwhandler.o >>> CC ppc-softmmu/kvm.o >>> /home/user/project/qemu/target-ppc/kvm.c: In function =81ekvm_arch_init= _vcpu=81f: >>> /home/user/project/qemu/target-ppc/kvm.c:81: error: =81estruct kvm_sreg= s=81f has >>> no member named =81epvr=81f >>=20 >> Hrm. This means that your kernel headers in /usr/include/linux are too o= ld. Can you try and find out which kernel version they are from please? >=20 > < 2.6.33. Lacking build-time KVM_CAP check? Or is such a kernel too old > anyway? Then catch it during configure and point the user to... well... > there is no kvm-kmod with kernel header updates for PowerPC. Hmm... ;) Yes, certainly lacking a configure time dependency :). >=20 > Jan >=20 > --=20 > Siemens AG, Corporate Technology, CT T DE IT 1 > Corporate Competence Center Embedded Linux