qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] emulate powerpc(mpc8544ds) on x86 architecture


From: Shi Rong
Subject: Re: [Qemu-devel] emulate powerpc(mpc8544ds) on x86 architecture
Date: Thu, 21 Feb 2013 09:04:39 +0800
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

于 2013/02/21 2:30, Scott Wood 写道:
On 02/20/2013 08:46:52 AM, Alexander Graf wrote:

On 20.02.2013, at 15:07, Andreas Färber wrote:

> Hi,
>
> Am 20.02.2013 10:22, schrieb Shi Rong:
>> I want to emulate powerpc(mpc8544ds) on x86 architecture, is anybody
>> succeed in it?
>
> If you CC Power Architecture questions to qemu-ppc, you have higher
> chances of getting replies from the experts.
>
>> My working step:
>> about qemu:
>> ./configure --cpu=ppc --target-list=ppc-softmmu --enable-fdt
>> --enable-kvm --enable-tcg-interpreter --enable-linux-user
>> --prefix=/home/shir/install/qemu/
>> make
>> make install
>
> --cpu=ppc is bogus, just drop it.
> Also --enable-tcg-interpreter is unnecessary on x86.

Also no need for enable-kvm, as you're running on x86. KVM only helps
for compatible CPUs (ppc on ppc for example).

you mean that KVM only support the same architecture, and when emulate ppc on x86 platform, qemu uses his tcg to realize it.
so how could I raise the guest's efficiency if ignore KVM? thx~~~


>
>> but everytime I start my qemu-system-ppc,
>> qemu-system-ppc -M mpc8544ds -kernel uImage -append "root=/dev/ram
>> rdinit=/linuxrc" -initrd initrd -nographic
>> I get this error :
>> "KVM: Couldn't find level irq capability. Expect the VM to stall at
times
>> kvm_init_vcpu failed: Cannot allocate memory"
>
> What kernel are you using? Sounds like it is lacking some required
feature.

This is probably because you compiled with -cpu=ppc. Without, KVM
shouldn't get detected and all is well.

Still, why is it trying to use KVM without the user explicitly asking
for it (at runtime, not in the build)?  What if I want to emulate an
mpc8544 on a powermac?

-Scott






reply via email to

[Prev in Thread] Current Thread [Next in Thread]