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 2E2EDC38142 for ; Tue, 31 Jan 2023 22:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjAaWBc (ORCPT ); Tue, 31 Jan 2023 17:01:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjAaWB3 (ORCPT ); Tue, 31 Jan 2023 17:01:29 -0500 Received: from out-48.mta1.migadu.com (out-48.mta1.migadu.com [IPv6:2001:41d0:203:375::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EF7C54200 for ; Tue, 31 Jan 2023 14:01:17 -0800 (PST) Date: Tue, 31 Jan 2023 22:01:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1675202475; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hF/1JIX2REtL2/Qz1+cxYWhMMeoRoACTMXxfqUjUYco=; b=sY3qNs0mkwHpAxOAoD2c7kJV/kexu8at9z88dznVcZhFHU+7QsXakoHxbV2FWdCWmnzWyt YQqJunw3Si1f7XenSCEDk9ZyKDlA2SFkHhqqNyIsOFRRRC1TMGOKXbbf4teF6U7HTQl9Cf bzdn+tF4IY2LYFeT/iHdC3uCbMBFTek= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: Suzuki K Poulose , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandru Elisei , Andre Przywara , Chase Conklin , Christoffer Dall , Ganapatrao Kulkarni , Jintack Lim , Russell King , James Morse , Zenghui Yu Subject: Re: [PATCH v8 01/69] arm64: Add ARM64_HAS_NESTED_VIRT cpufeature Message-ID: References: <20230131092504.2880505-1-maz@kernel.org> <20230131092504.2880505-2-maz@kernel.org> <86cz6u248j.wl-maz@kernel.org> <3c15760c-c76f-3d5d-a661-442459ce4e07@arm.com> <871qnae6ov.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qnae6ov.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, Jan 31, 2023 at 09:26:56PM +0000, Marc Zyngier wrote: > On Tue, 31 Jan 2023 20:04:15 +0000, Oliver Upton wrote: > > Marc, I'm curious, how do you plan to glue hVHE + NV together (if at > > all)? We may need two separate options for this so the user could > > separately configure NV for their hVHE KVM instance. > > I really don't plan to support them together. But if we wanted to > support something, I'd rather express it as a composition of the > various options, as I suggested to Suzuki earlier. Something along the > lines of: > > kvm-arm.mode=hvhe,nested > > But the extra complexity is mind-boggling, frankly. And the result > will suck terribly. NV is already exit-heavy, compared to single-level > virtualisation. But now you double the cost of the exit by moving all > the load/put work into the entry-exit phase. Oh yeah, that wasn't a feature request, just wanted to pick your brain for a moment :) Hopefully nobody comes along asking for it in the future, heh. -- Thanks, Oliver