Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1970835rbb; Tue, 27 Feb 2024 07:00:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1Qnot+zzKQmzI5xPtpRKTtHbVQzA/AQXaqUlWBowp1Ipk69ij9OIPMbvKw6WSwApdQrEIKYwfQcpwWx1WU23GFbCN4Hx+1sp9UBaALQ== X-Google-Smtp-Source: AGHT+IH0+WrJL/ni9u2VoTgzg/NrG5+fWEzpf49iL+H21UNW0PEBSwByyWqMvUZ0pQPR9mQ8Dw4X X-Received: by 2002:a17:907:1008:b0:a3f:b6a4:8878 with SMTP id ox8-20020a170907100800b00a3fb6a48878mr6111733ejb.40.1709046035318; Tue, 27 Feb 2024 07:00:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709046035; cv=pass; d=google.com; s=arc-20160816; b=S3nuXQjpYTpe2SXidGVses/sxlvRjVDgFiB6PUoX7Icyj6+UaWKGfpq1f1N+yi3x+b PsRQL/bApQx7sbJdniSPE2vB8MbCy4eurvrJXkzMn8N3ZLgHs+03YRoYsvQEvOaJI9Qq AmieI23rPM+/cYlJ+sdZQTCsG5aO5+xd442Ipie63vONdNnxt8Ta/mRLs9AGUYd7P8eI 6UKv6+sgo1hnlhWsh+wmVTtUgJQUGAptXueVtZxcnc6sFiWq9+iT7TUuS2vWqN2QQeSi qH4/TQqR1XtjdkDTe06ivMcwhTKF1jstjDdZvSVLIMNy/6KSazr5EBE9fNL85+EYZAJB S7rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hLM3ZYcMVlAYK7EAgbT5vu/7Bnt6Qc68h0caJ544S1I=; fh=jZHg/OfCupwGH9Ii//ryT+xN+IjwbUml9bMMAytqmz4=; b=Ml55VBYro20stGQT/g1DxppT67kcnfF5pZxDL4Lff4WfsaQe91jyqyDxwxYcccnqb+ ikrk29ycqap8n6AuJ2vV1dmlQ2m3A7MLbuts6ZHv6HqpAyC4yuw8NuJ9mBvYd1rx+PA9 X+Makb8jn3NKzQ3yMLSNYmfCjkcBXqVLFHS8/c+E3GSAvpRmqAkA93v2jSBd6giHhiyF eJtiKU1F8XE+zymJ1Loq2L2sdvEPWUzHVdDlC9d30MAc63j7FB76RaAx3iN7CDfVkJgi xqbKeqFlrnqzR2L5Kz6TifZ1df6OY45Wa8ikWvgYE6pUYAEl43PqHYbUlLKoln7Uj5qc b3Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lmaIYYKc; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-83453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83453-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a15-20020a170906368f00b00a3ec1c8752esi779852ejc.1015.2024.02.27.07.00.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 07:00:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lmaIYYKc; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-83453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83453-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 128FC1F2C24D for ; Tue, 27 Feb 2024 15:00:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67E761468E5; Tue, 27 Feb 2024 14:56:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="lmaIYYKc" 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.subspace.kernel.org (Postfix) with ESMTPS id 57E72146007; Tue, 27 Feb 2024 14:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045788; cv=none; b=gvBjPUsPjXmmvYtUyUNN+HJJxP58UWEZB0H/tUtNhNAnQIybQneQqEnJZaimrr9FXNAHWHyUprG1LGzmeYLtjU8V5pDP9l6fgt5l1gUJKENt1P5d9z86uCRtBeLjQheHVUDRtuJrSY2qlfrk9oPypJqmTiQ0PFx61AKxNmTHjeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709045788; c=relaxed/simple; bh=jkvS5IEUlexLMzi9YaTCofuaeiGGJdulU1sw+B33Fp0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eTX1tUsmyoaGaAXF2u4Xb4kFU/X64l3eUoqbv6T3unKhlruFeGIenZ2ImsnEQCoVT8CtpBQoLzMVMricg/KpfSM/BLkyYgoJ7rSe/FVehx3tVZMsdp+UuQ5IZQ42Nt99FNCI0XuHmSKi1vlRMG4mYdLrCWrYwmXqv92tDwlhTXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=lmaIYYKc; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hLM3ZYcMVlAYK7EAgbT5vu/7Bnt6Qc68h0caJ544S1I=; b=lmaIYYKcm7hShVWhaoiTl29tlr nMNxuJ9C0IriMQ/cfayoh4pzizUWpSK43m3u3GXusl3oVNx74ueZyKkbtZag7nX3XFF/9Bw2YV5lB SWwTpmFKecHojxXFkEufjkGsZ507jCvbYzC/mo8BUXxoce5GJqK0C/CLAfDb2zaFtX+hprYArHlVm KbBJGVZWk3vN+BkDchH8pCJZ+gdoejci7ezKCP92FlC5aFfwHjcWxCZe9/GQysmDYLIq9M0CJbQVI c6RLTIaI/vQDvKmfOld+Ol0ohlI1/LEne+MEoqk11Jgc+1uxJJo+b0vst3F8qH/vuI0PhDWp0dB9K SIEw4Dbw==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1reysa-00000005fTH-3S62; Tue, 27 Feb 2024 14:56:24 +0000 Date: Tue, 27 Feb 2024 06:56:24 -0800 From: Christoph Hellwig To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Hou Wenlong , Lai Jiangshan , Linus Torvalds , Peter Zijlstra , Sean Christopherson , Thomas Gleixner , Borislav Petkov , Ingo Molnar , kvm@vger.kernel.org, Paolo Bonzini , x86@kernel.org, Kees Cook , Juergen Gross , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , Lorenzo Stoakes , linux-mm@kvack.org Subject: Re: [RFC PATCH 15/73] mm/vmalloc: Add a helper to reserve a contiguous and aligned kernel virtual area Message-ID: References: <20240226143630.33643-1-jiangshanlai@gmail.com> <20240226143630.33643-16-jiangshanlai@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240226143630.33643-16-jiangshanlai@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Mon, Feb 26, 2024 at 10:35:32PM +0800, Lai Jiangshan wrote: > From: Hou Wenlong > > PVM needs to reserve a contiguous and aligned kernel virtual area for Who is "PVM", and why does it need aligned virtual memory space? > +extern struct vm_struct *get_vm_area_align(unsigned long size, unsigned long align, No need for the extern here.