From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dushyant Bansal Date: Fri, 04 Feb 2011 19:31:37 +0000 Subject: =?UTF-8?B?UmU6IHFlbXUgY29tcGlsaW5nIGVycm9yIG9uIHBwYzY0OiBrdm0uYzo=?= Message-Id: <4D4C5149.80303@cse.iitd.ac.in> List-Id: References: <7564d180e958415b388e0cb93e2f2a71.squirrel@webmail.iitd.ernet.in> <57F58C04-DDF3-4F8C-9BC3-DAED54D2D088@suse.de> In-Reply-To: <57F58C04-DDF3-4F8C-9BC3-DAED54D2D088@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Alexander Graf Cc: "qemu-devel@nongnu.org" , "kvm-ppc@vger.kernel.org" On Friday 04 February 2011 08:13 PM, Alexander Graf wrote: > On 04.02.2011, at 14:25, "Dushyant Bansal" wrote: > > >> 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 >> >> $ ./configure --enable-kvm --target-list="ppc-softmmu" >> $ make >> >> [...] >> 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 ‘kvm_arch_init_vcpu’: >> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has >> no member named ‘pvr’ >> > Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please > Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful. Thanks a lot. -- Dushyant