* [Qemu-devel] qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
@ 2011-02-04 13:37 ` Dushyant Bansal
0 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-04 13:25 UTC (permalink / raw)
To: qemu-devel, kvm-ppc
Hi,
I am trying to install kvm on ppc64 system (imac G5). I have built
kernel with kvm module. When I try to install qemu, I am getting this
error
$ ./configure --enable-kvm --target-list="ppc-softmmu"
$ make
[...]
CC slirp/tftp.o
CC libdis/ppc-dis.o
GEN config-target.h
CC ppc-softmmu/arch_init.o
CC ppc-softmmu/cpus.o
GEN ppc-softmmu/hmp-commands.h
GEN ppc-softmmu/qmp-commands.h
CC ppc-softmmu/monitor.o
CC ppc-softmmu/machine.o
CC ppc-softmmu/gdbstub.o
CC ppc-softmmu/balloon.o
CC ppc-softmmu/virtio-blk.o
CC ppc-softmmu/virtio-balloon.o
CC ppc-softmmu/virtio-net.o
CC ppc-softmmu/virtio-serial-bus.o
CC ppc-softmmu/virtio-pci.o
CC ppc-softmmu/vhost_net.o
CC ppc-softmmu/rwhandler.o
CC ppc-softmmu/kvm.o
/home/user/project/qemu/target-ppc/kvm.c: In function kvm_arch_init_vcpu:
/home/user/project/qemu/target-ppc/kvm.c:81: error: struct kvm_sregs has
no member named pvr
make[1]: *** [kvm.o] Error 1
make: *** [subdir-ppc-softmmu] Error 2
qemu-version: 0.13.5, 0.13.0
Other information:
Host os : ubuntu-desktop-10.04-powerpc
$ uname -a
Linux user-desktop 2.6.37-rc6 #2 SMP Fri Feb 4 16:29:05 IST 2011 ppc64
GNU/Linux
$ cat /proc/cpuinfo
processor : 0
cpu : PPC970FX, altivec supported
clock : 2100.000000MHz
revision : 3.1 (pvr 003c 0301)
timebase : 33333333
platform : PowerMac
model : PowerMac12,1
machine : PowerMac12,1
motherboard : PowerMac12,1 MacRISC4 Power Macintosh
detected as : 337 (iMac G5 (iSight))
pmac flags : 00000000
L2 cache : 512K unified
pmac-generation : NewWorld
Thanks,
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* qemu compiling error on ppc64: kvm.c:81: error:
@ 2011-02-04 13:37 ` Dushyant Bansal
0 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-04 13:37 UTC (permalink / raw)
To: qemu-devel, kvm-ppc
Hi,
I am trying to install kvm on ppc64 system (imac G5). I have built
kernel with kvm module. When I try to install qemu, I am getting this
error
$ ./configure --enable-kvm --target-list="ppc-softmmu"
$ make
[...]
CC slirp/tftp.o
CC libdis/ppc-dis.o
GEN config-target.h
CC ppc-softmmu/arch_init.o
CC ppc-softmmu/cpus.o
GEN ppc-softmmu/hmp-commands.h
GEN ppc-softmmu/qmp-commands.h
CC ppc-softmmu/monitor.o
CC ppc-softmmu/machine.o
CC ppc-softmmu/gdbstub.o
CC ppc-softmmu/balloon.o
CC ppc-softmmu/virtio-blk.o
CC ppc-softmmu/virtio-balloon.o
CC ppc-softmmu/virtio-net.o
CC ppc-softmmu/virtio-serial-bus.o
CC ppc-softmmu/virtio-pci.o
CC ppc-softmmu/vhost_net.o
CC ppc-softmmu/rwhandler.o
CC ppc-softmmu/kvm.o
/home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
/home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
no member named ‘pvr’
make[1]: *** [kvm.o] Error 1
make: *** [subdir-ppc-softmmu] Error 2
qemu-version: 0.13.5, 0.13.0
Other information:
Host os : ubuntu-desktop-10.04-powerpc
$ uname -a
Linux user-desktop 2.6.37-rc6 #2 SMP Fri Feb 4 16:29:05 IST 2011 ppc64
GNU/Linux
$ cat /proc/cpuinfo
processor : 0
cpu : PPC970FX, altivec supported
clock : 2100.000000MHz
revision : 3.1 (pvr 003c 0301)
timebase : 33333333
platform : PowerMac
model : PowerMac12,1
machine : PowerMac12,1
motherboard : PowerMac12,1 MacRISC4 Power Macintosh
detected as : 337 (iMac G5 (iSight))
pmac flags : 00000000
L2 cache : 512K unified
pmac-generation : NewWorld
Thanks,
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-04 13:37 ` qemu compiling error on ppc64: kvm.c:81: error: Dushyant Bansal
@ 2011-02-04 14:43 ` Alexander Graf
-1 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-04 14:43 UTC (permalink / raw)
To: Dushyant Bansal; +Cc: qemu-devel, kvm-ppc
On 04.02.2011, at 14:25, "Dushyant Bansal" <cs5070214@cse.iitd.ernet.in> wrote:
> Hi,
> I am trying to install kvm on ppc64 system (imac G5). I have built
> kernel with kvm module. When I try to install qemu, I am getting this
> error
>
> $ ./configure --enable-kvm --target-list="ppc-softmmu"
> $ make
>
> [...]
> CC slirp/tftp.o
> CC libdis/ppc-dis.o
> GEN config-target.h
> CC ppc-softmmu/arch_init.o
> CC ppc-softmmu/cpus.o
> GEN ppc-softmmu/hmp-commands.h
> GEN ppc-softmmu/qmp-commands.h
> CC ppc-softmmu/monitor.o
> CC ppc-softmmu/machine.o
> CC ppc-softmmu/gdbstub.o
> CC ppc-softmmu/balloon.o
> CC ppc-softmmu/virtio-blk.o
> CC ppc-softmmu/virtio-balloon.o
> CC ppc-softmmu/virtio-net.o
> CC ppc-softmmu/virtio-serial-bus.o
> CC ppc-softmmu/virtio-pci.o
> CC ppc-softmmu/vhost_net.o
> CC ppc-softmmu/rwhandler.o
> CC ppc-softmmu/kvm.o
> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
> no member named ‘pvr’
Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please?
Thanks,
Alex
> make[1]: *** [kvm.o] Error 1
> make: *** [subdir-ppc-softmmu] Error 2
>
>
> qemu-version: 0.13.5, 0.13.0
>
> Other information:
> Host os : ubuntu-desktop-10.04-powerpc
>
> $ uname -a
> Linux user-desktop 2.6.37-rc6 #2 SMP Fri Feb 4 16:29:05 IST 2011 ppc64
> GNU/Linux
>
> $ cat /proc/cpuinfo
> processor : 0
> cpu : PPC970FX, altivec supported
> clock : 2100.000000MHz
> revision : 3.1 (pvr 003c 0301)
> timebase : 33333333
> platform : PowerMac
> model : PowerMac12,1
> machine : PowerMac12,1
> motherboard : PowerMac12,1 MacRISC4 Power Macintosh
> detected as : 337 (iMac G5 (iSight))
> pmac flags : 00000000
> L2 cache : 512K unified
> pmac-generation : NewWorld
>
>
> Thanks,
> Dushyant
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:81: error:
@ 2011-02-04 14:43 ` Alexander Graf
0 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-04 14:43 UTC (permalink / raw)
To: Dushyant Bansal; +Cc: qemu-devel, kvm-ppc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 2309 bytes --]
On 04.02.2011, at 14:25, "Dushyant Bansal" <cs5070214@cse.iitd.ernet.in> wrote:
> Hi,
> I am trying to install kvm on ppc64 system (imac G5). I have built
> kernel with kvm module. When I try to install qemu, I am getting this
> error
>
> $ ./configure --enable-kvm --target-list="ppc-softmmu"
> $ make
>
> [...]
> CC slirp/tftp.o
> CC libdis/ppc-dis.o
> GEN config-target.h
> CC ppc-softmmu/arch_init.o
> CC ppc-softmmu/cpus.o
> GEN ppc-softmmu/hmp-commands.h
> GEN ppc-softmmu/qmp-commands.h
> CC ppc-softmmu/monitor.o
> CC ppc-softmmu/machine.o
> CC ppc-softmmu/gdbstub.o
> CC ppc-softmmu/balloon.o
> CC ppc-softmmu/virtio-blk.o
> CC ppc-softmmu/virtio-balloon.o
> CC ppc-softmmu/virtio-net.o
> CC ppc-softmmu/virtio-serial-bus.o
> CC ppc-softmmu/virtio-pci.o
> CC ppc-softmmu/vhost_net.o
> CC ppc-softmmu/rwhandler.o
> CC ppc-softmmu/kvm.o
> /home/user/project/qemu/target-ppc/kvm.c: In function ekvm_arch_init_vcpuf:
> /home/user/project/qemu/target-ppc/kvm.c:81: error: estruct kvm_sregsf has
> no member named epvrf
Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please?
Thanks,
Alex
> make[1]: *** [kvm.o] Error 1
> make: *** [subdir-ppc-softmmu] Error 2
>
>
> qemu-version: 0.13.5, 0.13.0
>
> Other information:
> Host os : ubuntu-desktop-10.04-powerpc
>
> $ uname -a
> Linux user-desktop 2.6.37-rc6 #2 SMP Fri Feb 4 16:29:05 IST 2011 ppc64
> GNU/Linux
>
> $ cat /proc/cpuinfo
> processor : 0
> cpu : PPC970FX, altivec supported
> clock : 2100.000000MHz
> revision : 3.1 (pvr 003c 0301)
> timebase : 33333333
> platform : PowerMac
> model : PowerMac12,1
> machine : PowerMac12,1
> motherboard : PowerMac12,1 MacRISC4 Power Macintosh
> detected as : 337 (iMac G5 (iSight))
> pmac flags : 00000000
> L2 cache : 512K unified
> pmac-generation : NewWorld
>
>
> Thanks,
> Dushyant
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-04 14:43 ` qemu compiling error on ppc64: kvm.c:81: error: Alexander Graf
@ 2011-02-04 18:35 ` Jan Kiszka
-1 siblings, 0 replies; 22+ messages in thread
From: Jan Kiszka @ 2011-02-04 18:35 UTC (permalink / raw)
To: Alexander Graf; +Cc: kvm-ppc, qemu-devel, Dushyant Bansal
On 2011-02-04 15:43, Alexander Graf wrote:
>
> On 04.02.2011, at 14:25, "Dushyant Bansal" <cs5070214@cse.iitd.ernet.in> wrote:
>
>> Hi,
>> I am trying to install kvm on ppc64 system (imac G5). I have built
>> kernel with kvm module. When I try to install qemu, I am getting this
>> error
>>
>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>> $ make
>>
>> [...]
>> CC slirp/tftp.o
>> CC libdis/ppc-dis.o
>> GEN config-target.h
>> CC ppc-softmmu/arch_init.o
>> CC ppc-softmmu/cpus.o
>> GEN ppc-softmmu/hmp-commands.h
>> GEN ppc-softmmu/qmp-commands.h
>> CC ppc-softmmu/monitor.o
>> CC ppc-softmmu/machine.o
>> CC ppc-softmmu/gdbstub.o
>> CC ppc-softmmu/balloon.o
>> CC ppc-softmmu/virtio-blk.o
>> CC ppc-softmmu/virtio-balloon.o
>> CC ppc-softmmu/virtio-net.o
>> CC ppc-softmmu/virtio-serial-bus.o
>> CC ppc-softmmu/virtio-pci.o
>> CC ppc-softmmu/vhost_net.o
>> CC ppc-softmmu/rwhandler.o
>> CC ppc-softmmu/kvm.o
>> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
>> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
>> no member named ‘pvr’
>
> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please?
< 2.6.33. Lacking build-time KVM_CAP check? Or is such a kernel too old
anyway? Then catch it during configure and point the user to... well...
there is no kvm-kmod with kernel header updates for PowerPC. Hmm... ;)
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:
@ 2011-02-04 18:35 ` Jan Kiszka
0 siblings, 0 replies; 22+ messages in thread
From: Jan Kiszka @ 2011-02-04 18:35 UTC (permalink / raw)
To: Alexander Graf; +Cc: kvm-ppc, qemu-devel, Dushyant Bansal
On 2011-02-04 15:43, Alexander Graf wrote:
>
> On 04.02.2011, at 14:25, "Dushyant Bansal" <cs5070214@cse.iitd.ernet.in> wrote:
>
>> Hi,
>> I am trying to install kvm on ppc64 system (imac G5). I have built
>> kernel with kvm module. When I try to install qemu, I am getting this
>> error
>>
>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>> $ make
>>
>> [...]
>> CC slirp/tftp.o
>> CC libdis/ppc-dis.o
>> GEN config-target.h
>> CC ppc-softmmu/arch_init.o
>> CC ppc-softmmu/cpus.o
>> GEN ppc-softmmu/hmp-commands.h
>> GEN ppc-softmmu/qmp-commands.h
>> CC ppc-softmmu/monitor.o
>> CC ppc-softmmu/machine.o
>> CC ppc-softmmu/gdbstub.o
>> CC ppc-softmmu/balloon.o
>> CC ppc-softmmu/virtio-blk.o
>> CC ppc-softmmu/virtio-balloon.o
>> CC ppc-softmmu/virtio-net.o
>> CC ppc-softmmu/virtio-serial-bus.o
>> CC ppc-softmmu/virtio-pci.o
>> CC ppc-softmmu/vhost_net.o
>> CC ppc-softmmu/rwhandler.o
>> CC ppc-softmmu/kvm.o
>> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
>> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
>> no member named ‘pvr’
>
> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please?
< 2.6.33. Lacking build-time KVM_CAP check? Or is such a kernel too old
anyway? Then catch it during configure and point the user to... well...
there is no kvm-kmod with kernel header updates for PowerPC. Hmm... ;)
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-04 14:43 ` qemu compiling error on ppc64: kvm.c:81: error: Alexander Graf
@ 2011-02-04 19:31 ` Dushyant Bansal
-1 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-04 19:19 UTC (permalink / raw)
To: Alexander Graf; +Cc: qemu-devel, kvm-ppc
On Friday 04 February 2011 08:13 PM, Alexander Graf wrote:
> On 04.02.2011, at 14:25, "Dushyant Bansal"<cs5070214@cse.iitd.ernet.in> wrote:
>
>
>> Hi,
>> I am trying to install kvm on ppc64 system (imac G5). I have built
>> kernel with kvm module. When I try to install qemu, I am getting this
>> error
>>
>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>> $ make
>>
>> [...]
>> CC slirp/tftp.o
>> CC libdis/ppc-dis.o
>> GEN config-target.h
>> CC ppc-softmmu/arch_init.o
>> CC ppc-softmmu/cpus.o
>> GEN ppc-softmmu/hmp-commands.h
>> GEN ppc-softmmu/qmp-commands.h
>> CC ppc-softmmu/monitor.o
>> CC ppc-softmmu/machine.o
>> CC ppc-softmmu/gdbstub.o
>> CC ppc-softmmu/balloon.o
>> CC ppc-softmmu/virtio-blk.o
>> CC ppc-softmmu/virtio-balloon.o
>> CC ppc-softmmu/virtio-net.o
>> CC ppc-softmmu/virtio-serial-bus.o
>> CC ppc-softmmu/virtio-pci.o
>> CC ppc-softmmu/vhost_net.o
>> CC ppc-softmmu/rwhandler.o
>> CC ppc-softmmu/kvm.o
>> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
>> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
>> no member named ‘pvr’
>>
> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>
Yes, kernel headers version is 2.6.32. For the time being, I copied some
of the header files from kvm/arch/powerpc/include/asm/ to kernel headers
and qemu build was successful.
Thanks a lot.
--
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:
@ 2011-02-04 19:31 ` Dushyant Bansal
0 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-04 19:31 UTC (permalink / raw)
To: Alexander Graf; +Cc: qemu-devel, kvm-ppc
On Friday 04 February 2011 08:13 PM, Alexander Graf wrote:
> On 04.02.2011, at 14:25, "Dushyant Bansal"<cs5070214@cse.iitd.ernet.in> wrote:
>
>
>> Hi,
>> I am trying to install kvm on ppc64 system (imac G5). I have built
>> kernel with kvm module. When I try to install qemu, I am getting this
>> error
>>
>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>> $ make
>>
>> [...]
>> CC slirp/tftp.o
>> CC libdis/ppc-dis.o
>> GEN config-target.h
>> CC ppc-softmmu/arch_init.o
>> CC ppc-softmmu/cpus.o
>> GEN ppc-softmmu/hmp-commands.h
>> GEN ppc-softmmu/qmp-commands.h
>> CC ppc-softmmu/monitor.o
>> CC ppc-softmmu/machine.o
>> CC ppc-softmmu/gdbstub.o
>> CC ppc-softmmu/balloon.o
>> CC ppc-softmmu/virtio-blk.o
>> CC ppc-softmmu/virtio-balloon.o
>> CC ppc-softmmu/virtio-net.o
>> CC ppc-softmmu/virtio-serial-bus.o
>> CC ppc-softmmu/virtio-pci.o
>> CC ppc-softmmu/vhost_net.o
>> CC ppc-softmmu/rwhandler.o
>> CC ppc-softmmu/kvm.o
>> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
>> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
>> no member named ‘pvr’
>>
> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>
Yes, kernel headers version is 2.6.32. For the time being, I copied some
of the header files from kvm/arch/powerpc/include/asm/ to kernel headers
and qemu build was successful.
Thanks a lot.
--
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-04 18:35 ` qemu compiling error on ppc64: kvm.c: Jan Kiszka
@ 2011-02-04 20:03 ` Alexander Graf
-1 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-04 20:03 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-ppc, qemu-devel, Dushyant Bansal
On 04.02.2011, at 19:35, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> On 2011-02-04 15:43, Alexander Graf wrote:
>>
>> On 04.02.2011, at 14:25, "Dushyant Bansal" <cs5070214@cse.iitd.ernet.in> wrote:
>>
>>> Hi,
>>> I am trying to install kvm on ppc64 system (imac G5). I have built
>>> kernel with kvm module. When I try to install qemu, I am getting this
>>> error
>>>
>>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>>> $ make
>>>
>>> [...]
>>> CC slirp/tftp.o
>>> CC libdis/ppc-dis.o
>>> GEN config-target.h
>>> CC ppc-softmmu/arch_init.o
>>> CC ppc-softmmu/cpus.o
>>> GEN ppc-softmmu/hmp-commands.h
>>> GEN ppc-softmmu/qmp-commands.h
>>> CC ppc-softmmu/monitor.o
>>> CC ppc-softmmu/machine.o
>>> CC ppc-softmmu/gdbstub.o
>>> CC ppc-softmmu/balloon.o
>>> CC ppc-softmmu/virtio-blk.o
>>> CC ppc-softmmu/virtio-balloon.o
>>> CC ppc-softmmu/virtio-net.o
>>> CC ppc-softmmu/virtio-serial-bus.o
>>> CC ppc-softmmu/virtio-pci.o
>>> CC ppc-softmmu/vhost_net.o
>>> CC ppc-softmmu/rwhandler.o
>>> CC ppc-softmmu/kvm.o
>>> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
>>> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
>>> no member named ‘pvr’
>>
>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please?
>
> < 2.6.33. Lacking build-time KVM_CAP check? Or is such a kernel too old
> anyway? Then catch it during configure and point the user to... well...
> there is no kvm-kmod with kernel header updates for PowerPC. Hmm... ;)
Yes, certainly lacking a configure time dependency :).
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT T DE IT 1
> Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:81: error:
@ 2011-02-04 20:03 ` Alexander Graf
0 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-04 20:03 UTC (permalink / raw)
To: Jan Kiszka; +Cc: kvm-ppc, qemu-devel, Dushyant Bansal
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 1876 bytes --]
On 04.02.2011, at 19:35, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> On 2011-02-04 15:43, Alexander Graf wrote:
>>
>> On 04.02.2011, at 14:25, "Dushyant Bansal" <cs5070214@cse.iitd.ernet.in> wrote:
>>
>>> Hi,
>>> I am trying to install kvm on ppc64 system (imac G5). I have built
>>> kernel with kvm module. When I try to install qemu, I am getting this
>>> error
>>>
>>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>>> $ make
>>>
>>> [...]
>>> CC slirp/tftp.o
>>> CC libdis/ppc-dis.o
>>> GEN config-target.h
>>> CC ppc-softmmu/arch_init.o
>>> CC ppc-softmmu/cpus.o
>>> GEN ppc-softmmu/hmp-commands.h
>>> GEN ppc-softmmu/qmp-commands.h
>>> CC ppc-softmmu/monitor.o
>>> CC ppc-softmmu/machine.o
>>> CC ppc-softmmu/gdbstub.o
>>> CC ppc-softmmu/balloon.o
>>> CC ppc-softmmu/virtio-blk.o
>>> CC ppc-softmmu/virtio-balloon.o
>>> CC ppc-softmmu/virtio-net.o
>>> CC ppc-softmmu/virtio-serial-bus.o
>>> CC ppc-softmmu/virtio-pci.o
>>> CC ppc-softmmu/vhost_net.o
>>> CC ppc-softmmu/rwhandler.o
>>> CC ppc-softmmu/kvm.o
>>> /home/user/project/qemu/target-ppc/kvm.c: In function ekvm_arch_init_vcpuf:
>>> /home/user/project/qemu/target-ppc/kvm.c:81: error: estruct kvm_sregsf has
>>> no member named epvrf
>>
>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please?
>
> < 2.6.33. Lacking build-time KVM_CAP check? Or is such a kernel too old
> anyway? Then catch it during configure and point the user to... well...
> there is no kvm-kmod with kernel header updates for PowerPC. Hmm... ;)
Yes, certainly lacking a configure time dependency :).
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT T DE IT 1
> Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-04 19:31 ` qemu compiling error on ppc64: kvm.c: Dushyant Bansal
@ 2011-02-04 20:04 ` Alexander Graf
-1 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-04 20:04 UTC (permalink / raw)
To: Dushyant Bansal; +Cc: qemu-devel, kvm-ppc
On 04.02.2011, at 20:19, Dushyant Bansal <cs5070214@cse.iitd.ac.in> wrote:
> On Friday 04 February 2011 08:13 PM, Alexander Graf wrote:
>> On 04.02.2011, at 14:25, "Dushyant Bansal"<cs5070214@cse.iitd.ernet.in> wrote:
>>
>>
>>> Hi,
>>> I am trying to install kvm on ppc64 system (imac G5). I have built
>>> kernel with kvm module. When I try to install qemu, I am getting this
>>> error
>>>
>>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>>> $ make
>>>
>>> [...]
>>> CC slirp/tftp.o
>>> CC libdis/ppc-dis.o
>>> GEN config-target.h
>>> CC ppc-softmmu/arch_init.o
>>> CC ppc-softmmu/cpus.o
>>> GEN ppc-softmmu/hmp-commands.h
>>> GEN ppc-softmmu/qmp-commands.h
>>> CC ppc-softmmu/monitor.o
>>> CC ppc-softmmu/machine.o
>>> CC ppc-softmmu/gdbstub.o
>>> CC ppc-softmmu/balloon.o
>>> CC ppc-softmmu/virtio-blk.o
>>> CC ppc-softmmu/virtio-balloon.o
>>> CC ppc-softmmu/virtio-net.o
>>> CC ppc-softmmu/virtio-serial-bus.o
>>> CC ppc-softmmu/virtio-pci.o
>>> CC ppc-softmmu/vhost_net.o
>>> CC ppc-softmmu/rwhandler.o
>>> CC ppc-softmmu/kvm.o
>>> /home/user/project/qemu/target-ppc/kvm.c: In function ‘kvm_arch_init_vcpu’:
>>> /home/user/project/qemu/target-ppc/kvm.c:81: error: ‘struct kvm_sregs’ has
>>> no member named ‘pvr’
>>>
>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>
> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
> Thanks a lot.
Awesome! I'm eager to hear how well it works for you :)
Alex
>
> --
> Dushyant
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:81: error:
@ 2011-02-04 20:04 ` Alexander Graf
0 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-04 20:04 UTC (permalink / raw)
To: Dushyant Bansal; +Cc: qemu-devel, kvm-ppc
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 2015 bytes --]
On 04.02.2011, at 20:19, Dushyant Bansal <cs5070214@cse.iitd.ac.in> wrote:
> On Friday 04 February 2011 08:13 PM, Alexander Graf wrote:
>> On 04.02.2011, at 14:25, "Dushyant Bansal"<cs5070214@cse.iitd.ernet.in> wrote:
>>
>>
>>> Hi,
>>> I am trying to install kvm on ppc64 system (imac G5). I have built
>>> kernel with kvm module. When I try to install qemu, I am getting this
>>> error
>>>
>>> $ ./configure --enable-kvm --target-list="ppc-softmmu"
>>> $ make
>>>
>>> [...]
>>> CC slirp/tftp.o
>>> CC libdis/ppc-dis.o
>>> GEN config-target.h
>>> CC ppc-softmmu/arch_init.o
>>> CC ppc-softmmu/cpus.o
>>> GEN ppc-softmmu/hmp-commands.h
>>> GEN ppc-softmmu/qmp-commands.h
>>> CC ppc-softmmu/monitor.o
>>> CC ppc-softmmu/machine.o
>>> CC ppc-softmmu/gdbstub.o
>>> CC ppc-softmmu/balloon.o
>>> CC ppc-softmmu/virtio-blk.o
>>> CC ppc-softmmu/virtio-balloon.o
>>> CC ppc-softmmu/virtio-net.o
>>> CC ppc-softmmu/virtio-serial-bus.o
>>> CC ppc-softmmu/virtio-pci.o
>>> CC ppc-softmmu/vhost_net.o
>>> CC ppc-softmmu/rwhandler.o
>>> CC ppc-softmmu/kvm.o
>>> /home/user/project/qemu/target-ppc/kvm.c: In function ekvm_arch_init_vcpuf:
>>> /home/user/project/qemu/target-ppc/kvm.c:81: error: estruct kvm_sregsf has
>>> no member named epvrf
>>>
>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>
> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
> Thanks a lot.
Awesome! I'm eager to hear how well it works for you :)
Alex
>
> --
> Dushyant
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-04 20:04 ` qemu compiling error on ppc64: kvm.c:81: error: Alexander Graf
@ 2011-02-15 14:33 ` Dushyant Bansal
-1 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-15 14:21 UTC (permalink / raw)
To: Alexander Graf; +Cc: qemu-devel, kvm-ppc
>>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>>
>>>
>> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
>> Thanks a lot.
>>
> Awesome! I'm eager to hear how well it works for you :)
I collected some performance stats using kvm_stat. To get more
information about exit counts of individual instructions, I configured
CFLAGS_emulate.o with DDEBUG flag.
Now, I can see output of "pr_debug("Emulating opcode %d / %d\n",
get_op(inst), get_xop(inst));" instruction in kernel logs.
I have two queries:
1. The count of "Emulating opcode...." statement in /var/log/kern.log (3
million) is coming out to be much less than emulated_inst_exits (22
million) using kvm_stat.
2. How to configure makefiles to get output of printk statements inside
kvm/arch/powerpc/kvm/trace.h
Also, every time I start kvm, I get this error "KVM: Couldn't find level
irq capability. Expect the VM to stall at times". After some time, the
VM just hangs. I traced this output to qemu/target-ppc/kvm.c Is there
any way to avoid it.
Thanks,
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr
2011-02-15 14:33 ` qemu compiling error on ppc64: kvm.c: Dushyant Bansal
@ 2011-02-15 14:33 ` Alexander Graf
-1 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-15 14:33 UTC (permalink / raw)
To: Dushyant Bansal
Cc: qemu-devel@nongnu.org List, <kvm-ppc@vger.kernel.org>, Avi Kivity
On 15.02.2011, at 15:21, Dushyant Bansal wrote:
>
>>>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>>>
>>>>
>>> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
>>> Thanks a lot.
>>>
>> Awesome! I'm eager to hear how well it works for you :)
>
> I collected some performance stats using kvm_stat. To get more information about exit counts of individual instructions, I configured CFLAGS_emulate.o with DDEBUG flag.
> Now, I can see output of "pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst));" instruction in kernel logs.
> I have two queries:
>
> 1. The count of "Emulating opcode...." statement in /var/log/kern.log (3 million) is coming out to be much less than emulated_inst_exits (22 million) using kvm_stat.
The kernel log ring buffer is probably faster filled than read :).
> 2. How to configure makefiles to get output of printk statements inside kvm/arch/powerpc/kvm/trace.h
Better don't make them printks - just use the tracing framework. I'd write up a small howto here myself, but I'm pretty much on the jump to my plane for vacation. Avi, could you please guide him a bit on how to get data out of tracepoints?
> Also, every time I start kvm, I get this error "KVM: Couldn't find level irq capability. Expect the VM to stall at times". After some time, the VM just hangs. I traced this output to qemu/target-ppc/kvm.c Is there any way to avoid it.
This means exactly what it means. There are two possible causes:
1) Your kernel is too old and doesn't support the capability
2) Qemu was compiled with kernel headers that don't know the capability yet
If it's 2, just copy some of the kvm*.h files from your kernel source over to /usr/include/linux or /usr/include/asm-powerpc and fix them up to compile (remove __user).
Alex
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:
@ 2011-02-15 14:33 ` Alexander Graf
0 siblings, 0 replies; 22+ messages in thread
From: Alexander Graf @ 2011-02-15 14:33 UTC (permalink / raw)
To: Dushyant Bansal
Cc: qemu-devel@nongnu.org List, <kvm-ppc@vger.kernel.org>, Avi Kivity
On 15.02.2011, at 15:21, Dushyant Bansal wrote:
>
>>>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>>>
>>>>
>>> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
>>> Thanks a lot.
>>>
>> Awesome! I'm eager to hear how well it works for you :)
>
> I collected some performance stats using kvm_stat. To get more information about exit counts of individual instructions, I configured CFLAGS_emulate.o with DDEBUG flag.
> Now, I can see output of "pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst));" instruction in kernel logs.
> I have two queries:
>
> 1. The count of "Emulating opcode...." statement in /var/log/kern.log (3 million) is coming out to be much less than emulated_inst_exits (22 million) using kvm_stat.
The kernel log ring buffer is probably faster filled than read :).
> 2. How to configure makefiles to get output of printk statements inside kvm/arch/powerpc/kvm/trace.h
Better don't make them printks - just use the tracing framework. I'd write up a small howto here myself, but I'm pretty much on the jump to my plane for vacation. Avi, could you please guide him a bit on how to get data out of tracepoints?
> Also, every time I start kvm, I get this error "KVM: Couldn't find level irq capability. Expect the VM to stall at times". After some time, the VM just hangs. I traced this output to qemu/target-ppc/kvm.c Is there any way to avoid it.
This means exactly what it means. There are two possible causes:
1) Your kernel is too old and doesn't support the capability
2) Qemu was compiled with kernel headers that don't know the capability yet
If it's 2, just copy some of the kvm*.h files from your kernel source over to /usr/include/linux or /usr/include/asm-powerpc and fix them up to compile (remove __user).
Alex
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:
@ 2011-02-15 14:33 ` Dushyant Bansal
0 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-15 14:33 UTC (permalink / raw)
To: Alexander Graf; +Cc: qemu-devel, kvm-ppc
>>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>>
>>>
>> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
>> Thanks a lot.
>>
> Awesome! I'm eager to hear how well it works for you :)
I collected some performance stats using kvm_stat. To get more
information about exit counts of individual instructions, I configured
CFLAGS_emulate.o with DDEBUG flag.
Now, I can see output of "pr_debug("Emulating opcode %d / %d\n",
get_op(inst), get_xop(inst));" instruction in kernel logs.
I have two queries:
1. The count of "Emulating opcode...." statement in /var/log/kern.log (3
million) is coming out to be much less than emulated_inst_exits (22
million) using kvm_stat.
2. How to configure makefiles to get output of printk statements inside
kvm/arch/powerpc/kvm/trace.h
Also, every time I start kvm, I get this error "KVM: Couldn't find level
irq capability. Expect the VM to stall at times". After some time, the
VM just hangs. I traced this output to qemu/target-ppc/kvm.c Is there
any way to avoid it.
Thanks,
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr'
2011-02-15 14:33 ` qemu compiling error on ppc64: kvm.c: Alexander Graf
@ 2011-02-15 16:11 ` Dushyant Bansal
-1 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-15 15:59 UTC (permalink / raw)
To: Alexander Graf
Cc: qemu-devel@nongnu.org List, <kvm-ppc@vger.kernel.org>, Avi Kivity
On Tuesday 15 February 2011 08:03 PM, Alexander Graf wrote:
> On 15.02.2011, at 15:21, Dushyant Bansal wrote:
>
>
>>
>>>>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>>>>
>>>>>
>>>>>
>>>> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
>>>> Thanks a lot.
>>>>
>>>>
>>> Awesome! I'm eager to hear how well it works for you :)
>>>
>> I collected some performance stats using kvm_stat. To get more information about exit counts of individual instructions, I configured CFLAGS_emulate.o with DDEBUG flag.
>> Now, I can see output of "pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst));" instruction in kernel logs.
>> I have two queries:
>>
>> 1. The count of "Emulating opcode...." statement in /var/log/kern.log (3 million) is coming out to be much less than emulated_inst_exits (22 million) using kvm_stat.
>>
> The kernel log ring buffer is probably faster filled than read :).
>
>
>> 2. How to configure makefiles to get output of printk statements inside kvm/arch/powerpc/kvm/trace.h
>>
> Better don't make them printks - just use the tracing framework. I'd write up a small howto here myself, but I'm pretty much on the jump to my plane for vacation. Avi, could you please guide him a bit on how to get data out of tracepoints?
>
Thanks for the quick reply :)
I have added some more trace parameters in the tracing framework and
currently, it is working fine.
1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h)
2. Add corresponding entry in "struct kvm_stats_debugfs_item
debugfs_entries[]" (book3s.c)
3. Increment or Decrement that field where ever necessary.
I can see stats for the new parameter in kvm_stat output. I guess, this
approach is okay.
> This means exactly what it means. There are two possible causes:
>
> 1) Your kernel is too old and doesn't support the capability
> 2) Qemu was compiled with kernel headers that don't know the capability yet
>
> If it's 2, just copy some of the kvm*.h files from your kernel source over to /usr/include/linux or /usr/include/asm-powerpc and fix them up to compile (remove __user).
>
>
I think, its reason 2. I'll try this.
Thanks,
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs'
@ 2011-02-15 16:11 ` Dushyant Bansal
0 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-15 16:11 UTC (permalink / raw)
To: Alexander Graf
Cc: qemu-devel@nongnu.org List, <kvm-ppc@vger.kernel.org>, Avi Kivity
On Tuesday 15 February 2011 08:03 PM, Alexander Graf wrote:
> On 15.02.2011, at 15:21, Dushyant Bansal wrote:
>
>
>>
>>>>> Hrm. This means that your kernel headers in /usr/include/linux are too old. Can you try and find out which kernel version they are from please
>>>>>
>>>>>
>>>>>
>>>> Yes, kernel headers version is 2.6.32. For the time being, I copied some of the header files from kvm/arch/powerpc/include/asm/ to kernel headers and qemu build was successful.
>>>> Thanks a lot.
>>>>
>>>>
>>> Awesome! I'm eager to hear how well it works for you :)
>>>
>> I collected some performance stats using kvm_stat. To get more information about exit counts of individual instructions, I configured CFLAGS_emulate.o with DDEBUG flag.
>> Now, I can see output of "pr_debug("Emulating opcode %d / %d\n", get_op(inst), get_xop(inst));" instruction in kernel logs.
>> I have two queries:
>>
>> 1. The count of "Emulating opcode...." statement in /var/log/kern.log (3 million) is coming out to be much less than emulated_inst_exits (22 million) using kvm_stat.
>>
> The kernel log ring buffer is probably faster filled than read :).
>
>
>> 2. How to configure makefiles to get output of printk statements inside kvm/arch/powerpc/kvm/trace.h
>>
> Better don't make them printks - just use the tracing framework. I'd write up a small howto here myself, but I'm pretty much on the jump to my plane for vacation. Avi, could you please guide him a bit on how to get data out of tracepoints?
>
Thanks for the quick reply :)
I have added some more trace parameters in the tracing framework and
currently, it is working fine.
1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h)
2. Add corresponding entry in "struct kvm_stats_debugfs_item
debugfs_entries[]" (book3s.c)
3. Increment or Decrement that field where ever necessary.
I can see stats for the new parameter in kvm_stat output. I guess, this
approach is okay.
> This means exactly what it means. There are two possible causes:
>
> 1) Your kernel is too old and doesn't support the capability
> 2) Qemu was compiled with kernel headers that don't know the capability yet
>
> If it's 2, just copy some of the kvm*.h files from your kernel source over to /usr/include/linux or /usr/include/asm-powerpc and fix them up to compile (remove __user).
>
>
I think, its reason 2. I'll try this.
Thanks,
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr'
2011-02-15 16:11 ` qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' Dushyant Bansal
@ 2011-02-16 9:09 ` Avi Kivity
-1 siblings, 0 replies; 22+ messages in thread
From: Avi Kivity @ 2011-02-16 9:09 UTC (permalink / raw)
To: Dushyant Bansal
Cc: Alexander Graf, <kvm-ppc@vger.kernel.org>,
qemu-devel@nongnu.org List
On 02/15/2011 05:59 PM, Dushyant Bansal wrote:
>>> 2. How to configure makefiles to get output of printk statements
>>> inside kvm/arch/powerpc/kvm/trace.h
>> Better don't make them printks - just use the tracing framework. I'd
>> write up a small howto here myself, but I'm pretty much on the jump
>> to my plane for vacation. Avi, could you please guide him a bit on
>> how to get data out of tracepoints?
> Thanks for the quick reply :)
> I have added some more trace parameters in the tracing framework and
> currently, it is working fine.
> 1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h)
> 2. Add corresponding entry in "struct kvm_stats_debugfs_item
> debugfs_entries[]" (book3s.c)
> 3. Increment or Decrement that field where ever necessary.
Those aren't tracepoints; they're deprecated debug statistics.
For tracepoints, see
include/trace/events/kvm.h (general kvm tracepoints)
arch/powerpc/kvm/trace.h (ppc specific tracepoints)
arch/powerpc/kvm/book3s_mmu_hpte.c (examples of use, look for
trace_kvm_*)
Documentation/trace/tracepoints.txt (documentation, likely outdated)
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs'
@ 2011-02-16 9:09 ` Avi Kivity
0 siblings, 0 replies; 22+ messages in thread
From: Avi Kivity @ 2011-02-16 9:09 UTC (permalink / raw)
To: Dushyant Bansal
Cc: Alexander Graf, <kvm-ppc@vger.kernel.org>,
qemu-devel@nongnu.org List
On 02/15/2011 05:59 PM, Dushyant Bansal wrote:
>>> 2. How to configure makefiles to get output of printk statements
>>> inside kvm/arch/powerpc/kvm/trace.h
>> Better don't make them printks - just use the tracing framework. I'd
>> write up a small howto here myself, but I'm pretty much on the jump
>> to my plane for vacation. Avi, could you please guide him a bit on
>> how to get data out of tracepoints?
> Thanks for the quick reply :)
> I have added some more trace parameters in the tracing framework and
> currently, it is working fine.
> 1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h)
> 2. Add corresponding entry in "struct kvm_stats_debugfs_item
> debugfs_entries[]" (book3s.c)
> 3. Increment or Decrement that field where ever necessary.
Those aren't tracepoints; they're deprecated debug statistics.
For tracepoints, see
include/trace/events/kvm.h (general kvm tracepoints)
arch/powerpc/kvm/trace.h (ppc specific tracepoints)
arch/powerpc/kvm/book3s_mmu_hpte.c (examples of use, look for
trace_kvm_*)
Documentation/trace/tracepoints.txt (documentation, likely outdated)
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr'
2011-02-16 9:09 ` qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' Avi Kivity
@ 2011-02-25 16:29 ` Dushyant Bansal
-1 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-25 16:17 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel@nongnu.org List, kvm-ppc
On Wednesday 16 February 2011 02:39 PM, Avi Kivity wrote:
> On 02/15/2011 05:59 PM, Dushyant Bansal wrote:
>>>> 2. How to configure makefiles to get output of printk statements
>>>> inside kvm/arch/powerpc/kvm/trace.h
>>> Better don't make them printks - just use the tracing framework. I'd
>>> write up a small howto here myself, but I'm pretty much on the jump
>>> to my plane for vacation. Avi, could you please guide him a bit on
>>> how to get data out of tracepoints?
>> Thanks for the quick reply :)
>> I have added some more trace parameters in the tracing framework and
>> currently, it is working fine.
>> 1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h)
>> 2. Add corresponding entry in "struct kvm_stats_debugfs_item
>> debugfs_entries[]" (book3s.c)
>> 3. Increment or Decrement that field where ever necessary.
>
> Those aren't tracepoints; they're deprecated debug statistics.
>
> For tracepoints, see
>
> include/trace/events/kvm.h (general kvm tracepoints)
> arch/powerpc/kvm/trace.h (ppc specific tracepoints)
> arch/powerpc/kvm/book3s_mmu_hpte.c (examples of use, look for
> trace_kvm_*)
> Documentation/trace/tracepoints.txt (documentation, likely outdated)
>
Thanks a lot for the information.
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs'
@ 2011-02-25 16:29 ` Dushyant Bansal
0 siblings, 0 replies; 22+ messages in thread
From: Dushyant Bansal @ 2011-02-25 16:29 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel@nongnu.org List, kvm-ppc
On Wednesday 16 February 2011 02:39 PM, Avi Kivity wrote:
> On 02/15/2011 05:59 PM, Dushyant Bansal wrote:
>>>> 2. How to configure makefiles to get output of printk statements
>>>> inside kvm/arch/powerpc/kvm/trace.h
>>> Better don't make them printks - just use the tracing framework. I'd
>>> write up a small howto here myself, but I'm pretty much on the jump
>>> to my plane for vacation. Avi, could you please guide him a bit on
>>> how to get data out of tracepoints?
>> Thanks for the quick reply :)
>> I have added some more trace parameters in the tracing framework and
>> currently, it is working fine.
>> 1. Add new field in "struct kvm_vcpu_stat" (kvm_host.h)
>> 2. Add corresponding entry in "struct kvm_stats_debugfs_item
>> debugfs_entries[]" (book3s.c)
>> 3. Increment or Decrement that field where ever necessary.
>
> Those aren't tracepoints; they're deprecated debug statistics.
>
> For tracepoints, see
>
> include/trace/events/kvm.h (general kvm tracepoints)
> arch/powerpc/kvm/trace.h (ppc specific tracepoints)
> arch/powerpc/kvm/book3s_mmu_hpte.c (examples of use, look for
> trace_kvm_*)
> Documentation/trace/tracepoints.txt (documentation, likely outdated)
>
Thanks a lot for the information.
Dushyant
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2011-02-25 16:29 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-04 13:25 [Qemu-devel] qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Dushyant Bansal
2011-02-04 13:37 ` qemu compiling error on ppc64: kvm.c:81: error: Dushyant Bansal
2011-02-04 14:43 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Alexander Graf
2011-02-04 14:43 ` qemu compiling error on ppc64: kvm.c:81: error: Alexander Graf
2011-02-04 18:35 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Jan Kiszka
2011-02-04 18:35 ` qemu compiling error on ppc64: kvm.c: Jan Kiszka
2011-02-04 20:03 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Alexander Graf
2011-02-04 20:03 ` qemu compiling error on ppc64: kvm.c:81: error: Alexander Graf
2011-02-04 19:19 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Dushyant Bansal
2011-02-04 19:31 ` qemu compiling error on ppc64: kvm.c: Dushyant Bansal
2011-02-04 20:04 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Alexander Graf
2011-02-04 20:04 ` qemu compiling error on ppc64: kvm.c:81: error: Alexander Graf
2011-02-15 14:21 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Dushyant Bansal
2011-02-15 14:33 ` qemu compiling error on ppc64: kvm.c: Dushyant Bansal
2011-02-15 14:33 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: struct kvm_sregs has no member named pvr Alexander Graf
2011-02-15 14:33 ` qemu compiling error on ppc64: kvm.c: Alexander Graf
2011-02-15 15:59 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr' Dushyant Bansal
2011-02-15 16:11 ` qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' Dushyant Bansal
2011-02-16 9:09 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr' Avi Kivity
2011-02-16 9:09 ` qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' Avi Kivity
2011-02-25 16:17 ` [Qemu-devel] Re: qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' has no member named 'pvr' Dushyant Bansal
2011-02-25 16:29 ` qemu compiling error on ppc64: kvm.c:81: error: 'struct kvm_sregs' Dushyant Bansal
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.