From: Dushyant Bansal <cs5070214@cse.iitd.ac.in>
To: kvm-ppc@vger.kernel.org
Subject: Re: error: building kvm for powerpc using cross compiler on x86
Date: Fri, 07 Jan 2011 13:50:29 +0000 [thread overview]
Message-ID: <4D271755.80604@cse.iitd.ac.in> (raw)
In-Reply-To: <4D260C69.7000605@cse.iitd.ac.in>
[-- Attachment #1: Type: text/plain, Size: 1961 bytes --]
On Friday 07 January 2011 06:07 PM, Alexander Graf wrote:
>
>> My aim is to install kvm on a powerpc system. I will give a detailed
>> description of the environment.
>>
>> Host arch: x86
>> kernel: 2.6.32.25 (ubuntu 10.04 32 bit)
>> I have emulated powerpc using "qemu-system-ppc" and installed debian on
>> top of this.
>>
>> guest os:
>> debian-507-powerpc (2.6.26-1-powerpc)
>> contents of /proc/cpuinfo:
>> processor : 0
>> cpu : 740/750
>> temperature : 62-64 C (uncalibrated)
>> clock : 1000.000000MHz
>> revision : 3.1 (pvr 0008 0301)
>> bogomips : 33.02
>> timebase : 16600733
>> platform : PowerMac
>> model : Power Macintosh
>> machine : Power Macintosh
>> motherboard : AAPL,PowerMac G3 MacRISC
>> detected as : 49 (PowerMac G3 (Silk))
>> pmac flags : 00000000
>> pmac-generation : OldWorld
>>
> This emulates a G3, not a 440 :). But you're lucky - the G3 is also supported by KVM. Mind if I ask why you want to virtualize inside of an emulated environment?
>
But on http://www.linux-kvm.org/page/PowerPC, it states "current
development is aimed at running 440 linux kernel as guests on 440 linux
hosts". I want to use kvm on powerpc but don't have powerpc hardware :)
>> 3. How should I try to build kvm kernel module for guest os. I have two
>> options: to compile kernel with kvm inside guest os or to cross compile
>> kernel for powerpc on host os.
>>
> I always compile natively on a real 970 box. But I don't see why cross-compilation would fail. Just make sure you're building for the correct target and you'll get an option in the Virtualiztion menu.
>
When I run "make menuconfig" on the guest os (debian-powerpc), it gives
"KVM support for PowerPC book3s_32 processors" under virtualization
menu. Is it the correct KVM module for powerpc-750 ? (screenshot
attached ) . And, during cross compiling on the host os, after running
"make ARCH=powerpc menuconfig" the option "KVM support " disappears.
Thanks,
[-- Attachment #2: powerpc_kvm.png --]
[-- Type: image/png, Size: 14673 bytes --]
[-- Attachment #3: powerpc_kvm_cross_compile.png --]
[-- Type: image/png, Size: 42960 bytes --]
next prev parent reply other threads:[~2011-01-07 13:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 18:51 error: building kvm for powerpc using cross compiler on x86 Dushyant Bansal
2011-01-06 19:36 ` Hollis Blanchard
2011-01-07 6:52 ` Dushyant
2011-01-07 12:37 ` Alexander Graf
2011-01-07 13:50 ` Dushyant Bansal [this message]
2011-01-09 9:55 ` Dushyant Bansal
2011-01-10 12:29 ` Alexander Graf
2011-01-11 12:56 ` Alexander Graf
2011-01-12 20:54 ` Dushyant Bansal
2011-01-12 22:53 ` Alexander Graf
2011-01-13 11:53 ` Dushyant Bansal
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=4D271755.80604@cse.iitd.ac.in \
--to=cs5070214@cse.iitd.ac.in \
--cc=kvm-ppc@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox