From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zc8xn-0002MQ-D6 for qemu-devel@nongnu.org; Wed, 16 Sep 2015 05:25:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zc8xi-0003HD-DI for qemu-devel@nongnu.org; Wed, 16 Sep 2015 05:25:15 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:32785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zc8xi-0003Gt-8Z for qemu-devel@nongnu.org; Wed, 16 Sep 2015 05:25:10 -0400 Received: by pacex6 with SMTP id ex6so204673519pac.0 for ; Wed, 16 Sep 2015 02:25:08 -0700 (PDT) From: Tushar Jagad Date: Wed, 16 Sep 2015 14:54:46 +0530 Message-ID: <20150916092446.GC4622@pnqlab044.amcc.com> References: <55F76064.8010504@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55F76064.8010504@hpe.com> Subject: Re: [Qemu-devel] Could not boot a guest vm from kvm mode based on APM X-Gene Host and latest qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liang yan Cc: qemu-devel@nongnu.org Hi, On Mon, Sep 14, 2015 at 06:03:48PM -0600, liang yan wrote: > Hello, All, > > I am trying to enable kvm for a guest vm on an APM X-Gene Host with > latest qemu, but could not make it work. > > The host is APM X-Gene 8-core, Linux kernel is 4.1.0-rc7-1-arm64, > > Guest kernel is linux-3.16rc3 > > QEMU is latest version > > Host has these dmesg info > [ 2.708259] kvm [1]: GICH base=0x780c0000, GICV base=0x780e0000, IRQ=25 > [ 2.708327] kvm [1]: timer IRQ30 > [ 2.708335] kvm [1]: Hyp mode initialized successfully > > Host has dev/kvm. > > command-line is > aarch64-softmmu/qemu-system-aarch64 -machine virt,kernel_irqchip=off > -cpu cortex-a57 -machine accel=kvm -nographic -smp 1 -m 2048 -kernel > aarch64-linux-3.16rc3-buildroot.img --append "console=ttyAMA0" > > > when using cpu "cortex-a57", got the error "kvm_init_vcpu failed: > Invalid argument" Currently, it is not possible to run qemu with a cpu type other than the host. I'm currently in the process of adding the necessary support and have posted the necessary RFC patches for kvm[1] and qemu[2]. [1] http://comments.gmane.org/gmane.linux.ports.arm.kernel/438744 [2] https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg02374.html -- Regards, Tushar > when using cpu "host", got the error "Failed to retrieve host CPU features!" > > By the way, all the command line works well under "tcg" mode. > Anyone has a quick idea? Thanks in advance. > > Best, > Liang > >