From: "Michael S. Tsirkin" <mst@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: acrux <acrux_it@libero.it>, qemu-devel@nongnu.org
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 12:28:18 +0200 [thread overview]
Message-ID: <20100125102818.GA9182@redhat.com> (raw)
In-Reply-To: <E5E3E1B3-7287-40F3-B819-5909F82320BB@suse.de>
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
next prev parent reply other threads:[~2010-01-25 10:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Michael S. Tsirkin [this message]
2010-01-25 10:33 ` [Qemu-devel] " Alexander Graf
2010-01-27 19:17 ` [Qemu-devel] " acrux
2010-01-27 23:30 ` Alexander Graf
2010-01-28 0:28 ` acrux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100125102818.GA9182@redhat.com \
--to=mst@redhat.com \
--cc=acrux_it@libero.it \
--cc=agraf@suse.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.