Re: KVM on 440GP

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

 



On Fri, Jan 22, 2010 at 7:27 AM, Corey Minyard <minyard@xxxxxxx> wrote:
> Corey Minyard wrote:
>>
>> I'm playing around with KVM on an ebony board (440GP), just trying to get
>> it to work, really.  I followed the instructions at
>> http://www.linux-kvm.org/page/PowerPC and I used the 2.6.33 branch of the
>> kvm kernel repository.  When I try to run kvm, qemu appears to abort and
>> actually logs me off.
>>
>> Doing a little debugging, I found that qemu_memalign() is calling abort
>> because posix_memalign() is failing.  I haven't done any more debugging than
>> that.
>
> Well, I discovered that the default memory is 128M, and that's too much
> memory for a VM running on a machine with 128M.  I fixed that problem, and
> now it's doing something, though no console so not sure what.
>
> I guess my questions below and the patch still apply.
>
> -corey
>
>>
>> Since I already had to fix a kernel issue to get it the kernel code to
>> initialize since the platform was reported as ppc440gp, not ppc440, I'm
>> wondering how hard it's going to be to get this working.  Does anyone have
>> this working at all?  Should I back up to a previous version?  Any help
>> would be appreciated.
>>
>> Thanks,
>>
>> -corey
>>
>> Here's the change I made to get kvm in the kernel to initialize:
>>
>>
>> Index: kvm/arch/powerpc/kvm/44x.c
>> ===================================================================
>> --- kvm.orig/arch/powerpc/kvm/44x.c
>> +++ kvm/arch/powerpc/kvm/44x.c
>> @@ -42,7 +42,7 @@ int kvmppc_core_check_processor_compat(v
>> {
>>       int r;
>>
>> -       if (strcmp(cur_cpu_spec->platform, "ppc440") == 0)
>> +       if (strncmp(cur_cpu_spec->platform, "ppc440", 6) == 0)
>>               r = 0;
>>       else
>>               r = -ENOTSUPP;
>>
>>

Thanks! The patch looks good to me. It's unfortunate that 440GP is
reported is "ppc440gp", while every other 440 variant is reported is
"ppc440", but that's just how it goes I guess. It shouldn't be too
difficult to get things working, since the cores are more or less the
same. There has been a little accidental build breakage introduced in
the 440 code recently (work to support the "Book S" KVM port), but
it's all been simple stuff.

As for console, you probably want to use qemu's "-nographic" or at
least "-serial stdio" options.

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

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux