From: Aurelien Jarno Date: Fri, 16 Jan 2009 21:20:43 +0000 Subject: Re: [Qemu-devel] [PATCH 3/9] powerpc/kvm: Enable mpic for E500 Message-Id: <20090116212043.GB3461@hall.aurel32.net> List-Id: References: <1232022857-2315-1-git-send-email-yu.liu@freescale.com> <1232022857-2315-2-git-send-email-yu.liu@freescale.com> <1232022857-2315-3-git-send-email-yu.liu@freescale.com> <1232022857-2315-4-git-send-email-yu.liu@freescale.com> <496FA926.1040205@codemonkey.ws> <0A1FE637C2C7E148B9573BB60CC630E507D06B@zch01exm26.fsl.freescale.net> <1232129860.29223.18.camel@slate.austin.ibm.com> In-Reply-To: <1232129860.29223.18.camel@slate.austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: qemu-devel@nongnu.org Cc: Liu Yu , kvm-ppc@vger.kernel.org On Fri, Jan 16, 2009 at 12:17:40PM -0600, Hollis Blanchard wrote: > On Fri, 2009-01-16 at 13:34 +0800, Liu Yu wrote: > > > > > -----Original Message----- > > > From: Anthony Liguori [mailto:anthony@codemonkey.ws] > > > Sent: Friday, January 16, 2009 5:23 AM > > > To: qemu-devel@nongnu.org > > > Cc: Liu Yu-B13201; kvm-ppc@vger.kernel.org > > > Subject: Re: [Qemu-devel] [PATCH 3/9] powerpc/kvm: Enable > > > mpic for E500 platform > > > > > > Liu Yu wrote: > > > > The modify is based on original author's method > > > > to switch openpic and mpic by static define, > > > > like the switch between USE_INTEL_GW80314 and USE_MPCxxx. > > > > (Although the support for intel has broken) > > > > So they can't be used at the same time. > > > > > > > > I guess it's not the correct way to do this. > > > > but I am not sure is the USE_MPC85xx and openpic are still needed? > > > > > > > > > > Have you tested some of the other (TCG) boards (for instance, > > > with the > > > debian image Aurelien recently posted)? > > > This image is only for g3beige, it won't work on mac99 which is moreover broken. > > You mean test powerpc mac99? No. > > It doesn't sound like mac99 works right now anyways, so that may not be > possible to test. Confirmed. We hope to get it working in the next few weeks/months using OpenBIOS, the same way as for the g3beige machine. > > I only modified few places to the original code. I think it won't be influenced. > > But mpic and openpic couldnot work in the same qemu binary with this patch. > > If they should both be supported, then I need to modify more. > > Due to the (artificial) "ppc" vs "ppcemb" split, I'm not sure this is a > requirement. Agreed. I am fine with some changes if they are only done for the ppcemb binary. > The only issue I can see is if there are "ppc" targets (e.g. 970) that > use the same[1] MPIC as found on e500, and that is different from and > not supported by the current OpenPIC emulation. The person adding support for those "ppc" targets, will have to modify the code to support both versions at runtime. > [1] By "same" I mean "substantially similar". As I understand it, > OpenPIC and MPIC are very similar designs, but there are different > bugs/quirks to different implementations. So even if e500's MPIC isn't > *exactly* the same as 970 chipsets' MPIC, if they're close enough that > the code could be shared, it should be. > > -- > Hollis Blanchard > IBM Linux Technology Center > > > > -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net