On 07.01.2011, at 14:38, Dushyant Bansal wrote:

> 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 :)

I see :). Keep in mind that running this in Qemu is really very slow and used 
32-bit PowerPC hardware is very cheap on ebay these days and an order of 
magnitude faster than an emulated ppc machine.

>>> 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.

$ cp arch/powerpc/configs/pmac32_defconfig .config
$ make menuconfig ARCH=powerpc

seems to work. I'm not sure what default config is taken by default, but 
apparently one of the KVM constraints isn't fulfilled. Since you want to build 
a kernel for a pmac32 anyways, just take that config as the basis or use the 
one from a VM you already have working :).


Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to