From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 424A3344D80 for ; Fri, 13 Mar 2026 07:49:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773388183; cv=none; b=cX93ksE8ghE93s1Fj7EBZKbbVLLbwiJbACe7cuATbIYJymWPra4AQ9Xbsm0IBSrQSfcXcYbDK4HCrcbcAIu2TqJj2tngysBujL/+7aY4sfCCAI5L8U2xL7Ol9V5Ej3Y1SpS8CATXj3Jd27snpsRa4PdytA9CN3nznU+x3mBVY8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773388183; c=relaxed/simple; bh=sFZUrzKv67fc+HAAGjD1+qg7UixgAZhNfQpjz4Rb5WY=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=jnL+lUy32BDRjARRK0yWfpI0kDz+/hBTdIc2Ot6cj8R6Raqan1ieq9Xrhky17WKCVBVuyN7l5f+DKSnTlB8fL9jrFIGzB9PjbLwXSys9ZZxibGz0NHC5Em2ccndJkDkeLqi/NQNKiYpYGRH45+397pOUhYAm2WbxpRGsM6rx/xY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=s80jX+ud; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="s80jX+ud" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1E58C19421; Fri, 13 Mar 2026 07:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773388182; bh=sFZUrzKv67fc+HAAGjD1+qg7UixgAZhNfQpjz4Rb5WY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s80jX+ud7c8ei8tYtQiDjt1Dqllzj1lYuIFI1/921kSGz4cnViamOpP8g3wZRctF+ z6L5SFuBVnliOdbMVaWTE/u5e9KJ6VP8cHWeOkwyYMb/EwPTJAKOUkp0JyhfexcgyH V8hZf0W+Qd8jf7ySZJIxprYzpr2EM1MgMJNVF+RvJfAvWBW3bLSHZzLcGG7Vud4cIj uT1hSS2iDpzMBKwOjuPnVk+AwWhNn8CYXyfoOKtvHG2F2ERqAtchhr8Znr72c/1r0Z F3pz5U8p4126EdLpNljxK6AMh6vrAGNskyAAHS4QUe/waY4EYNTLtxVklwLSsgX13S zhsgfbrlKZglQ== Received: from 82-132-235-41.dab.02.net ([82.132.235.41] helo=lobster-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w0xH2-00000001ZJJ-1eE3; Fri, 13 Mar 2026 07:49:32 +0000 Date: Fri, 13 Mar 2026 07:49:30 +0000 Message-ID: <87qzpocgol.wl-maz@kernel.org> From: Marc Zyngier To: Zhou Wang Cc: , , , jiangkunkun , "xuwei\ (O)" , "Zengtao (B)" Subject: Re: Question about ARM KVM stage2 contiguous bit support for contiguous hugetlb In-Reply-To: <704b6126-f1ad-4d8a-5709-a12e4c8c79ca@hisilicon.com> References: <704b6126-f1ad-4d8a-5709-a12e4c8c79ca@hisilicon.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/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 82.132.235.41 X-SA-Exim-Rcpt-To: wangzhou1@hisilicon.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, tangnianyao@huawei.com, jiangkunkun@huawei.com, xuwei5@huawei.com, prime.zeng@hisilicon.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Fri, 13 Mar 2026 07:09:40 +0000, Zhou Wang wrote: > > And do we have any plan to support this? Not really. Configurations that are looking at extracting the best possible performance use large mappings at S2 (hugetlbfs). I'm not convinced that there is a strong use-case for dealing with the contiguous hint at S2 when backed by anonymous memory. If you're not under memory pressure, THP already gives you the uplift you want. If you are under memory pressure, you're unlikely to get the contiguity you want. Additionally, dealing with the contiguous hint is a real pain. If you are undertaking this work, please make sure to provide reproducible benchmarks and results that show a definite improvement on the majority of workloads. Thanks, M. -- Jazz isn't dead. It just smells funny.