I am emulating powerpc using qemu-system-ppc on top of x86, and running debian-lenny-ppc with it. I want to install kvm inside that debian. I have learned that the kvm and qemu-kvm packages are not available for the powerpc architecture.
I have found two packages (kvm-source and [Edit1]qemu) and installed it, but I don't know how to proceed with it further. How do I install kvm on powerpc? Do I need to cross-compile it as well, as given on http://www.linux-kvm.org/page/PowerPC_Host_Userspace?
Approach1: I downloaded qemu-kvm source code (http://sourceforge.net/projects/kvm/files/qemu-kvm/0.13.0/qemu-kvm-0.13.0.tar.gz/download) , configured
#./configure --target-list="ppc-softmmu" #make
But I am getting this error:
CC ppc-softmmu/virtio-pci.o ~/qemu-kvm-0.13.0/hw/virtio-pci.c: In function 'virtio_pci_mask_notifier': ~/qemu-kvm-0.13.0/hw/virtio-pci.c:436: error: invalid use of undefined type 'struct kvm_irq_routing_entry' ~/qemu-kvm-0.13.0/hw/virtio-pci.c:436: error: dereferencing pointer to incomplete type