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