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 370CCE772AB for ; Thu, 5 Oct 2023 16:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237670AbjJEQF1 (ORCPT ); Thu, 5 Oct 2023 12:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237564AbjJEQEG (ORCPT ); Thu, 5 Oct 2023 12:04:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BCB713C81 for ; Thu, 5 Oct 2023 07:32:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14620C433BB; Thu, 5 Oct 2023 07:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696490661; bh=bf2xIDOJU4y5J9sRuHALUS8ViG7MnRYFCaU5pondAnY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u3d1h3TjLX0o2Gw543yRZtfRsxWG7Fa8adCBh0FO12CLKp/M97B15ofpvVheZE3MP y2APP5pQD6LXD0S97siCvemUC/oN/4xEe1BNlJc65EGzERJxw8aj0h1axMDKuGDsVq WoZci/BKkDholhUer2ZSYgrplbJXsdylQUmXxjAXCoTDUd188yyOKBeHJQzKzR4FL4 l10IZ8/HrnSTWD34W6a54GIq94Ve49oLn0MOM4FOW/BYzTBDBMaepfWBaLLK6aVvsC ZwN2vW/W6ezf7GyL/IenfhdNbChD4qoa6EaZIPG/9Tr0a4HTjXJwbqBvJF5tlFilav 1N19cdmCqqZPA== 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 1qoIiY-001JO4-Kj; Thu, 05 Oct 2023 08:24:18 +0100 Date: Thu, 05 Oct 2023 08:24:18 +0100 Message-ID: <868r8ho7kt.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: kvmarm@lists.linux.dev, kvm@vger.kernel.org, James Morse , Suzuki K Poulose , Zenghui Yu Subject: Re: [PATCH 0/3] KVM: arm64: Cleanups for managing SMCCC filter maple tree In-Reply-To: <20231004234947.207507-1-oliver.upton@linux.dev> References: <20231004234947.207507-1-oliver.upton@linux.dev> 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/29.1 (aarch64-unknown-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: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, kvmarm@lists.linux.dev, kvm@vger.kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, 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 Thu, 05 Oct 2023 00:49:44 +0100, Oliver Upton wrote: > > Small series to clean up the way KVM manages the maple tree > representation of the SMCCC filter, only allocating nodes in the tree if > the SMCCC filter is used. > > The other ugly bit that this fixes is the error path when 'reserved' > ranges cannot be inserted into the maple tree, instead returning an > error to userspace. > > Oliver Upton (3): > KVM: arm64: Add a predicate for testing if SMCCC filter is configured > KVM: arm64: Only insert reserved ranges when SMCCC filter is used > KVM: arm64: Use mtree_empty() to determine if SMCCC filter configured > > arch/arm64/include/asm/kvm_host.h | 4 +--- > arch/arm64/kvm/hypercalls.c | 34 ++++++++++++++++++++----------- > 2 files changed, 23 insertions(+), 15 deletions(-) Reviewed-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.