qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50:


From: Alexander Graf
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'
Date: Mon, 25 Jan 2010 11:33:23 +0100

On 25.01.2010, at 11:28, Michael S. Tsirkin wrote:

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

That discussion is coming up every other month. I think the conclusion so far 
was that ppl don't want to include the kvm headers in qemu.

I'm personally all for it. That'd also make the luvally builds easier.

Alex



reply via email to

[Prev in Thread] Current Thread [Next in Thread]