Kernel KVM-PPC virtualization development
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
To: kvm-ppc@vger.kernel.org
Subject: Re: KVM on 440GP
Date: Fri, 22 Jan 2010 15:27:00 +0000	[thread overview]
Message-ID: <4B59C3C4.3030804@acm.org> (raw)
In-Reply-To: <4B59BFE4.5040107@acm.org>

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


  reply	other threads:[~2010-01-22 15:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22 15:10 KVM on 440GP Corey Minyard
2010-01-22 15:27 ` Corey Minyard [this message]
2010-01-22 16:52 ` Hollis Blanchard
2010-01-22 17:23 ` Corey Minyard
2010-01-22 17:27 ` Alexander Graf
2010-01-22 18:14 ` Hollis Blanchard
2010-01-22 18:29 ` Corey Minyard
2010-01-22 18:48 ` Alexander Graf
2010-01-22 19:13 ` Corey Minyard
2010-01-22 19:28 ` Hollis Blanchard
2010-01-22 20:04 ` Corey Minyard
2010-03-09  5:38 ` Hollis Blanchard
2010-03-09 13:46 ` Corey Minyard

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=4B59C3C4.3030804@acm.org \
    --to=minyard@acm.org \
    --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