qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
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' 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' /home/ports/qemu/work/src/qemu-0.12.2/target-ppc/kvm.c: In function 'kvmppc_handle_dcr_read':/home/ports/qemu/work/src/qemu-0.12.2/target-ppc/kvm.c:218: warning: passing argument 3 of 'ppc_dcr_read' from incompatible pointer type /home/ports/qemu/work/src/qemu-0.12.2/target-ppc/cpu.h:798: note: expected 'target_ulong *' but argument is of type 'uint32_t *' make[1]: *** [kvm.o] Error 1
make: *** [subdir-ppc64-softmmu] Error 2
thanks,
Signature · 1 line
acrux <[email protected]>
Quoted 25 lines · acrux
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
Quoted 2 lines
/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: 'structkvm_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.
Quoted 19 lines
make[1]: *** [kvm.o] Error 1
make: *** [subdir-ppc-softmmu] Error 2Instead 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[...]
CCppc64-softmmu/pcie_host.oCC 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
Quoted 2 lines
/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: 'structkvm_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
Quoted 56 lines · Alexander Graf
Quoted 25 lines · acrux
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.oQuoted 2 lines
/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: 'structkvm_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.
Quoted 19 lines
make[1]: *** [kvm.o] Error 1
make: *** [subdir-ppc-softmmu] Error 2Instead 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[...]
CCppc64-softmmu/pcie_host.oCC 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.oQuoted 2 lines
/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: 'structkvm_sregs' has no member named 'pvr'
Quoted 3 lines
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.
Signature · 1 line
MST
Quoted 57 lines · Michael S. Tsirkin
Quoted 56 lines · Alexander Graf
Quoted 25 lines · acrux
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.oQuoted 2 lines
/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: 'structkvm_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.
Quoted 21 lines
make[1]: *** [kvm.o] Error 1
make: *** [subdir-ppc-softmmu] Error 2Instead 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: 'structkvm_sregs' has no member named 'pvr'
Quoted 6 lines
Quoted 3 lines
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
On Mon, 25 Jan 2010 10:25:30 +0100
Alexander Graf <[email protected]> wrote:
_omissis__
Quoted 5 lines
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.
_cut__
thanks, it now compiles fine on both ppc32 and ppc64.
I've encuntered two issues under my quick test with CRUX PPC 2.6 (32bit) as host. This was my start command:
$ qemu-system-ppc -m 256 -localtime -hda 25a_qcow.img -cdrom crux-ppc-2.5a.iso -boot d
The apple32 boot kernel on that iso image is linux-2.6.29.4
1) with -M g3beige it boots fine but segfaults loading the system.
2) with -M mac99 it boots but seems to be unable to find a proper IDE device.
No problems, instead, with qemu-system-x86_64 when i tried to install a guest linux x86 os on my ppc32 host.
greetings,
Signature · 2 lines
GNU/Linux on Power Architecture CRUX PPC - http://cruxppc.org/
Am 27.01.2010 um 20:17 schrieb acrux <[email protected]>:
Quoted 16 lines
On Mon, 25 Jan 2010 10:25:30 +0100
Alexander Graf <[email protected]> wrote:_omissis__
Quoted 5 lines
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.
_cut__
thanks, it now compiles fine on both ppc32 and ppc64.
I've encuntered two issues under my quick test with CRUX PPC 2.6 (32bit) as host. This was my start command:
Quoted 6 lines
$ qemu-system-ppc -m 256 -localtime -hda 25a_qcow.img -cdrom crux-ppc-2.5a.iso -boot dThe apple32 boot kernel on that iso image is linux-2.6.29.4
1) with -M g3beige it boots fine but segfaults loading the system.
Please use gdb's backtrace feature to find out why/where it breaks.
Quoted 2 lines
2) with -M mac99 it boots but seems to be unable to find a proper IDE device.
Yeah, that's because your guest kernel doesn't have cmd64x support compiled in.
Alex
On Thu, 28 Jan 2010 00:30:23 +0100
Alexander Graf <[email protected]> wrote:
_omissis__
Quoted 12 lines
Quoted 9 lines
I've encuntered two issues under my quick test with CRUX PPC 2.6 (32bit) as host. This was my start command:
$ qemu-system-ppc -m 256 -localtime -hda 25a_qcow.img -cdrom crux-ppc-2.5a.iso -boot dThe apple32 boot kernel on that iso image is linux-2.6.29.4
1) with -M g3beige it boots fine but segfaults loading the system.
Please use gdb's backtrace feature to find out why/where it breaks.
ok, i'll give a try
Quoted 6 lines
Quoted 2 lines
2) with -M mac99 it boots but seems to be unable to find a proper IDE device.
Yeah, that's because your guest kernel doesn't have cmd64x support compiled in.
it's the same bootkernel as above with cmd64x module builtin therefore it's an unexpected error.
--acrux
Signature · 2 lines
GNU/Linux on Power Architecture CRUX PPC - http://cruxppc.org/