From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZMEO-0003ea-3a for qemu-devel@nongnu.org; Mon, 25 Jan 2010 05:31:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZMEI-0003dM-Vh for qemu-devel@nongnu.org; Mon, 25 Jan 2010 05:31:39 -0500 Received: from [199.232.76.173] (port=52425 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZMEI-0003dH-Rk for qemu-devel@nongnu.org; Mon, 25 Jan 2010 05:31:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31843) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZMEH-0004oF-Jj for qemu-devel@nongnu.org; Mon, 25 Jan 2010 05:31:34 -0500 Date: Mon, 25 Jan 2010 12:28:18 +0200 From: "Michael S. Tsirkin" Message-ID: <20100125102818.GA9182@redhat.com> References: <20100124221632.0836fa0d.acrux_it@libero.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] Re: qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr' List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: acrux , qemu-devel@nongnu.org On Mon, Jan 25, 2010 at 10:25:30AM +0100, Alexander Graf wrote: > > On 24.01.2010, at 22:16, acrux wrote: > > > On a powerpc32 (Apple G4) system: > > gnu/linux distribution: CRUX PPC 2.6 (32bit) > > toolchain: binutils-2.20, gcc-4.4.3, glibc-2.11 > > kernel: linux-2.6.32.5 > > > > [...] > > AR mips64el-softmmu/libqemu.a > > LINK mips64el-softmmu/qemu-system-mips64el > > GEN config-target.h > > GEN ppc-softmmu/qemu-options.h > > CC ppc-softmmu/vl.o > > CC ppc-softmmu/async.o > > GEN ppc-softmmu/qemu-monitor.h > > CC ppc-softmmu/monitor.o > > CC ppc-softmmu/pci.o > > CC ppc-softmmu/pci_host.o > > CC ppc-softmmu/pcie_host.o > > CC ppc-softmmu/machine.o > > CC ppc-softmmu/gdbstub.o > > CC ppc-softmmu/virtio-blk.o > > CC ppc-softmmu/virtio-balloon.o > > CC ppc-softmmu/virtio-net.o > > CC ppc-softmmu/virtio-console.o > > CC ppc-softmmu/virtio-pci.o > > CC ppc-softmmu/kvm.o > > /home/ports/qemu/work/src/qemu-0.12.2/target-ppc/kvm.c: In function 'kvm_arch_init_vcpu': > > /home/ports/qemu/work/src/qemu-0.12.2/target-ppc/kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr' > > Ugh. Please use --disable-kvm on such old kernel versions. KVM doesn't work on G4s (yet) anyway. > I guess I'll need to add a minimum version check for KVM on ppc. > > > make[1]: *** [kvm.o] Error 1 > > make: *** [subdir-ppc-softmmu] Error 2 > > > > > > Instead on a powerpc64 (IBM POWER4+) system: > > gnu/linux distribution: CRUX PPC 2.6 (64bit) > > toolchain: binutils-2.20, gcc-4.4.3, glibc-2.11 > > kernel: linux-2.6.30.9 > > > > [...] > > CC ppc64-softmmu/pcie_host.o > > CC ppc64-softmmu/machine.o > > CC ppc64-softmmu/gdbstub.o > > CC ppc64-softmmu/virtio-blk.o > > CC ppc64-softmmu/virtio-balloon.o > > CC ppc64-softmmu/virtio-net.o > > CC ppc64-softmmu/virtio-console.o > > CC ppc64-softmmu/virtio-pci.o > > CC ppc64-softmmu/kvm.o > > /home/ports/qemu/work/src/qemu-0.12.2/target-ppc/kvm.c: In function 'kvm_arch_init_vcpu': > > /home/ports/qemu/work/src/qemu-0.12.2/target-ppc/kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr' > > Same as above with the difference that PPC64 can actually use KVM. So if you like to use KVM, please update your host kernel. > > Alex Another solution would be to ship the necessary headers with qemu source: host kernel might get changed without all programs being rebuilt. -- MST