From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF339C77B73 for ; Tue, 6 Jun 2023 16:30:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237677AbjFFQaw (ORCPT ); Tue, 6 Jun 2023 12:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233459AbjFFQav (ORCPT ); Tue, 6 Jun 2023 12:30:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C26126 for ; Tue, 6 Jun 2023 09:30:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B90C629DB for ; Tue, 6 Jun 2023 16:30:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CAF3C433EF; Tue, 6 Jun 2023 16:30:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686069049; bh=pBplO4+hU+s0fObqkw4P608h259jrji39gOalnCZFBA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JeuQkTZzeUx/ZGr+pGJd6IsRLavZrbj5hI/vtjLiiSrg0zWauEWA9ZsWaLws2tei5 L5p+HKoSLlC++xltdfOZHblNZQk/M1PEceDrBYrrdqxkJasPk3UhF2aoD6GTEOdrfo UVQ/ETo1pVpUS19Sbgc2XfDCJQLR11bwGNFSWYe0p3DZZ+n3G+Qbel/3OHWhAfea6G mnMlFhfEpMP69R/ZU7lHl92QEd1/1JIuvOri5kWc5ss7JdlcxWKFIDb/YPKnURi+un 96zyfPyv5bJLjqPuKs6bzSnfsQUAcMwZqzhOQ6CykC38uk4HJx+mUNdYYbc985M68n aQHOHmkPiCiPw== Received: from 152.5.30.93.rev.sfr.net ([93.30.5.152] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1q6Za2-003GH8-Rk; Tue, 06 Jun 2023 17:30:47 +0100 Date: Tue, 06 Jun 2023 17:30:45 +0100 Message-ID: <87mt1co8ne.wl-maz@kernel.org> From: Marc Zyngier To: Eric Auger Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandru Elisei , Andre Przywara , Chase Conklin , Christoffer Dall , Ganapatrao Kulkarni , Darren Hart , Jintack Lim , Russell King , Miguel Luis , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Subject: Re: [PATCH v10 00/59] KVM: arm64: ARMv8.3/8.4 Nested Virtualization support In-Reply-To: References: <20230515173103.1017669-1-maz@kernel.org> <16d9fda4-3ead-7d5e-9f54-ef29fbd932ac@redhat.com> <87zg64nhqh.wl-maz@kernel.org> <86r0rfkpwd.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 93.30.5.152 X-SA-Exim-Rcpt-To: eauger@redhat.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alexandru.elisei@arm.com, andre.przywara@arm.com, chase.conklin@arm.com, christoffer.dall@arm.com, gankulkarni@os.amperecomputing.com, darren@os.amperecomputing.com, jintack@cs.columbia.edu, rmk+kernel@armlinux.org.uk, miguel.luis@oracle.com, james.morse@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, 06 Jun 2023 10:33:27 +0100, Eric Auger wrote: > > > By the way, what are you using as your VMM? I'd really like to > > reproduce your setup. > Sorry I missed your reply. I am using libvirt + qemu (feat Miguel's RFC) > and fedora L1 guest. OK, so that's *very* different for what I'm using, which is good! Do you have a QEMU branch somewhere? > Thanks to your fix, this boots fine. But at the moment it does not > reboot and hangs in edk2 I think. Unfortunately this time I have no > trace on host :-( While looking at your series I will add some traces. I've been able to run EDK2 compiled for kvmtool with only a couple of change (such as using SMCs instead of HVCs, and disabling the broken DT-to-ACPI convertion). However, reboot isn't something I've played with, as kvmtool doesn't even try to reboot the guest (reboot is handled as power-off). I'm pretty sure this is related to tearing down the shadow S2 MMU contexts when QEMU reinit the vcpus, and we may fail to clean things up. I'll try and have a look once I'm back from holiday (and we can have a look at KVM Forum). Thanks, M. -- Without deviation from the norm, progress is not possible.