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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1423EB64DD for ; Tue, 27 Jun 2023 08:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b1u2gi15STuoVmQ7ZyU1lBj7L6XL+9P3bBdgAXKmjNA=; b=E0EvJ8pQ6hH3/x +ATJCMe3pPZPAB13aTPNKon7V5Y7+0C19YBOUrLN3hObH/NNJUR8c27oa+mD2Tj75mjwrPbC++1dU BauH+1PDdi8tBxIDFXYnvJISwgt09diKgLy6hn2ro9FBMRbOdsLjaLRSUHs7704FhADKwC1P14SB3 gizASFAPwNirmNQU7sa5TtJxunEf+iw61ZVi9Z9yu2h1X35V4NQ54CzJg0fSa3TOI46MbusYEodZb KKzifsspLgw2JBBqR2YBLTAOxgzk1/qx/szplC59QAM5FmB0yD6CNc75iJRCG3De9DhPRQkjWxtQN 9Qog141M4jV4l5EKcKew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qE3fc-00CUja-11; Tue, 27 Jun 2023 08:03:28 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qE3fZ-00CUig-1N for linux-arm-kernel@lists.infradead.org; Tue, 27 Jun 2023 08:03:26 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8E69361028; Tue, 27 Jun 2023 08:03:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED31CC433C0; Tue, 27 Jun 2023 08:03:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687853004; bh=CEaWLJzQks100urjohG2ZqxOALcUA1Rwzag471pm9Mo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=plpL/fzQgO/s2dC4jFT69z95l7hWC/BTHYm21jFIQTJGUXWuULztYJZCcRnwiD4yn MOsL22k9FdxTgveE/w8MSaGVgRu3s3EOSEuWSlLpTxex5/N4q3aOTw165ok81u/p8o NwVnCyVSxJAwW/Vwa8PI+vP5L4YOOlgjhsgZNljr7vy034cP2HFNwJubghxgTaGsmw /NlEXx7VYlFvGoeVQbaOtgz/KP3UzypNGPPz23YAE3zVfIg7GBPkLYMTds8IwIvpXx kgi/8ivXHxAfQtaSxAFpx546raZodaowrUN7QO5dSGMVREBClyKQORDZnZt19htZtB LnqkhPGHfk1PQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.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 1qE3eL-008j6Z-QP; Tue, 27 Jun 2023 09:03:21 +0100 Date: Tue, 27 Jun 2023 09:02:09 +0100 Message-ID: <86fs6dbaf2.wl-maz@kernel.org> From: Marc Zyngier To: "Lameter, Christopher" Cc: "Russell King (Oracle)" , Ard Biesheuvel , Quentin Perret , Mark Rutland , Catalin Marinas , Jonathan Corbet , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org Subject: Re: [PATCH RFC 00/17] arm64 kernel text replication In-Reply-To: <7ddd3c78-5392-9f8d-8f9-d898795c89@os.amperecomputing.com> References: <7ddd3c78-5392-9f8d-8f9-d898795c89@os.amperecomputing.com> 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 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: cl@os.amperecomputing.com, linux@armlinux.org.uk, ardb@kernel.org, qperret@google.com, mark.rutland@arm.com, catalin.marinas@arm.com, corbet@lwn.net, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230627_010325_560043_0FB5C120 X-CRM114-Status: GOOD ( 21.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 27 Jun 2023 00:42:53 +0100, "Lameter, Christopher" wrote: > > On Fri, 23 Jun 2023, Marc Zyngier wrote: > > >> That sounds great, but my initial question would be whether, with such a > >> setup, one could then run VMs under such a kernel without hardware that > >> supports nested virtualisation? I suspect the answer would be no. > > > > The answer is yes. All you need to do is to switch between the host > > and guest stage-2s in the hypervisor, which is what KVM running in > > protected mode does. > > Well I think his point was that there are machines running without a > hypervisor and kernel replication needs to work on that. We certainly > benefit a lot from kernel replication and our customers may elect to > run ARM64 kernels without hypervisors on bare metal. These are not incompatible goals. The hypervisor is a function that the user may want to enable or not. Irrespective of that, the HW that underpins the virtualisation functionality is available and allows you to solve this particular problem in a different way. This doesn't preclude from running bare-metal at all. There is even precedent in using stage-2 to work around critical bugs (the Socionext PCIe fiasco springs to mind). M. -- Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel