From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiheC-0004O3-4g for qemu-devel@nongnu.org; Thu, 16 Apr 2015 07:07:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yihe8-0002E5-0j for qemu-devel@nongnu.org; Thu, 16 Apr 2015 07:07:51 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:33079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yihe7-0002Dx-Ru for qemu-devel@nongnu.org; Thu, 16 Apr 2015 07:07:47 -0400 Message-ID: <552F97FF.4000109@imgtec.com> Date: Thu, 16 Apr 2015 12:07:43 +0100 From: Leon Alrae MIME-Version: 1.0 References: <201504131929543844171@sangfor.com.cn> <552E30F5.2020207@imgtec.com> In-Reply-To: <552E30F5.2020207@imgtec.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Question]Support of China loogson processor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: James Hogan , vt , qemu-devel On 15/04/2015 10:35, James Hogan wrote: > On 13/04/15 12:29, vt wrote: >> Hi, guys >> >> I saw the architecture code about mips in the qemu and kvm modules, so it is no doubt that mips cpu can be supported. >> But I wonder if anyone have used qemu/kvm virtualization with China loongson processor (MIPS architecture) without modification of qemu/kvm code. >> All the infomation I have searched in the Internet can't answer my question. >> >> If anyone have done that before, let me know it will not be a dead end. >> >> Thanks >> Sangfor VT > > I haven't attempted it on Loongson yet, but it'd be interesting to see > whether it works. You'd still have to emulate a Malta guest at the > moment. Getting it to work on the Ingenic XBurst cores required a little > effort in the kernel due to slight incompatibilities with the MIPS32r2 > spec, so its possible there'll be problems with Loongson too. > > I presume Loongson may use highmem, if so you'll want to disable it. I > still need to get those patches sorted out. > > Let us know how it goes or if you hit problems! Since I also haven't had a chance to test Loongson emulation, I thought I'd give it a try (TCG only, Loongson-2E cpu and fulong2e machine). Good news is that I'm able to get to the login prompt using ancient QEMU v1.0, kernel 2.6.33 (with additional patch from https://lists.gnu.org/archive/html/qemu-devel/2010-06/msg02566.html) and some old debian image I had handy. However, in any newer version starting from v1.1.0 of QEMU something goes horribly wrong and it just segfaults somewhere inside hw/bonito.c quite early during kernel booting. I haven't looked deeper, but it seems it's not in the best shape... Leon