qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
@ 2010-01-24 21:16 acrux
  2010-01-25  9:25 ` Alexander Graf
  0 siblings, 1 reply; 7+ messages in thread
From: acrux @ 2010-01-24 21:16 UTC (permalink / raw)
  To: qemu-devel

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,
-- 
acrux <acrux_it@libero.it>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
  2010-01-24 21:16 [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr' acrux
@ 2010-01-25  9:25 ` Alexander Graf
  2010-01-25 10:28   ` [Qemu-devel] " Michael S. Tsirkin
  2010-01-27 19:17   ` [Qemu-devel] " acrux
  0 siblings, 2 replies; 7+ messages in thread
From: Alexander Graf @ 2010-01-25  9:25 UTC (permalink / raw)
  To: acrux; +Cc: qemu-devel


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Re: qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
  2010-01-25  9:25 ` Alexander Graf
@ 2010-01-25 10:28   ` Michael S. Tsirkin
  2010-01-25 10:33     ` Alexander Graf
  2010-01-27 19:17   ` [Qemu-devel] " acrux
  1 sibling, 1 reply; 7+ messages in thread
From: Michael S. Tsirkin @ 2010-01-25 10:28 UTC (permalink / raw)
  To: Alexander Graf; +Cc: acrux, qemu-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Qemu-devel] Re: qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
  2010-01-25 10:28   ` [Qemu-devel] " Michael S. Tsirkin
@ 2010-01-25 10:33     ` Alexander Graf
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Graf @ 2010-01-25 10:33 UTC (permalink / raw)
  To: Michael S.Tsirkin; +Cc: acrux, qemu-devel


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
  2010-01-25  9:25 ` Alexander Graf
  2010-01-25 10:28   ` [Qemu-devel] " Michael S. Tsirkin
@ 2010-01-27 19:17   ` acrux
  2010-01-27 23:30     ` Alexander Graf
  1 sibling, 1 reply; 7+ messages in thread
From: acrux @ 2010-01-27 19:17 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 950 bytes --]

On Mon, 25 Jan 2010 10:25:30 +0100
Alexander Graf <agraf@suse.de> wrote:

_omissis__
> 
> 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,
-- 
GNU/Linux on Power Architecture
CRUX PPC - http://cruxppc.org/


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
  2010-01-27 19:17   ` [Qemu-devel] " acrux
@ 2010-01-27 23:30     ` Alexander Graf
  2010-01-28  0:28       ` acrux
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Graf @ 2010-01-27 23:30 UTC (permalink / raw)
  To: acrux; +Cc: qemu-devel@nongnu.org


Am 27.01.2010 um 20:17 schrieb acrux <acrux_it@libero.it>:

> On Mon, 25 Jan 2010 10:25:30 +0100
> Alexander Graf <agraf@suse.de> wrote:
>
> _omissis__
>>
>> 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.

Please use gdb's backtrace feature to find out why/where it breaks.

> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr'
  2010-01-27 23:30     ` Alexander Graf
@ 2010-01-28  0:28       ` acrux
  0 siblings, 0 replies; 7+ messages in thread
From: acrux @ 2010-01-28  0:28 UTC (permalink / raw)
  To: Alexander Graf; +Cc: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

On Thu, 28 Jan 2010 00:30:23 +0100
Alexander Graf <agraf@suse.de> wrote:

_omissis__
> > 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.
> 
> Please use gdb's backtrace feature to find out why/where it breaks.
> 

ok, i'll give a try

> > 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
-- 
GNU/Linux on Power Architecture
CRUX PPC - http://cruxppc.org/


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-28  1:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-24 21:16 [Qemu-devel] qemu-0.12.2 compiling error (on ppc32/ppc64): kvm.c:50: error: 'struct kvm_sregs' has no member named 'pvr' acrux
2010-01-25  9:25 ` Alexander Graf
2010-01-25 10:28   ` [Qemu-devel] " Michael S. Tsirkin
2010-01-25 10:33     ` Alexander Graf
2010-01-27 19:17   ` [Qemu-devel] " acrux
2010-01-27 23:30     ` Alexander Graf
2010-01-28  0:28       ` acrux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).