From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGuQt-0003EO-Qx for qemu-devel@nongnu.org; Tue, 13 Dec 2016 16:16:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGuQs-0000P2-Tr for qemu-devel@nongnu.org; Tue, 13 Dec 2016 16:16:19 -0500 Date: Tue, 13 Dec 2016 22:16:06 +0100 From: Andrew Jones Message-ID: <20161213211606.x4cssgt4knld4m4z@hawk.localdomain> References: <1481625384-15077-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1481625384-15077-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 00/23] arm: Add virtualization to GICv3, and enable EL2 on 64-bit CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, "Edgar E. Iglesias" , Christoffer Dall , patches@linaro.org On Tue, Dec 13, 2016 at 10:36:01AM +0000, Peter Maydell wrote: > This patchset adds support for the Virtualization extensions to QEMU's > GICv3 emulation. This was the last missing piece that was stopping > us from turning on the EL2 support in the CPU model, so the patchset > also adds support for enabling it all on the virt board via the > '-machine virtualization=on' option. > > The result works well enough to allow booting a KVM outer guest kernel > and then running QEMU + an inner guest under KVM inside it. The outer > guest KVM also passes the kvm-unit-tests GIC tests. > I've started some testing with this. When I boot an outer (L1) kernel with more than one cpu allocated I get [ 3.441908] CPU: CPUs started in inconsistent modes [ 3.442787] ------------[ cut here ]------------ [ 3.445434] WARNING: CPU: 0 PID: 1 at arch/arm64/kernel/smp.c:418 smp_cpus_done+0x80/0xa0 ... and KVM does not init. Booting with only one cpu I see we do start in EL2 and KVM does init. I'm booting the L1 kernel through UEFI (AAVMF). Also, my L1 guest kernel is 4.9 based, but not pure upstream. I can try a more pure 4.9 kernel with a defconfig later. Thanks, drew