From mboxrd@z Thu Jan 1 00:00:00 1970 From: Corey Minyard Date: Fri, 22 Jan 2010 15:27:00 +0000 Subject: Re: KVM on 440GP Message-Id: <4B59C3C4.3030804@acm.org> List-Id: References: <4B59BFE4.5040107@acm.org> In-Reply-To: <4B59BFE4.5040107@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.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; > >